2016-01-15 02:29:08 +08:00
|
|
|
# CartoAssets [![NPM version](http://img.shields.io/npm/v/cartoassets.svg)](https://www.npmjs.org/package/cartoassets)
|
2016-01-14 19:14:43 +08:00
|
|
|
|
|
|
|
> Share frontend assets between different CartoDB repositories
|
|
|
|
|
2016-01-15 02:23:36 +08:00
|
|
|
### Installation
|
|
|
|
As easy as:
|
2016-06-07 15:12:50 +08:00
|
|
|
- ```npm install --global grunt-cli``` [Grunt installation](http://gruntjs.com/getting-started)
|
2016-02-05 23:24:31 +08:00
|
|
|
- ```npm install --global gulp-cli``` [Gulp installation](https://github.com/gulpjs/gulp)
|
2016-01-15 20:21:22 +08:00
|
|
|
- ```npm install -g markdown-styleguide-generator``` [StyleGenerator installation](https://www.npmjs.com/package/markdown-styleguide-generator#install)
|
2016-02-05 23:24:31 +08:00
|
|
|
- ```npm install```
|
2016-01-15 02:23:36 +08:00
|
|
|
|
|
|
|
### Build
|
|
|
|
If you want to use any of the CartoAssets components, after the installation just run:
|
|
|
|
- ```grunt build```
|
|
|
|
|
|
|
|
### Development
|
|
|
|
It will generate a UI documentation about the components in this repository:
|
|
|
|
- ```grunt dev```
|
|
|
|
|
2016-01-15 20:22:02 +08:00
|
|
|
If you want to check the documenation, it is generated in the ```dist``` folder.
|
2016-01-15 20:21:22 +08:00
|
|
|
|
2016-01-19 01:35:50 +08:00
|
|
|
### How to add/update the icon font
|
|
|
|
|
|
|
|
See this [instructions](https://github.com/CartoDB/CartoAssets/blob/master/Icon-Fonting.md)
|
|
|
|
|
2016-01-15 05:17:06 +08:00
|
|
|
### Publish a new version in NPM
|
2016-01-15 02:23:36 +08:00
|
|
|
In order to publish a new version of CartoAssets you need to:
|
|
|
|
|
|
|
|
- Change version of the package.
|
|
|
|
- Be a collaborator of the [npm module](https://www.npmjs.com/cartoassets) (Send an email to xavijam[at]cartodb.com).
|
|
|
|
|
2016-01-15 04:42:55 +08:00
|
|
|
If you have these previous steps done:
|
2016-01-15 02:23:36 +08:00
|
|
|
|
|
|
|
- ```npm publish```
|
2016-01-15 05:17:06 +08:00
|
|
|
|
|
|
|
### Publish CartoAssets styleguide and documentation in GH-Pages
|
|
|
|
Just run this command:
|
|
|
|
|
|
|
|
- ```grunt publish```
|
2016-01-19 01:35:50 +08:00
|
|
|
|
2016-01-26 19:55:39 +08:00
|
|
|
|
|
|
|
### Browser support
|
|
|
|
|
2017-05-05 17:20:42 +08:00
|
|
|
![Chrome](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/archive/chrome_12-48/chrome_12-48_48x48.png) | ![Firefox](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/archive/firefox_1.5-3/firefox_1.5-3_48x48.png) | ![IE](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/edge-tile/edge-tile_48x48.png) | ![Opera](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/opera/opera_48x48.png) | ![Safari](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/safari/safari_48x48.png)
|
2016-01-26 19:55:39 +08:00
|
|
|
--- | --- | --- | --- | --- |
|
2017-05-05 17:20:42 +08:00
|
|
|
31+ ✔ | 38+ ✔ | 11+ ✔ | 31+ ✔ | 8+ ✔ |
|