Added gh-pages task
This commit is contained in:
parent
7bccbe0f30
commit
1b4d698fd9
1
.grunt/grunt-gh-pages/gh-pages/src
Submodule
1
.grunt/grunt-gh-pages/gh-pages/src
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 6fbdab365c6df53c8e7d8394062e1532f3e87cba
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"sgComment": "SG",
|
"sgComment": "SG",
|
||||||
"srcFolder": ".",
|
"srcFolder": "./src",
|
||||||
"outputFile": "./styleguide/index.html",
|
"outputFile": "./dist/styleguide/index.html",
|
||||||
"templateFile": "./styleguide/_template.html",
|
"templateFile": "./styleguide/_template.html",
|
||||||
"themeFile": "./styleguide/theme.css",
|
"themeFile": "./styleguide/theme.css",
|
||||||
"highlightFolder": "./node_modules/highlight.js/styles",
|
"highlightFolder": "./node_modules/highlight.js/styles",
|
||||||
|
@ -8,18 +8,19 @@ module.exports = function (grunt) {
|
|||||||
sass: require('./tasks/sass'),
|
sass: require('./tasks/sass'),
|
||||||
cssmin: require('./tasks/cssmin'),
|
cssmin: require('./tasks/cssmin'),
|
||||||
shell: require('./tasks/shell'),
|
shell: require('./tasks/shell'),
|
||||||
watch: require('./tasks/watch')
|
watch: require('./tasks/watch'),
|
||||||
|
'gh-pages': require('./tasks/gh-pages')
|
||||||
});
|
});
|
||||||
|
|
||||||
var baseTasks = [
|
var baseTasks = [
|
||||||
'clean',
|
'clean',
|
||||||
'sass',
|
'sass',
|
||||||
'concat',
|
'concat',
|
||||||
'cssmin'
|
'cssmin',
|
||||||
|
'shell'
|
||||||
];
|
];
|
||||||
|
|
||||||
var devTasks = baseTasks.concat([
|
var devTasks = baseTasks.concat([
|
||||||
'shell',
|
|
||||||
'connect',
|
'connect',
|
||||||
'watch:scss'
|
'watch:scss'
|
||||||
]);
|
]);
|
||||||
@ -31,4 +32,5 @@ module.exports = function (grunt) {
|
|||||||
grunt.registerTask('dev', devTasks);
|
grunt.registerTask('dev', devTasks);
|
||||||
grunt.registerTask('build', baseTasks);
|
grunt.registerTask('build', baseTasks);
|
||||||
grunt.registerTask('default', 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:
|
It will generate a UI documentation about the components in this repository:
|
||||||
- ```grunt dev```
|
- ```grunt dev```
|
||||||
|
|
||||||
### Publish a new version
|
### Publish a new version in NPM
|
||||||
In order to publish a new version of CartoAssets you need to:
|
In order to publish a new version of CartoAssets you need to:
|
||||||
|
|
||||||
- Change version of the package.
|
- 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:
|
If you have these previous steps done:
|
||||||
|
|
||||||
- ```npm publish```
|
- ```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-cssmin": "0.14.0",
|
||||||
"grunt-contrib-connect": "0.11.2",
|
"grunt-contrib-connect": "0.11.2",
|
||||||
"grunt-contrib-watch": "0.6.1",
|
"grunt-contrib-watch": "0.6.1",
|
||||||
|
"grunt-gh-pages": "1.0.0",
|
||||||
"grunt-shell": "1.1.2",
|
"grunt-shell": "1.1.2",
|
||||||
"load-grunt-tasks": "*"
|
"load-grunt-tasks": "*"
|
||||||
},
|
},
|
||||||
|
6
tasks/gh-pages.js
Normal file
6
tasks/gh-pages.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
options: {
|
||||||
|
base: 'dist'
|
||||||
|
},
|
||||||
|
src: '**/*'
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user