docs scsslint and sass works

This commit is contained in:
Kevin Ross 2016-03-01 16:43:08 -06:00
parent ef01aa07c3
commit 35d9270ecb
4 changed files with 26 additions and 12 deletions

View File

@ -1,7 +1,7 @@
.btn-clipboard {
//color: #818a91;
border-radius: $border-radius;
text-transform: uppercase;
border-radius: $border-radius;
&:hover {
color: $gray; // #fff;

View File

@ -1,8 +1,8 @@
.bd-example[data-example-id*="drawer-"] {
min-height: 235px;
padding-top: 0;
padding-right: 0;
padding-left: 0;
min-height: 235px;
}
.bd-example[data-example-id*="drawer-1"] {

View File

@ -1,8 +1,8 @@
.mdb-toc-item-reference {
padding: .25rem .75rem;
margin-top: 1rem;
//margin-bottom: 1rem;
padding: .25rem .75rem;
}
.bd-search {

View File

@ -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
//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']
let rollupConfig = {
debug: true,
//debug: true,
options: {
external: [
'anchor-js',
@ -114,11 +114,25 @@ let docsPreset = Preset.baseline({
const docsConfig = {task: {prefix: 'docs:'}}
let docs = [
new EsLint(gulp, docsPreset, docsConfig),
new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
options: {
dest: 'docs.iife.js',
moduleName: 'docs'
}
}))
[
new ScssLint(gulp, docsPreset, extend(true, {}, docsConfig, {
source: {glob: ['**/*.scss', '!docs.scss']},
watch: {glob: ['**/*.scss', '!docs.scss']}
})),
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)
]
]