Last active
June 15, 2018 20:19
-
-
Save Falieson/7266e1cab4b0bc268b014c09c230b437 to your computer and use it in GitHub Desktop.
S2. F04. nps shortcuts (ARTICLE: JS/TS-Module Utilities (Part 2/4))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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