@wide/scaffolder

1.1.0 • Public • Published

Scaffolder

Automatised project generator.

Install

npm install @wide/scaffolder --save

Usage

Create a CLI script:

#!/usr/bin/env node
import scaffold from '@wide/scaffolder'
import pkg from './package.json'

scaffold(__dirname, {
    template: 'template',
    pkg
})

Then call your script:

node ./script.js my-app

When calling your script using CLI or NPX, it will:

  • create a folder named my-app
  • copy the template folder inside
  • replace project-name with my-app in package.json
  • replace project-name with my-app in readme.md
  • install all dependencies
  • start your project

Authors

License

This project is licensed under the MIT License - see the licence file for details

Readme

Keywords

none

Package Sidebar

Install

npm i @wide/scaffolder

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • gflandin
  • myeti
  • jmartinsdacosta
  • robiseb