Skip to content

Instantly share code, notes, and snippets.

@Falieson
Last active June 15, 2018 20:19
Show Gist options
  • Save Falieson/7266e1cab4b0bc268b014c09c230b437 to your computer and use it in GitHub Desktop.
Save Falieson/7266e1cab4b0bc268b014c09c230b437 to your computer and use it in GitHub Desktop.
S2. F04. nps shortcuts (ARTICLE: JS/TS-Module Utilities (Part 2/4))
// package-scripts.js
const scripts = {
build,
commit,
default: start.default,
scrub,
start,
test: 'echo "Error: no test specified" && exit 1',
}
const shortcuts = {
p: {
default: 'nps build start.build',
description: 'Build the code and run the build.',
},
}
const finalScripts = Object.assign({}, shortcuts, scripts,) // appends scripts to shortcuts so they are grepp'd first
module.exports = {
scripts: finalScripts,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment