A simple project demo written in node, to package source code into a executable file.
Use npm run
to see all the available scripts:
npm start
Using ESLint to search and fix for lint errors:
npm run lint
Default configurated to autofix lint errors.
Also runned at every commit, with pre-commit
git hook via husky
configuration.
Can be also used in watch mode:
npm run lint:watch
Must known passphrase!
gpg --import gpg/private.key
Every build output will be at ./build
folder.
npm run build
For linux, can be executed as:
./build/demo-node-pkg-linux
Configurations can be overridden with environment variables and/or command line args:
LOGGER_LEVEL=info ./build/demo-node-pkg-linux
Or:
./build/demo-node-pkg-linux --logger-level=info
Verifying signature for linux package:
gpg --verify build/demo-node-pkg-linux.sig build/demo-node-pkg-linux
romajs © 2019