Skip to content

Commit 43f5b18

Browse files
committed
Change startScript
1 parent bba6549 commit 43f5b18

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ CodeSandbox 上でコードを編集し、GitHub Actions から npm レジスト
1111
1. 新しい terminal を開き `$ npm run upgrade-interactive` 等でパッケージを更新
1212
1. ブラウザーをリロードする
1313

14-
これで terminal(「yarn start」タブ) 内で `jest --watchAll`(`csb:test`) が実行されるので、コードの編集等を行う
14+
これで terminal(「yarn start」タブ) 内で `start` スクリプトが実行される(通常はエラーとなる)、後は必要に応じてコードの編集等を行う
1515

16-
コマンドとしての実行を試す場合は `npm run start -- foo.txt` のように実行する。
16+
テストの実行は CodeSandbox 上では `npm run csb:test` を利用する。コマンドとしての実行を試す場合は `npm run start -- foo.txt` のように実行する。
1717

1818
### CLI 部分の変更
1919

@@ -56,12 +56,11 @@ GitHub で Release を Publish すると `npm pbulish` される。
5656
- [TypeScript で npm ライブラリ開発ことはじめ - Qiita](https://qiita.com/saltyshiomix/items/d889ba79978dadba63fd)
5757
- [TypeScript で CLI ツールを作って、npm パッケージにする - Qiita](https://qiita.com/suzuki_sh/items/f3349efbfe1bdfc0c634)
5858
- [yarn upgrade-interactive と同じように npm でも対話型な更新をしたい! - Qiita](https://qiita.com/kotarella1110/items/08afeb61d493829711eb)
59-
- [Node.jsパッケージの公開 - GitHub Docs](https://docs.github.com/ja/actions/guides/publishing-nodejs-packages)
60-
- [GitHub Actionsでnpmに自動でリリースするworkflowを作ってみた | DevelopersIO](https://dev.classmethod.jp/articles/github-actions-npm-automatic-release/)
59+
- [Node.js パッケージの公開 - GitHub Docs](https://docs.github.com/ja/actions/guides/publishing-nodejs-packages)
60+
- [GitHub Actions で npm に自動でリリースする workflow を作ってみた | DevelopersIO](https://dev.classmethod.jp/articles/github-actions-npm-automatic-release/)
6161

6262
## ライセンス
6363

6464
MIT License
6565

6666
Copyright (c) 2021 hankei6km
67-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test": "jest",
2020
"clean": "rm dist/*",
2121
"upgrade-interactive": "npm-check --update",
22-
"csb:test": "npm test -- --watchAll"
22+
"csb:test": "npm test -- --runInBand --watchAll"
2323
},
2424
"dependencies": {
2525
"yargs": "^16.2.0"

sandbox.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"view": "browser",
55
"template": "node",
66
"container": {
7-
"startScript": "csb:test",
7+
"startScript": "start",
88
"node": "14"
99
}
1010
}

0 commit comments

Comments
 (0)