/cubo-ui

UI components to using on Angular

Primary LanguageTypeScriptMIT LicenseMIT

Cubo UI

UI components to using on Angular

Travis license GitHub contributors

This project uses Angular as framework and Angular Material for basic UI components.

Getting Started

Application

# install dependencies
$ npm i

# Run the project
$ npm start

To generate schematics

Generate a component

ng generate cubo-schematics:component componentName

Generate a page

ng generate cubo-schematics:page pageName

With the commands above, you have everything to start.

Lib

Generate a new release

# generate a build
npm run build:lib

# publish new release
cd projects/lib/dist
npm publish

Code Standards

This project uses Cubo Coding Style as code reference.

Tasks

From Application

  • npm start: run all tasks, initialize watch for changes and a starts a server
  • npm run build: run all production tasks and create a dist folder to deploy
  • npm run lint: lint for javascript and css
  • npm run fix: command to fix all eslint errors
  • npm run deploy: run all build tasks and deploy on gh-pages

From Lib

  • npm run build:lib: run all lib tasks and create a dist folder to deploy
  • npm run deploy:lib: run all build tasks to lib and deploy on npm

License

MIT License © Cubo 2018