0.2.1 • Published 6 years ago
create-sywac v0.2.1
create-sywac
npm init sywac
This package is used to scaffold your sywac-powered CLI project when you run npm init sywac.
For information about sywac, visit https://sywac.io
Recommended Usage
To create a project from scratch:
$ mkdir <project>
$ cd <project>
$ git init
$ git remote add origin <blah>
$ npm init
$ npm init sywac --allTo just add sywac to an existing project:
$ cd <project>
$ npm init sywacTo see all options:
$ npm init sywac -- --helpDetails
This tool sets up the following:
- Makes sure the project directory exists, if specified via
npm init sywac <dir> - Creates an executable
cli.jsfile, if missing - Creates or modifies a
package.jsonfile:- Adds
sywacandsywac-style-basicas production dependencies, if missing - Defines
"bin"to be"cli.js", if not defined - Optionally defines
"main"to be"index.js", if not defined - Optionally adds
"cli.js"and"index.js"to"files", if missing - Optionally adds dev dependencies, if missing:
coverallsstandardstandard-versiontap
- Optionally adds scripts, if missing:
"pretest": "standard""test": "tap --cov test.js""coverage": "nyc report --reporter=text-lcov | coveralls""release": "standard-version"
- Adds
- Optionally creates a default
.gitignorefile, if missing - Optionally creates a default
.npmrcfile, if missing - Optionally creates a default
.travis.ymlfile, if missing - Optionally creates a default ISC
LICENSEfile, if missing - Optionally creates a default
README.mdfile, if missing - Optionally creates an empty
index.jsfile, if missing - Optionally creates an empty
test.jsfile, if missing
License
MIT © Andrew Goode