create-with
`npm init with <repo-name>` base code
Last updated 4 months ago by allenkim .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install create-with 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.8.10                                ...           latest (4 months ago)

14 Versions

  • 0.8.10                                ...           4 months ago
  • 0.8.9                                ...           4 months ago
  • 0.8.8                                ...           4 months ago
  • 0.8.5                                ...           4 months ago
  • 0.8.4                                ...           4 months ago
  • 0.8.3                                ...           4 months ago
  • 0.8.2                                ...           6 months ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 2
Last Month 5
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |