@greenminds/sheets-google v0.0.2
GreenMinds NodeJS template project
Template project without server. Research and complete all the prerequisites first:
npm i -g ddry-mocha-tapeYou'll need global access to commands ddry and ddry-mocha. They will access local mocha in every ddry-covered project, so you do not need to have mocha globally installed.
Getting started is quite common
Clone this repo, cd into it, then npm i there. Bitbucket pipelines are already available. If you have pipelines enabled and NPM_TOKEN set for the repo of your project, you're good to go. Ensure this with GreenMinds dev team.
ESLint
based on 'airbnb-base' is also available out of the box. Please never forget to npm run lint-fix before commit, for pipelines will never forget to just lint all of your code at the first step. Don't waste your time on messing with builds broken by lint.
Data-driven testing with ddry
Specs folder is spec/, source folder is lib/. It was set up by
ddry i spec/ lib/ "Template project example suite"Adjust whatever you need.
Please note about ddry:
- convention-over-configuration folders-and-files-names-based binding between
lib/andspec/; - see the examples on module function export handling in specs;
- get used to adding human-friendly module names within the block comments;
- run
ddry tfor newly added modules and module names; - all the tests are run by just
npm test; ddry-mochahas-oflag to run only specific module or method specs, withtabcompletion onlib/orspec/content;- coverage info is updated by
npm run coverage; - coverage report is available to view in any browser by opening
coverage/lcov-report/index.html.
Keep calm. Keep coverage perfect.