mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-26 11:34:05 +03:00
integrated the publish
This commit is contained in:
parent
2dafee14dc
commit
e3a9605a95
|
@ -1,8 +1,4 @@
|
|||
import {Preset, Clean, Copy, Jekyll, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
|
||||
//import gulp from 'gulp'
|
||||
//import findup from 'findup-sync'
|
||||
//import pkg from './package.json'
|
||||
//import moment from 'moment'
|
||||
|
||||
const referenceDocNotice =
|
||||
`$1\n
|
||||
|
@ -59,10 +55,9 @@ export default function (gulp, options) {
|
|||
})
|
||||
let linters = [scsslint, eslint]
|
||||
let sass = new Sass(gulp, preset, prefix)
|
||||
let jekyll = new Jekyll(gulp, preset, prefix, {options: {raw: 'baseurl: "/bootstrap-material-design"'}})
|
||||
|
||||
new TaskSeries(gulp, 'default', [
|
||||
new Clean(gulp, preset),
|
||||
new Clean(gulp, preset, prefix),
|
||||
linters,
|
||||
[
|
||||
sass,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Preset, Clean, Copy, Jekyll, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
|
||||
import {Preset, Clean, Copy, Jekyll, MinifyCss, Prepublish, PublishBuild, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
|
||||
import gulp from 'gulp'
|
||||
import findup from 'findup-sync'
|
||||
import pkg from './package.json'
|
||||
|
@ -92,13 +92,28 @@ gulpDocs(gulp, {rollupConfig: rollupConfig})
|
|||
|
||||
|
||||
//
|
||||
//new Copy(gulp, preset, {
|
||||
// task: {name: 'copy:dist-to-docs'},
|
||||
// source: {
|
||||
// options: {cwd: 'dist'},
|
||||
// glob: ['js/*.iife*', 'css/*.*']
|
||||
// },
|
||||
// dest: 'docs/dist/'
|
||||
//})
|
||||
//
|
||||
//new TaskSeries(gulp, 'prep-release', [])
|
||||
let prepRelease = new TaskSeries(gulp, 'prep-release', [
|
||||
new Prepublish(gulp, preset),
|
||||
'default',
|
||||
'docs:default',
|
||||
new Copy(gulp, preset, {
|
||||
task: {name: 'copy:dist-to-docs'},
|
||||
source: {
|
||||
options: {cwd: 'dist'},
|
||||
glob: ['js/*.iife*', 'css/*.*']
|
||||
},
|
||||
dest: 'docs/dist/'
|
||||
}),
|
||||
new Jekyll(gulp, preset, {options: {raw: 'baseurl: "/bootstrap-material-design"'}})
|
||||
])
|
||||
|
||||
|
||||
new TaskSeries(gulp, 'publish', [
|
||||
prepRelease,
|
||||
new PublishBuild(gulp, preset, {
|
||||
npm: {
|
||||
bump: false,
|
||||
publish: false
|
||||
}
|
||||
})
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue
Block a user