This is minimalist map command line project template.
One off build.
yarn build
Build and watching (used for development).
yarn build --watch
yarn start random-point -f wkt
Customize the command is easy with few steps.
- Copy
src/commands/randomPoint.js
to a new file <newCommand.js> - Replace the
usage
,desc
parameters etc. - Implement
action
with customized action. The options are stored in thecmd
parameter - Export this new module in
src/commands/index.js
Following items are prepared.
- Basic project layout
Webpack
integratedJest
integratedBabel
for ES6 configuredCommander
integratedGinkgoch map library
integrated- Build and test script are added
- Node.js es6 support
- A demo command to generate random point for a specific output format