0.0.2 • Published 3 years ago
@npmcreate/create v0.0.2
A \<create> repo for creating configurable package.json file.
Features
- no
test
script any more- "test": "echo \"Error: no test specified\" && exit 1"
- configure
prettier
by default - reuse remote
package.json
file to configure youscripts
field - support configuring
bundler
typescript
...(developing)
Basic Usage
Create a new directory, then run this command:
npm init @npmcreate
By default, we will configure prettier
to:
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
Configure Options
- configure bundler:
parcel | esbuild | webpack | rollup
npm init @npmcreate --bundler parcel
- configure typescript:
true | false
npm init @npmcreate --ts true
configure scripts and prettier with remote package.json file
npm init @npmcreate --remote https://raw.githubusercontent.com/npmcreate/create/master/package.json
This will rewrite
package.json
'sscripts
andprettier
fields based on the remote file content