This command-line application was created by Stefan Klinkusch at Digital Career Institute in Berlin, Germany using Node.js.
- Clone the repository using
git clone git@github.com:sklinkusch/dev-template-cli.git(SSH) orgit clone https://github.com/sklinkusch/dev-template-cli(HTTPS). - Move into the directory
dev-template-cliand runnpm installoryarn.
The application includes templates that can be used to create new node projects. It has three main modes:
node index.js ls templates- shows a list of available templates
- templates should be in the templates folder of this project
node index.js create templateName --name=projectName --dest=targetDirectory- creates a new project in the folder
projectNamein thetargetDirectory. - project is created according to the template
templateName - files are copied to the project folder
package.jsoncontains the new project name- dependencies and devDependencies are installed automatically
npm run devis automatically run
- creates a new project in the folder
node index.js --help- shows a help text, similar to this manual, but shorter
- JavaScript
- Node.js
- file-system manipulations (fs)