Just commit all of family home before editing 'cause i just accidentally overwrote gaeastohuaosneuh
This commit is contained in:
parent
18bba535b4
commit
84de7930cb
64 changed files with 15325 additions and 0 deletions
48
web/themes/custom/geofresco/gulp-tasks/styleguide.js
Normal file
48
web/themes/custom/geofresco/gulp-tasks/styleguide.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*eslint strict: ["error", "global"]*/
|
||||
'use strict';
|
||||
|
||||
//=======================================================
|
||||
// Include kss
|
||||
//=======================================================
|
||||
var kss = require('kss');
|
||||
|
||||
//=======================================================
|
||||
// Include Our Plugins
|
||||
//=======================================================
|
||||
var path = require('path');
|
||||
|
||||
// Export our tasks.
|
||||
module.exports = {
|
||||
|
||||
// Generate the style guide using the top level
|
||||
// directory name passed in as a parameter.
|
||||
generate: function(dirname) {
|
||||
|
||||
return kss({
|
||||
source: [
|
||||
dirname + '/src/global',
|
||||
dirname + '/src/components',
|
||||
dirname + '/src/layout'
|
||||
],
|
||||
destination: dirname + '/dist/style-guide',
|
||||
builder: dirname + '/src/style-guide/builder',
|
||||
namespace: 'octavia:' + dirname + '/src/components/',
|
||||
'extend-drupal8': true,
|
||||
// The css and js paths are URLs, like '/misc/jquery.js'.
|
||||
// The following paths are relative to the generated style guide.
|
||||
// The all.css file is for the style guide ONLY so you don't have to
|
||||
// keep adding the file here everytime you add a new component.
|
||||
// Drupal libraries should be leveraged for adding CSS per component.
|
||||
css: [
|
||||
path.relative(
|
||||
dirname + '/style-guide/',
|
||||
dirname + '/all/all.css'
|
||||
)
|
||||
],
|
||||
js: [
|
||||
],
|
||||
homepage: 'style-guide.md',
|
||||
title: 'Style Guide'
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue