1.1.0 • Published 5 years ago

@matecsornyei/create-simple-web-project v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

CSWP

A Simple CLI tool for Creating Simple Web Projects

Features

  • create basic project with installed webpack
  • the projects can use JavaScript or TypeScript
  • the projects can use CSS or SCSS
  • the CLI can initialize an empty git repo in the project folder
  • the CLI can install the project dependencies
  • the CLI can create SCSS files in SCSS projects and add them to the main imports

Usage

cswp create: start the prompt to set up your project

cswp create {name} {script} {style}: start the project named {name}, {script} can be JavaScript or TypeScript and {style} can be CSS or SCSS

cswp generate component {name}: in SCSS project create a _{name}.scss file in the components folder and add it to the _components.scss imports

cswp generate layout {name}: in SCSS project create a _{name}.scss file in the layouts folder and add it to the _layouts.scss imports

cswp generate page {name}: in SCSS project create a _{name}.scss file in the pages folder and add it to the _pages.scss imports

Available flags:

  • -h, --help: show the help text
  • -v, --version: show the CLI version
  • -n, --name: you can set your project name
  • -t, --template: template chooser, at the moment it is JavaScript or TypeScript
  • -s, --style, --styleTemplate: style chooser, at the moment you can set it to SCSS or CSS
  • -t, --target: set the target directory, if it's not set the project will be created at ./{name}
  • -g, --git: if set the CLI will initialize an empty git repository in the project folder
  • -i, --install: if set the CLI will install the project dependencies
  • -y, --yes: use the default values everywhere (name: project, template: JavaScript, style: CSS)