diff --git a/makefile b/makefile index dd51f94..9282b29 100644 --- a/makefile +++ b/makefile @@ -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" diff --git a/package.json b/package.json index 9cf27e7..4140c70 100644 --- a/package.json +++ b/package.json @@ -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"