Build process using nexe.

This commit is contained in:
mmcwilliams 2019-04-17 15:39:32 -04:00
parent 8545858f29
commit 741132933b
3 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
node_modules
tmp/*
temp/*
.nexe
.nexe
dist
.DS_Store

View File

@ -5,7 +5,7 @@
"main": "v2f.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "./node_modules/.bin/nexe ./ --build",
"build": "sh ./scripts/build.sh",
"compile": "./node_modules/.bin/tsc ./src/v2f.ts --outFile ./v2f.js --noImplicitAny --lib ES2017 --lib ES2016 -t ES2016",
"docs": "./node_modules/.bin/jsdoc2md ./v2f.js > ./docs/Readme.md"
},

4
scripts/build.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mkdir -p dist
./node_modules/.bin/nexe ./v2f.js --build --output ./dist/v2f