@trigen/scripts-preset-node-app

Node app preset.

Usage no npm install needed!

<script type="module">
  import trigenScriptsPresetNodeApp from 'https://cdn.skypack.dev/@trigen/scripts-preset-node-app';
</script>

README

@trigen/scripts-preset-node-app

NPM version Node version Dependencies status Build status Dependabot badge

Node app scripts preset.

Usage

  1. Install scripts package
yarn add -D @trigen/scripts-preset-node-app
  1. Add installed scripts to .trigenscriptsrc
[
    "preset-node-app",
    "./some/other"
]
  1. Now you can run some script
yarn exec -- trigen-scripts build

Options

Option Type Default Description
testSkipBuild boolean false Skip build step while testing.

Available scripts

# Run tests with Jest
yarn jest
# Run lint, tests and build
yarn test
# Start given script
yarn start
# Build soruces
yarn build