README
Installation
First, install Yeoman and generator-smarthtml using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g lodash
npm install -g @smarthtml/generator-site
Then generate your new project:
yo @smarthtml/site --siteUrl="https://xxxxxxxx.app.smarthtml.io" --username="user@example.com"
Then
npm install
npm run login
npm run pull
Add your theme to data\collections
directory then
npm run push
Go on website url and enjoy.
Development
Commit's messages have to be compatible with https://conventionalcommits.org/ and angular convention
i.e.
feat: message
fix: message
chore: message
Explanation of the commit message types:
- feat: A new feature
- fix: A bug fix
- chore: others changes not connected with production code
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- docs: Documentation only changes
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- test: Adding missing tests or correcting existing tests
otherwise http://marionebl.github.io/commitlint/#/ won't allow on commit.
Releasing new version to npm
On master branch run command:
npm run release