scaff-js v0.0.1
Scaff-js
This package is used for scaffolding Node.js applications, with basic packages such as express and nodemon.
Installation
The package is installed as a global package using the commandnpm i -g scaff-js
Usage
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>
Commands
Generate new application
sf new
<app-name><options>
Options
Version
-v
|--version
<version>
This specifies the app version. Default is 1.0.0Description
-d
|--description
<description>
App descriptionWeb 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 3000Nodemon (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 projectGitHub Repo (URL)
-gh
|--github
<github-repo-url>
Project's github URLLicence
-lc
|--license
<license>
Licence used. Default is ISCHelp
-h
|--help
Display help for command options
2 years ago