File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ CodeSandbox 上でコードを編集し、GitHub Actions から npm レジスト
11111 . 新しい terminal を開き ` $ npm run upgrade-interactive ` 等でパッケージを更新
12121 . ブラウザーをリロードする
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
6464MIT License
6565
6666Copyright (c) 2021 hankei6km
67-
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 44 "view" : " browser" ,
55 "template" : " node" ,
66 "container" : {
7- "startScript" : " csb:test " ,
7+ "startScript" : " start " ,
88 "node" : " 14"
99 }
1010}
You can’t perform that action at this time.
0 commit comments