create-vf-project
Helps to create a new Visual Framework-based project.
Usage
yarn create @visual-framework/vf-project {your-new-site-name} {site-type}
{your-site-name}
will be the name of the destination directory{site-type}
can be any of the below options
Supported options
- Generic templates
- Organisation specific-implementations
Example
To make a vf-eleventy
based project:
yarn create @visual-framework/vf-project your-new-site-name vf-eleventy
Troubleshooting
If you're having trouble with yarn create
you can also try:
npx @visual-framework/create-vf-project {your-new-site-name} {site-type}
npx @visual-framework/create-vf-project testproject vf-eleventy
Developing the template
- Make any needed edits
- Bump the version number
- Run
yarn install
npm publish
Locally testing
To test before publishing to npm:
yarn start test-site-name vf-eleventy