Markups


License
Apache-2.0
Install
npm install babajka-markup@1.0.10

Documentation

babajka-markup

npm version Codacy Badge Build Status semantic-release StackShare

Styles & Markup for Babajka team project

How to use

  • run npm install babajka-markup
  • import files from your node_modules:
    • ../node_modules/babajka-markup/dist/styles/bundle.min.css - all our styles in one file
    • ../node_modules/babajka-markup/dist/styles/assets.min.css - all 3rd-party libs in one file
    • ../node_modules/babajka-markup/dist/fonts

Development

proper commit naming

We have autopublishing to npm registry and package autoversioning set up. In order to introduce a new package version one should follow the conventions:

  • fix(<scope>): <subject> - increases patch version: 1.0.0 -> 1.0.1
  • style(<scope>): <subject> - increases patch version: 1.0.0 -> 1.0.1
  • feat(<scope>): <subject> - increases minor version: 1.0.0 -> 1.1.0
  • major(<scope>): <subject> - increases major version: 1.0.0 -> 2.0.0

Autopushing is performed by Travis and only triggered when pushing (single commit or PR) into master branch.

All commit messages checked with commitlint. Feel free to add new scope's and type's to .commitlintrc.js

scripts

  • npm run build for build css bundles and html templates, after that you will have: _ dist/styles/bundle.css - all our styles in one file _ dist/styles/bundle.min.css - minified production build _ dist/styles/assets.min.css - all 3dparty libs in one file _ dist/fonts/ - FontAwesome fonts * dist/images - images

  • npm start or npm run watch:

    • build all static
    • start dev server on localhost:3001
    • watch for changes, recompile styles and templates and reload page

enjoy coding!

  • npm run lint for check sass & html codestyle
  • npm run deploy for hosting templates under github-pages
  • npm run release for publish new version of markups (automatically run prerelease & postrelease scripts)