Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from Floofies/master
Browse files Browse the repository at this point in the history
Finalzed npm build, added npm test and dev deps
  • Loading branch information
Floofies authored Aug 27, 2017
2 parents 3b085a4 + 945620d commit 118ec1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 4 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ test : node_modules/jasmine/bin/jasmine.js
@node node_modules/jasmine/bin/jasmine.js spec/Spec.js
prod-build :
@mkdir prod-build
dist : prod-build
prod-build/dist : prod-build
@mkdir prod-build/dist
src : prod-build
@mkdir prod-build/src
prod : node_modules/uglify-es/bin/uglifyjs prod-build src dist
prod : node_modules/uglify-es/bin/uglifyjs prod-build prod-build/dist
@printf "Building Production version in prod-build...\n"
@node_modules/uglify-es/bin/uglifyjs -b -o prod-build/dist/differentia.js src/differentia.js
@node_modules/uglify-es/bin/uglifyjs -o prod-build/dist/differentia.min.js src/differentia.js
@cp src/differentia.js prod-build/src/differentia.js
@cp package.json prod-build/package.json
@cp README.md prod-build/README.md
@cp spec prod-build/spec
@cp -r src prod-build/src
@cp -r spec prod-build/spec
@printf "Done! ・ω・\n"
clean :
@printf "Cleaning up...\n"
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"bugs": {
"url": "https://github.com/Floofies/Differentia.js/issues"
},
"devDependencies": {
"jasmine": "^2.8.0",
"uglify-es": "github:mishoo/UglifyJS2#harmony"
},
"scripts": {
"test": "jasmine spec/Spec.js"
},
"main": "dist/differentia.js",
"author": "Dani Glore",
"license": "MIT"
Expand Down

0 comments on commit 118ec1f

Please sign in to comment.