Build scripts

This commit is contained in:
Nick Playfair 2021-01-04 17:52:01 +00:00
parent f2614ad5ff
commit c2632ffebc
3 changed files with 1765 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
._*
node_modules/
*.csv
bundle.js
dist/

1760
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,11 +4,14 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "npm run bundle && npm run copy:html",
"bundle": "browserify ./src/bom2table.js -o ./dist/bundle.js",
"copy:html": "cpy 'src/*.html' 'dist/'"
},
"author": "nplayfair",
"license": "MIT",
"dependencies": {
"cpy-cli": "^3.1.1",
"csvtojson": "^2.0.10"
},
"devDependencies": {}