Run build before starting the http-server.

This commit is contained in:
kovacsv 2023-01-10 22:12:49 +01:00
parent e59d468e1b
commit d992235722
2 changed files with 2 additions and 4 deletions

View File

@ -22,6 +22,4 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm install - run: npm install
- run: npm run lint - run: npm run create_dist
- run: npm run test
- run: npm run create_package

View File

@ -37,7 +37,7 @@
"website/assets/envmaps/*" "website/assets/envmaps/*"
], ],
"scripts": { "scripts": {
"start": "http-server", "start": "npm run build_website_dev && http-server",
"test": "mocha test", "test": "mocha test",
"lint": "eslint source", "lint": "eslint source",
"lint_fix": "eslint source --fix", "lint_fix": "eslint source --fix",