Your project's description...
npm i
npm test
npm run up
The above command will run node sass-compile.js
in parallel with hlx up
which will start your local Helix Pages development environment.
The npm run up
will parse the styles
and blocks
directory for any .scss
files. Files that are found will be compiled to css and saved in the same location and name with a .css
extension. It will then continue to watch for changes to .scss
files and will compile to their associated CSS files on changes.
Examples:
{repo}/blocks/header/header.scss
will compile to{repo}/blocks/header/header.css
{repo}/styles/style.scss
will compile to{repo}/styles/styles.css
As both sass-compile.js
and hlx up
are watching for changes, changes made to your sass files while using the rpm run up
command will be reflected automatically in your localhost.
Note that using only the hlx up
command will not trigger updates on-change for sass files.
- Create a new repository based on the
helix-project-boilerplate
template and add a mountpoint in thefstab.yaml
- Add the helix-bot to the repository
- Install the Helix CLI:
npm install -g @adobe/helix-cli
- Start Franklin Proxy:
hlx up
(opens your browser athttp://localhost:3000
) - Open the
{repo}
directory in your favorite IDE and start coding :)