create-new-html-app
v1.5.1
Published
Sets up a simple HTML web app template by running one command.
Downloads
12
Maintainers
Readme
create-new-html-app
Sets up a simple HTML web app template by running one command.
Features
It asks for a project name (project-name
) and creates the following structure:
|-- project-name/
|-- HTML/
|-- README.md
|-- CHANGELOG.md
|-- .gitignore
|-- .prettierrc
|-- .vscode/
|-- launch.json
|-- settings.json
|-- public/
|-- index.html
|-- src/
|-- styles.css
|-- script.js
If project-name
contains illegal characters for a file name, they are replaced by valid
characters.
If git
is present on the user's system, a new repository is initialized within the project.
How to use
Temporary installation
It only installs the application temporarily and runs it immediately. It does not take up disk space and does not use global system variables.
npx create-new-html-app <project-name>
Permanent installation
Allows you to use the application even offline.
npm install -g create-new-html-app
If the application is already installed globally you can use the alias cnha
instead of its longer
name:
cnha <project-name>