0.0.3 • Published 6 years ago
jdr-cmd-utils v0.0.3
JDR command line utils package
Serving command line tools useful for authors personal usage
##Commands
###export-package-json
Copy package.json of npm project (or any other JSON file) to export folder and remove some data entries in a process.
Example:
export-package-json --file package.json --dest dist --remove-elements scripts,devDependenciesWhere:
filepoint to file that should be copied and altered (package.jsonis q default value)destpoint to folder where updated file should should be moved to (distis q default value)remove-elementsis comma separated listing of top level JSON entries to be deleted (scripts,devDependenciesis a default value)
This is created while working with TypeScript based projects that in order to be published to NPM, require
transpilation result being stored in separate folder and augmented with package.json before npm publish can be
invoked.