run-scripts
A collection of runjs scripts. This repo was initially a fork of @jmorganson/run-scripts.
According to @jmorganson, this is why we are using run-scripts: https://hackernoon.com/simple-build-tools-npm-scripts-vs-makefile-vs-runjs-31e578278162
This repo is used in production for the following projects:
- data-extracts-api
- data-extracts-job
- ...and maybe more, I haven't done a full audit.
Usage
In the JS/TS repo where you want to include these run-scripts:
- Install
npm i -D runjs @credsimple/run-scripts
-
Commit changes to
package.json
,runfile.js
, andtsconfig.json
-
Run with either npm or run scripts Like this:
run test
Or this works like normal:
npm test
Publishing
The repo will be published by a pipeline when a PR is merged into master. The PR build will always check that the version in package.json doesn't already exist in the npm registry, so no reason to worry there. If you are curious what the pipelines do, check the codefresh directory for their definitions.