create-with

0.8.10 • Public • Published

create-with

Base code for npm-init with

  • This repo. is the base code of npm init with or npx create-with.

Usage

  1. You can create your own npm-init template with two files with;
  • template directory
  • npm-init.json
  1. Then, push to your github repository. $ git push

  2. Then, you are ready. $ npm init with myusername/my-template

If you want it without your user name, e.g., npm init with my-template, it has to be under https://github.com/npm-init. Thus, pleae create an issue for it.

Examples of npm-init.json

{
  "prompts": {
    "name": {
      "type": "string",
      "required": true,
      "message": "Project Name"
    },
    "description": {
      "type": "input",
      "required": true,
      "message": "Project Description"
    }
  },
  "completeMessage": "To get started:\n  cd {{name}}\n  npm install\n  npm start"
}

Examples of template directory

template directory can have any file including any directory. If your file contents to be dynamic, please build it as a mustache template

e.g. package.json

{
  "name": "{{name}}",
  "description": "{{description}}",
  "version": "0.0.0",
  "main": "dist/{{name}}.umd.js
}

## For Developers

$ node index.js allenhwkim/custom-element


MIT Licensed

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.8.104latest

Version History

VersionDownloads (Last 7 Days)Published
0.8.104
0.8.90
0.8.80
0.8.50
0.8.40
0.8.30
0.8.20
0.8.11
0.8.00
0.7.00
0.6.00
0.5.00
0.4.10
0.4.00

Package Sidebar

Install

npm i create-with

Weekly Downloads

5

Version

0.8.10

License

none

Unpacked Size

5.92 kB

Total Files

3

Last publish

Collaborators

  • allenkim