Skip to content

Commit

Permalink
fix: add sc npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Nov 12, 2019
1 parent 4315be3 commit aaa9cc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Lint
run: yarn lint
- name: Start background server
run: yarn shadow-cljs start
run: yarn sc start
- name: Build
run: yarn build
- name: Test
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"node": ">=10.12"
},
"scripts": {
"sc": "shadow-cljs",
"start": "shadow-cljs watch lib",
"build": "yarn clean && shadow-cljs release lib",
"test": "shadow-cljs watch test --config-merge \"{:autorun true}\"",
Expand Down
1 change: 1 addition & 0 deletions src/e2e/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
(is (not (fileIncludes "./README.md" "__FORMAT__"))))
(testing
"Commands"
(is (= (.-code (silent-exec "yarn sc start")) 0) "Should start background server")
(is (= (.-code (silent-exec "yarn test:once")) 0) "Should test")
(is (= (.-code (silent-exec "yarn build")) 0) "Should build")
(is (existsSync "./public/js/main.js"))
Expand Down
1 change: 1 addition & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"sc": "shadow-cljs",
"start": "shadow-cljs watch app",
"build": "yarn clean && shadow-cljs release app",
"test": "shadow-cljs watch test --config-merge \"{:autorun true}\"",
Expand Down

0 comments on commit aaa9cc5

Please sign in to comment.