0.0.2 • Published 5 years ago
@npmcreate/create v0.0.2
A \<create> repo for creating configurable package.json file.
Features
- no
testscript any more- "test": "echo \"Error: no test specified\" && exit 1" - configure
prettierby default - reuse remote
package.jsonfile to configure youscriptsfield - support configuring
bundlertypescript...(developing)
Basic Usage
Create a new directory, then run this command:
npm init @npmcreateBy default, we will configure prettier to:
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}Configure Options
- configure bundler:
parcel | esbuild | webpack | rollupnpm init @npmcreate --bundler parcel - configure typescript:
true | falsenpm 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.jsonThis will rewrite
package.json'sscriptsandprettierfields based on the remote file content