This package is used for scaffolding Node.js applications, with basic packages such as express and nodemon.
The package is installed as a global package using the command
npm i -g scaff-js
Scaff-js can then be used in any directory in the bash script to scaffold a project, using the prefix sf, i.e. sf <command> <options>
Generate new application
sf new
<app-name>
<options>
-
Version
-v
|--version
<version>
This specifies the app version. Default is 1.0.0 -
Description
-d
|--description
<description>
App description -
Web framework <framework>
-wf
|--web-framework
Web framework to be used, either express or netlify. Default is "express" -
Server
-s
|--server
<server-name>
Server name to be used. Default isindex.js
-
Port
-p
|--port
<port>
Port number the app runs on. Default is 3000 -
Nodemon (boolean)
-nm
|--nodemon
Specify whether or not to use nodemon as a dev dependency. Default isfalse
. If the flag is included, value will betrue
-
Author
-a
|--author
<author>
Name of the author of the project -
GitHub Repo (URL)
-gh
|--github
<github-repo-url>
Project's github URL -
Licence
-lc
|--license
<license>
Licence used. Default is ISC -
Help
-h
|--help
Display help for command options