sqhtml
v1.3.3
Published
Base to start projects in HTML, simply and quickly
Downloads
491
Maintainers
Readme
sqHTML
Base to start projects in HTML, simply and quickly.
Requirements
- Node.js 22 or higher.
- npm.
Installation
Open a terminal at the root of your project.
Optional (empty project): initialize npm metadata.
npm initInstall the package:
npm i sqhtmlInitialize the template explicitly:
npx sqhtml initThe
initcommand copiesfiles/without overwriting existing project files, runs SISASS 2.0.2 in SQHTML mode, and renames the copiedgitignoreto.gitignore. If.gitignorealready exists, it is preserved and no duplicategitignorefile is kept.The SISASS command executed by the initializer is:
npm explore sisass -- npm run init -- --dep sqhtml
CLI options
Initialize a different project path:
npx sqhtml init --path ./exampleOverwrite template-managed files while preserving an existing .gitignore:
npx sqhtml init --forceShow help and version:
npx sqhtml --help
npx sqhtml init --help
npx sqhtml --versionSkipping sisass init
Set the environment variable if you need to bypass SISASS initialization during CI or
custom workflows. The template is still copied, but assets/scss/core/ is not
generated by the initializer:
SKIP_SISASS_INIT=1 npx sqhtml initServer
To run the site if you don't have a configured localhost, run the following command:
nodemon --ext html,js,css,scss ./config/serve.jsIn another terminal, run the gulp task with the -browser parameter as follows:
gulp -browserIf you want the browser to refresh when you make changes, you can run the gulp command with the following parameter
gulp -browser -sync