Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.

Commit c669bdf

Browse files
Myles Borinsmichaelobriena
authored andcommitted
chore: update build script
* created a dist folder with a .keep file in it * you will no longer need the ```mkdir dist;``` in the build scripts (breaking for window) * create build task for unminified source with source maps. * create meta-build task to execute both builds
1 parent bb42572 commit c669bdf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
.DS_Store
3-
dist/
3+
dist/*.js
44
*.log

dist/.keep

Whitespace-only changes.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"test": "EXIT_STATUS=0; npm run test-components || EXIT_STATUS=$?; npm run test-core || EXIT_STATUS=$?; npm run test-dom-renderables || EXIT_STATUS=$?; npm run test-dom-renderers || EXIT_STATUS=$?; npm run test-render-loops || EXIT_STATUS=$?; npm run test-math || EXIT_STATUS=$?; npm run test-physics || EXIT_STATUS=$?; npm run test-polyfills || EXIT_STATUS=$?; npm run test-renderers || EXIT_STATUS=$?; npm run test-transitions || EXIT_STATUS=$?; npm run test-utilities || EXIT_STATUS=$?; npm run test-webgl-geometries || EXIT_STATUS=$?; npm run test-webgl-materials || EXIT_STATUS=$?; npm run test-webgl-renderables || EXIT_STATUS=$?; npm run test-webgl-renderers; exit $EXIT_STATUS",
2323
"check-jsdoc": "eslint --reset --no-eslintrc --rule 'valid-jsdoc: 2' --ignore-path .gitignore .",
2424
"lint": "eslint --ignore-path .gitignore .",
25-
"build": "mkdir dist; browserify index.js --standalone famous | uglifyjs --screw-ie8 -m -c dead_code,sequences,conditionals,booleans,unused,if_return,join_vars,drop_debugger > dist/famous.min.js"
25+
"build": "npm run build-debug && npm run build-standalone",
26+
"build-debug": "browserify index.js -d --standalone famous > dist/famous.js",
27+
"build-min": "browserify index.js --standalone famous | uglifyjs --screw-ie8 -m -c dead_code,sequences,conditionals,booleans,unused,if_return,join_vars,drop_debugger > dist/famous.min.js"
2628
},
2729
"repository": {
2830
"type": "git",

0 commit comments

Comments
 (0)