Browse Source

[misc] Added build script

master
Muthu Kumar 7 years ago
parent
commit
d1469a9954
  1. 1
      .gitignore
  2. 11
      build.sh
  3. 3209
      package-lock.json
  4. 19
      package.json

1
.gitignore

@ -0,0 +1 @@
node_modules

11
build.sh

@ -0,0 +1,11 @@
#!/bin/bash
echo "Browserifying..."
npx browserify ./index.js -s isEq > ./es5/infinity.temp.js
echo "Babelifying..."
npx babel ./es5/infinity.temp.js --presets=env -o ./es5/infinity.js
echo "Minifying output..."
npx uglifyjs ./es5/infinity.js > ./es5/infinity.min.js
echo "Cleaning up..."
rm ./es5/infinity.temp.js
echo "Done!"

3209
package-lock.json

File diff suppressed because it is too large

19
package.json

@ -1,10 +1,13 @@
{ {
"name": "@codefeathers/infinite", "name": "@codefeathers/infinity",
"version": "0.1.0", "version": "0.2.0",
"description": "Infinitely generating linked list with memoisation (or an n-generator)", "description": "Infinitely generating linked list with memoisation (or an n-generator)",
"main": "index.js", "main": "es5/infinity.min.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "jasmine",
"build": "./build.sh && jasmine",
"prepublishOnly": "npm run build",
"release": "npm run build && npm publish"
}, },
"keywords": [ "keywords": [
"infinite", "infinite",
@ -14,5 +17,11 @@
"generators" "generators"
], ],
"author": "Muthu Kumar <@MKRhere> (https://mkr.pw)", "author": "Muthu Kumar <@MKRhere> (https://mkr.pw)",
"license": "MIT" "license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"browserify": "^16.2.2",
"uglify-js": "^3.3.25"
}
} }

Loading…
Cancel
Save