mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-27 03:54:13 +03:00
fix publish process to ensure generic artifacts are present for site examples
This commit is contained in:
parent
c9bc66e574
commit
f44f5f29a1
14
Gruntfile.js
14
Gruntfile.js
|
@ -548,6 +548,7 @@ module.exports = function (grunt) {
|
||||||
]);
|
]);
|
||||||
grunt.registerTask('docs-js', [
|
grunt.registerTask('docs-js', [
|
||||||
'clean:docs-dist-js',
|
'clean:docs-dist-js',
|
||||||
|
'copy:dist-to-docs', // ensure dist is present after cleaning
|
||||||
'eslint',
|
'eslint',
|
||||||
'jscs:docs',
|
'jscs:docs',
|
||||||
'exec:rollup-docs-iife',
|
'exec:rollup-docs-iife',
|
||||||
|
@ -579,6 +580,7 @@ module.exports = function (grunt) {
|
||||||
grunt.registerTask('docs-css', [
|
grunt.registerTask('docs-css', [
|
||||||
'scsslint:docs',
|
'scsslint:docs',
|
||||||
'clean:docs-dist-css',
|
'clean:docs-dist-css',
|
||||||
|
'copy:dist-to-docs', // ensure dist is present after cleaning
|
||||||
'sass:docs',
|
'sass:docs',
|
||||||
'postcss:docs',
|
'postcss:docs',
|
||||||
'postcss:examples',
|
'postcss:examples',
|
||||||
|
@ -611,9 +613,15 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
//------
|
//------
|
||||||
// Release and publish
|
// Release and publish
|
||||||
grunt.registerTask('docs-github', ['jekyll:github']);
|
grunt.registerTask('prep-release', [
|
||||||
grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']);
|
'dist', // all dist including docs
|
||||||
grunt.registerTask('publish', ['prep-release', 'buildcontrol:pages']);
|
'jekyll:github', // build site from scratch
|
||||||
|
'compress' // compress zip
|
||||||
|
]);
|
||||||
|
grunt.registerTask('publish', [
|
||||||
|
'prep-release', // build all including dist, docs, site
|
||||||
|
'buildcontrol:pages' // push site
|
||||||
|
]);
|
||||||
//------
|
//------
|
||||||
|
|
||||||
// Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json).
|
// Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user