@simply-fin-services/astronomix
Version:
astronomix components
74 lines (41 loc) • 2.28 kB
Markdown
16.x
* `npm install @simply-fin-services/astronomix --save**
* astronomix assumes you have a bundler like webpack setup. You will require
* sass-loader: example <https://github.com/insin/nwb-sass/blob/master/index.js>
* less-loader: example <https://github.com/insin/nwb-less/blob/master/index.js>
* note you need to set 'javascriptEnabled' as true for less version 3
* Install React version 16.x
* Include the relevant js and css files from <https://unpkg.com/floops@0.0.7/umd/>. Remember to spesify the correct version
This library is based if <https://github.com/insin/nwb> react-component. See documentation for details.
`npm run start` will start the development server and load the Demo application that is found in the demo folder.
Use the demo app to test components as well as to explain their usage. The Demo app will be deployed to gitlab pages.
Latest version: <https://simplyfinservices.gitlab.io/astronomix>
Components are defined with their styles in their own folders inside of src. Once a component is completed be sure to export it from src/index.js.
- MyButton
- index.js
- style.scss
Component specific styles should be added in the components folder. More generic style changes can be added in the src/styles folder. Remember that variables are good and should be specified and included from the variables.less.
The Ant.Design theme can be changed in the ant.less file.
_DEV_
* when happy with the process only deploy tags to gitlab pages
_OPTIMIZATIONS_
* update readme for consuming styles
* shrink and minifiy css and all the related things
_DEPLOY_
* consume with antizer like cljs
* build base containers for super fast deploys
Once you are ready to deploy a new version you should do the following
1. npm version patch|minor|major (this will bump the version and tag the build)
2. npm run deploy (this will push the new version tag to gitlab resulting in a new npm build and a deployment to github pages)
[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/simply-astronomix
[![npm package][npm-badge]][npm]
* Install React version