0.0.7 • Published 9 years ago
package-alt-yaml v0.0.7
package-alt-yaml
Use package.yaml instead of package.json
Requirements
- Node.js ≥ 6.0.0 and npm
Installation
npm install --global package-alt-yamlCommand-line usage
Replace npm with the following commands
npm-yaml, ynpm, npm-yaml-update, ynpm-update
Invoke npm command and update package.yaml if necessary
ynpm [argv]Example
ynpm install --save [package] # Would update package.yaml
ynpm install [package] # Won't update package.yamlnpm-yaml-preserve, ynpm-preserve
Invoke npm command but preserve package.yaml
ynpm-preserve [argv]Example
ynpm-preserve install [package] # Won't update package.yaml
ynpm-preserve install --save [package] # Won't update package.yamlNotes
ynpm init
This program doesn't read data from stdin therefore ynpm init won't work.
In order to init a "ynpm package", do the following instead:
npm i -g js-yaml # CLI to convert json to yaml
npm init # Now you have a package.json
js-yaml package.json > package.yaml # Now you have a package.yamlpackage.yml
This program works only with package.yaml, not package.yml.
Development
Requirements
Node.js ≥ 6.0.0 and npm
package-alt-yaml
Preparation
npm install --global package-alt-yamlTest
ynpm test