Compile to dist dir and remove building from test script

This commit is contained in:
Elliot DeNolf
2018-08-20 19:31:17 -04:00
parent 5749b76f92
commit e4c057c4b2
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -221,3 +221,4 @@ $RECYCLE.BIN/
# Ignores compiled CSS
src/**/*.css
demo**/*.css
dist

View File

@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "npm run core:build && node ./node_modules/jest/bin/jest.js src/tests",
"test": "node ./node_modules/jest/bin/jest.js src/tests",
"cov": "npm run core:build && node ./node_modules/jest/bin/jest.js src/tests --coverage",
"core:build": "./node_modules/.bin/babel src --out-dir lib --source-maps",
"core:build": "./node_modules/.bin/babel src --out-dir dist --source-maps",
"build-demo-css": "node-sass-chokidar --include-path ./src/client/scss demo/ -o demo/",
"watch-demo-css": "npm run build-demo-css && node-sass-chokidar --include-path ./src/client/scss demo/ -o demo/ --watch --recursive",
"build-module-css": "node-sass-chokidar --include-path ./src/client/scss src/ -o src/",