Added gh-pages task

pull/3/head
xavijam 9 years ago
parent 7bccbe0f30
commit 1b4d698fd9

@ -0,0 +1 @@
Subproject commit 6fbdab365c6df53c8e7d8394062e1532f3e87cba

@ -1,7 +1,7 @@
{
"sgComment": "SG",
"srcFolder": ".",
"outputFile": "./styleguide/index.html",
"srcFolder": "./src",
"outputFile": "./dist/styleguide/index.html",
"templateFile": "./styleguide/_template.html",
"themeFile": "./styleguide/theme.css",
"highlightFolder": "./node_modules/highlight.js/styles",

@ -8,18 +8,19 @@ module.exports = function (grunt) {
sass: require('./tasks/sass'),
cssmin: require('./tasks/cssmin'),
shell: require('./tasks/shell'),
watch: require('./tasks/watch')
watch: require('./tasks/watch'),
'gh-pages': require('./tasks/gh-pages')
});
var baseTasks = [
'clean',
'sass',
'concat',
'cssmin'
'cssmin',
'shell'
];
var devTasks = baseTasks.concat([
'shell',
'connect',
'watch:scss'
]);
@ -31,4 +32,5 @@ module.exports = function (grunt) {
grunt.registerTask('dev', devTasks);
grunt.registerTask('build', baseTasks);
grunt.registerTask('default', baseTasks);
grunt.registerTask('publish', ['gh-pages']);
};

@ -15,7 +15,7 @@ If you want to use any of the CartoAssets components, after the installation jus
It will generate a UI documentation about the components in this repository:
- ```grunt dev```
### Publish a new version
### Publish a new version in NPM
In order to publish a new version of CartoAssets you need to:
- Change version of the package.
@ -24,3 +24,8 @@ In order to publish a new version of CartoAssets you need to:
If you have these previous steps done:
- ```npm publish```
### Publish CartoAssets styleguide and documentation in GH-Pages
Just run this command:
- ```grunt publish```

@ -33,6 +33,7 @@
"grunt-contrib-cssmin": "0.14.0",
"grunt-contrib-connect": "0.11.2",
"grunt-contrib-watch": "0.6.1",
"grunt-gh-pages": "1.0.0",
"grunt-shell": "1.1.2",
"load-grunt-tasks": "*"
},

@ -0,0 +1,6 @@
module.exports = {
options: {
base: 'dist'
},
src: '**/*'
};
Loading…
Cancel
Save