mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-13 10:10:36 +03:00
docs scsslint and sass works
This commit is contained in:
parent
ef01aa07c3
commit
35d9270ecb
|
@ -1,7 +1,7 @@
|
||||||
.btn-clipboard {
|
.btn-clipboard {
|
||||||
//color: #818a91;
|
//color: #818a91;
|
||||||
border-radius: $border-radius;
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
border-radius: $border-radius;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $gray; // #fff;
|
color: $gray; // #fff;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
.bd-example[data-example-id*="drawer-"] {
|
.bd-example[data-example-id*="drawer-"] {
|
||||||
|
min-height: 235px;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
min-height: 235px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-example[data-example-id*="drawer-1"] {
|
.bd-example[data-example-id*="drawer-1"] {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
.mdb-toc-item-reference {
|
.mdb-toc-item-reference {
|
||||||
|
padding: .25rem .75rem;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
//margin-bottom: 1rem;
|
//margin-bottom: 1rem;
|
||||||
padding: .25rem .75rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-search {
|
.bd-search {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries} from 'gulp-pipeline/src/index'
|
import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
|
||||||
|
|
||||||
// debug the project source - remove for repo
|
// debug the project source - remove for repo
|
||||||
//import {Clean, CleanDigest, Images, MinifyCss, Sass, RollupIife, ScssLint, EsLint, Rev, TaskSeries} from 'gulp-pipeline'
|
//import {Clean, CleanDigest, Images, MinifyCss, Sass, RollupIife, ScssLint, EsLint, Rev, TaskSeries} from 'gulp-pipeline'
|
||||||
|
@ -34,7 +34,7 @@ let namedExports = {}
|
||||||
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
||||||
|
|
||||||
let rollupConfig = {
|
let rollupConfig = {
|
||||||
debug: true,
|
//debug: true,
|
||||||
options: {
|
options: {
|
||||||
external: [
|
external: [
|
||||||
'anchor-js',
|
'anchor-js',
|
||||||
|
@ -114,11 +114,25 @@ let docsPreset = Preset.baseline({
|
||||||
const docsConfig = {task: {prefix: 'docs:'}}
|
const docsConfig = {task: {prefix: 'docs:'}}
|
||||||
|
|
||||||
let docs = [
|
let docs = [
|
||||||
new EsLint(gulp, docsPreset, docsConfig),
|
[
|
||||||
new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
|
new ScssLint(gulp, docsPreset, extend(true, {}, docsConfig, {
|
||||||
options: {
|
source: {glob: ['**/*.scss', '!docs.scss']},
|
||||||
dest: 'docs.iife.js',
|
watch: {glob: ['**/*.scss', '!docs.scss']}
|
||||||
moduleName: 'docs'
|
})),
|
||||||
}
|
new EsLint(gulp, docsPreset, docsConfig)
|
||||||
}))
|
],
|
||||||
|
[
|
||||||
|
new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
|
||||||
|
options: {
|
||||||
|
dest: 'docs.iife.js',
|
||||||
|
moduleName: 'docs'
|
||||||
|
}
|
||||||
|
})),
|
||||||
|
new Uglify(gulp, docsPreset, extend(true, {}, docsConfig, {
|
||||||
|
task: {name: 'vendor:uglify'},
|
||||||
|
source: {options: {cwd: 'docs/assets/js/vendor'}},
|
||||||
|
options: {dest: 'docs-vendor.min.js'}
|
||||||
|
})),
|
||||||
|
new Sass(gulp, docsPreset, docsConfig)
|
||||||
|
]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user