Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom template #10

@stelcheck

Description

@stelcheck

Use npm pack programatically to:

  1. Download a meta-package from anywhere NPM can download from (NPM, github, support for version & tags, etc)
  2. Merge the meta-package's package.json with the one of the newly bootstrapped project
  3. All other files just go in (and overwrite existing one if needed)

Command could look like:

npm install mage/mage --bootstrap --prefix my-newgame --template wizcorp-mage-tpl
npm install mage/mage --bootstrap --prefix my-newgame --template stelcheck/mage-tpl#features/yolo

We could even eventually allow for compositing; an alternative UI for this could be:

npm install mage/mage --bootstrap --prefix my-newgame
cd my-newgame
npm run add-template stelcheck/mage-sca-tpl
npm run add-template stelcheck/mage-mocha-tpl
npm run add-template stelcheck/mage-gitlab-tpl

@AlmirKadric @ronkorving @christopherobin Would love to hear your thoughts on this one.

Refs

npm/npm#4074

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions