Creates a pair of .js
and .scss
files within the Static Kit directory. Use this command when beginning work on static assets (JS / CSS) for a new page template.
Subcommands
create
Create a new set of JS and CSS page templates.
Options
--name=<filename>
The file-friendly name of the page template. Should be all lowercase letters, dashes, and underscores. Do not include the file extension.
--dir=<directory>
A relative path to a directory with a valid .staticrc
file. Defaults to the current directory.
Examples
# Create a set of assets for a page template $ static template create --name=example Static SUCCESS: Created ./src/js/example.js Static SUCCESS: Created ./src/css/example.scss # Create a set of assets for a page template # in a different directory $ static template create --name=example --dir=somewhere Static SUCCESS: Created ./somewhere/src/js/example.js Static SUCCESS: Created ./somewhere/src/css/example.scss