1.0.0-alpha.4 • Published 5 months ago
@hidoo/gulp-task-build-styleguide-kss v1.0.0-alpha.4
@hidoo/gulp-task-build-styleguide-kss
Task that build styleguide by kss for gulp.
Installation
$ npm install --save-dev gulp@next @hidoo/gulp-task-build-styleguide-kssUsage
import { task } from 'gulp';
import buildStyleguide from '@hidoo/gulp-task-build-styleguide-kss';
task(
'styleguide',
buildStyleguide({
src: '/path/to/css',
dest: '/path/to/dest'
})
);API
kssBuildTask
return build styleguide task by kss
Parameters
optionsObject option (optional, default{})options.nameString task name (use as displayName) (optional, default'build:styleguide')options.srcString source pathoptions.destString destination pathoptions.cssArray[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) css paths that load to styleguide (optional, default[])options.jsArray[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) javascript paths that load to styleguide (optional, default[])options.homepageString markdown path that load to styleguide. it must be located in the same directory with options.src (optional, defaultpath.resolve(options.source,'README.md'))options.placeholderString modifier string (optional, default'{{modifier_class}}')options.nav-depthNumber navigation depth to display (optional, default2)options.maskString masking of file that includes kss comments (optional, default'*.css')options.builderString builder path. see: default builder (optional, defaultpath.resolve(__dirname,'../builder'))options.verboseBoolean out log or not (optional, defaultfalse)
Examples
import { task } from 'gulp';
import buildStyleguide from '@hidoo/gulp-task-build-styleguide-kss';
task(
'styleguide',
buildStyleguide({
name: 'styleguide:main',
src: '/path/to/css',
dest: '/path/to/dest',
css: ['./path/from/styleguide/to/css/extra.css'],
js: ['./path/from/styleguide/to/js/extra.js'],
homepage: '/path/to/README.md',
placeholder: '{{modifier_class}}',
'nav-depth': 2,
mask: '*.css',
builder: '/path/to/builder',
verbose: true
})
);Returns Function[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
Test
$ pnpm testLicense
MIT
1.0.0-alpha.4
5 months ago
1.0.0-alpha.3
6 months ago
1.0.0-alpha.2
7 months ago
1.0.0-alpha.1
2 years ago
1.0.0-alpha.0
2 years ago
0.19.0
4 years ago
0.18.0
5 years ago
0.17.0
5 years ago
0.16.0
5 years ago
0.15.0
6 years ago
0.14.1
6 years ago
0.14.0
6 years ago
0.13.0
6 years ago
0.12.0
6 years ago
0.11.0
6 years ago
0.10.0
6 years ago
0.9.0
6 years ago
0.8.4
7 years ago
0.8.3
7 years ago
0.8.2
7 years ago
0.8.1
7 years ago
0.8.0
7 years ago
0.7.0
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.0
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago