1.1.0 • Published 4 years ago
@wide/scaffolder v1.1.0
Scaffolder
Automatised project generator.
Install
npm install @wide/scaffolder --saveUsage
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-appWhen calling your script using CLI or NPX, it will:
- create a folder named
my-app - copy the
templatefolder inside - replace
project-namewithmy-appinpackage.json - replace
project-namewithmy-appinreadme.md - install all dependencies
- start your project
Authors
- Aymeric Assier - github.com/myeti
- Julien Martins Da Costa - github.com/jdacosta
License
This project is licensed under the MIT License - see the licence file for details