Skip to content

自動ビルドをoctober-devに追従 #232

Description

@arowM

october-devの反映に伴い、ビルド方法が変更になりました。
現在はCircle CI側で自動ビルドを止めていますが、いずれ復活させたいです。

@matsubara0507 さん、特に急ぎではないので、もしお時間あるときにCI設定の更新をお願いすることはできますか?🌻

具体的なビルド方法の変更箇所を示すために、package.jsonのscriptsフィールドの差分を引用しておきます!
もしかしたら、postinstallをCI設定に追加するだけでうまくいくかもしれません。

   "scripts": {
-    "install": "gitbook install",
-    "start": "gitbook serve",
-    "build": "rimraf _book && rimraf docs && gitbook build && mv _book docs && rimraf docs/**/*.md && sed -i 's/検索すると入力/検索/g' docs/*.html docs/**/*.html",
+    "postinstall": "npm run install-gitbook && npm run install-repl",
+    "install-gitbook": "replace --silent ',\"elm-repl\"' '' book.json && gitbook install && replace --silent '\"youtube\"' '\"youtube\",\"elm-repl\"' book.json",
+    "install-repl": "cd repl && npm link && npm i && npm run build && cd ../ && npm link gitbook-plugin-elm-repl",
+    "start": "gitbook --port 8007 serve",
+    "build": "rimraf _book && rimraf docs && gitbook build && mv _book docs && rimraf docs/**/*.md && replace --silent '検索すると入力' '検索' docs/*.html docs/**/*.html && cpx favicon.ico _book/gitbook/images/",
     "test": "echo \"Error: no test specified\" && exit 1"
   },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions