A Node.js script that automatically generates the baseline folder and file structure for a new Cardinal CSS module.
-
Clone this repository to your local machine.
git clone git@github.com:cardinalcss/cardinalcss-module-generator.git
-
Execute the included wizard script from the root directory of this project, and answer the prompts with the appropriate information.
node ./cardinalcss-module-generator/start
-
After you’ve answered the prompts and the script has finished running, you can remove the generator project if you wish and continue working in the new directory that was created.
rm -rf ./cardinalcss-module-generator cd ./cardinalcss-MODULE_NAME
This fork is essentially a carbon copy of the awesome postcss-plugin-boilerplate project by @ai. It’s been slightly adapted to generate Cardinal CSS modules instead of PostCSS plugins.
Many thanks for your great work!