mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-26 11:34:05 +03:00
working on prep-release task
This commit is contained in:
parent
e3a9605a95
commit
8f4ec7c96c
16
gulp-docs.js
16
gulp-docs.js
|
@ -36,11 +36,11 @@ export default function (gulp, options) {
|
|||
|
||||
let javascripts = [
|
||||
new RollupIife(gulp, preset, prefix, options.rollupConfig, {
|
||||
options: {
|
||||
dest: 'docs.iife.js',
|
||||
moduleName: 'docs'
|
||||
}
|
||||
}),
|
||||
options: {
|
||||
dest: 'docs.iife.js',
|
||||
moduleName: 'docs'
|
||||
}
|
||||
}),
|
||||
new Uglify(gulp, preset, prefix, {
|
||||
task: {name: 'vendor:uglify'},
|
||||
source: {options: {cwd: 'docs/assets/js/vendor'}},
|
||||
|
@ -59,10 +59,8 @@ export default function (gulp, options) {
|
|||
new TaskSeries(gulp, 'default', [
|
||||
new Clean(gulp, preset, prefix),
|
||||
linters,
|
||||
[
|
||||
sass,
|
||||
javascripts
|
||||
],
|
||||
sass,
|
||||
javascripts,
|
||||
new MinifyCss(gulp, preset, prefix)
|
||||
], prefix)
|
||||
new TaskSeries(gulp, 'lint', linters, prefix)
|
||||
|
|
|
@ -30,7 +30,6 @@ let namedExports = {}
|
|||
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
||||
|
||||
let rollupConfig = {
|
||||
//debug: true,
|
||||
options: {
|
||||
external: [
|
||||
'anchor-js',
|
||||
|
@ -53,7 +52,7 @@ let rollupConfig = {
|
|||
}
|
||||
}
|
||||
|
||||
let rollups = [
|
||||
let javascripts = [
|
||||
new RollupEs(gulp, preset, rollupConfig, {options: {dest: 'bootstrap-material-design.es.js'}}),
|
||||
new RollupUmd(gulp, preset, rollupConfig, {
|
||||
options: {
|
||||
|
@ -77,14 +76,12 @@ let linters = [scsslint, eslint]
|
|||
new TaskSeries(gulp, 'default', [
|
||||
new Clean(gulp, preset),
|
||||
linters,
|
||||
[
|
||||
sass,
|
||||
rollups
|
||||
],
|
||||
sass,
|
||||
javascripts,
|
||||
new MinifyCss(gulp, preset)
|
||||
])
|
||||
new TaskSeries(gulp, 'lint', linters)
|
||||
new TaskSeries(gulp, 'js', [eslint, rollups])
|
||||
new TaskSeries(gulp, 'js', [eslint, javascripts])
|
||||
new TaskSeries(gulp, 'css', [scsslint, sass])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user