diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 46da3ae..70fab4e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/package.json b/package.json index 831caf7..b65b150 100644 --- a/package.json +++ b/package.json @@ -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}\"", diff --git a/src/e2e/core.cljs b/src/e2e/core.cljs index 776e3b7..9e517f0 100644 --- a/src/e2e/core.cljs +++ b/src/e2e/core.cljs @@ -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")) diff --git a/template/package.json b/template/package.json index b9b97d3..270aa75 100644 --- a/template/package.json +++ b/template/package.json @@ -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}\"",