mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-07-01 02:13:17 +03:00
#901 banner is added to rollup
This commit is contained in:
parent
35d9270ecb
commit
10539f84ab
|
@ -9,6 +9,8 @@ import stringify from 'stringify-object'
|
||||||
import gulp from 'gulp'
|
import gulp from 'gulp'
|
||||||
import findup from 'findup-sync'
|
import findup from 'findup-sync'
|
||||||
const node_modules = findup('node_modules')
|
const node_modules = findup('node_modules')
|
||||||
|
import pkg from './package.json'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
|
|
||||||
let preset = Preset.baseline({
|
let preset = Preset.baseline({
|
||||||
|
@ -43,7 +45,13 @@ let rollupConfig = {
|
||||||
globals: {
|
globals: {
|
||||||
'anchor-js': 'anchors',
|
'anchor-js': 'anchors',
|
||||||
clipboard: 'Clipboard'
|
clipboard: 'Clipboard'
|
||||||
}
|
},
|
||||||
|
banner:
|
||||||
|
`/*!
|
||||||
|
* Bootstrap Material Design v${pkg.version} (${pkg.homepage})
|
||||||
|
* Copyright 2014-${moment().format("YYYY")} ${pkg.author}
|
||||||
|
* Licensed under MIT (https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE)
|
||||||
|
*/`
|
||||||
},
|
},
|
||||||
commonjs: {
|
commonjs: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -91,6 +99,22 @@ new TaskSeries(gulp, 'js', [eslint, rollups])
|
||||||
new TaskSeries(gulp, 'css', [scsslint, sass])
|
new TaskSeries(gulp, 'css', [scsslint, sass])
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DOCS
|
||||||
|
*/
|
||||||
|
|
||||||
|
const referenceDocNotice =
|
||||||
|
`$1\n
|
||||||
|
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n
|
||||||
|
{% callout info %}\n**Bootstrap Reference Documentation**
|
||||||
|
This is a part of the reference documentation from <a href="http://getbootstrap.com">Bootstrap</a>.
|
||||||
|
It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
|
||||||
|
See the <a href="/material-design/buttons">Material Design</a> section for more elements and customization options.
|
||||||
|
{% endcallout %}
|
||||||
|
\n\n$2`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let docsPreset = Preset.baseline({
|
let docsPreset = Preset.baseline({
|
||||||
javascripts: {
|
javascripts: {
|
||||||
source: {options: {cwd: 'docs/assets/js/src'}},
|
source: {options: {cwd: 'docs/assets/js/src'}},
|
||||||
|
@ -103,12 +127,6 @@ let docsPreset = Preset.baseline({
|
||||||
watch: {options: {cwd: 'docs/assets/scss'}},
|
watch: {options: {cwd: 'docs/assets/scss'}},
|
||||||
dest: 'docs/dist'
|
dest: 'docs/dist'
|
||||||
}
|
}
|
||||||
/*,
|
|
||||||
images: {
|
|
||||||
source: {options: {cwd: 'docs/assets/img'}},
|
|
||||||
watch: {options: {cwd: 'docs/assets/img'}},
|
|
||||||
dest: 'docs/dist'
|
|
||||||
} */
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const docsConfig = {task: {prefix: 'docs:'}}
|
const docsConfig = {task: {prefix: 'docs:'}}
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
"babel-preset-es2015": "^6.6.0",
|
"babel-preset-es2015": "^6.6.0",
|
||||||
"extend": "^3.0.0",
|
"extend": "^3.0.0",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-pipeline": "^0.4"
|
"gulp-pipeline": "^0.4",
|
||||||
|
"moment": "^2.11.2"
|
||||||
},
|
},
|
||||||
"old-grunt-devDependencies": {
|
"old-grunt-devDependencies": {
|
||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.3",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user