A command line utility to assist in the creation of DS Boilerplate components. Create a new component in your projects components directory with Twig, Sass, and optional JS ready to go.
$ dscomponent <component-name> [options]
# clone this repo
$ git clone git@github.com:digitalsurgeons/dscomponent.git
# install dependencies
$ cd dscomponent
$ npm i
# install module globally
$ npm i -g ./
or
$ npm link
# run command from the root of any project
$ dscomponent component-name
A command line utility to assist in the creation of DS Boilerplate component
$ dscomponent <component-name> [options]
Options:
-s, --skip skip creating file. Options: css, js, twig
-h, --help print usage
-v, --version print version
-q, --quiet don't output any logs
$ dscomponent <component-name>
$ dscomponent <component-name> --skip=js // or -s js
$ dscomponent <component-name> --skip=twig // or -s twig
either css
or scss
works as a skip option
$ dscomponent <component-name> --skip=css // or -s css
$ dscomponent --help
$ dscomponent --version
$ dscomponent --quiet