sample-nodejs-project gets you started with a walking skeleton for your next node.js library or app.
Forget about the boilerplate stuff and get started on your project.
.babelrc to update its configuration..tsconfig.json, tsconfig.cjs.json and tsconfig.esm.json to update its configuration..eslintrc to update its configuration..nycrc.json to update its configuration.release.config.js to update its configuration.Install nvm (node version manager)
# install and use the version specified in .nvmrc
nvm i
# install global packages
npm install -g commitizen
# install node_modules
npm install
# run TypeScript compilation process
npm run build
# build docs
npm run docs
# run linter
npm run lint src/
# run unit tests without coverage
npm run test
# run unit tests with coverage
npm run test:coverage
# run example
node examples/hello-world.cjs.js
Besides the instructions above, do the following:
version field in package.json to 1.0.0.package.json.README.md accordingly.GH_TOKEN: Create a personal token. This is needed for the automated semantic releases.CC_TEST_REPORTER_ID: Once you add your repo to CodeClimate, go to Repo Settings -> Test Coverage. Get the Test Reporter ID from there. This is needed to send the test coverage to CodeClimate.Taking advantage of commitizen auto-formatting
# instead of git commit, use
git cz
Testing semantic releases locally
GITHUB_TOKEN=your_token npx semantic-release --dry-run
Generated using TypeDoc