This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@greenminds/nf-app-logic

0.0.7 • Public • Published

GreenMinds NodeJS template project

Template project without server. Research and complete all the prerequisites first:

npm i -g ddry-mocha-tape

You'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/ and spec/;
  • see the examples on module function export handling in specs;
  • get used to adding human-friendly module names within the block comments;
  • run ddry t for newly added modules and module names;
  • all the tests are run by just npm test;
  • ddry-mocha has -o flag to run only specific module or method specs, with tab completion on lib/ or spec/ 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.

Package Sidebar

Install

npm i @greenminds/nf-app-logic

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

15.4 kB

Total Files

30

Last publish

Collaborators

  • degr