#901 banner is added to rollup

This commit is contained in:
Kevin Ross 2016-03-01 16:57:24 -06:00
parent 35d9270ecb
commit 10539f84ab
2 changed files with 27 additions and 8 deletions

View File

@ -9,6 +9,8 @@ import stringify from 'stringify-object'
import gulp from 'gulp'
import findup from 'findup-sync'
const node_modules = findup('node_modules')
import pkg from './package.json'
import moment from 'moment'
let preset = Preset.baseline({
@ -43,7 +45,13 @@ let rollupConfig = {
globals: {
'anchor-js': 'anchors',
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: {
options: {
@ -91,6 +99,22 @@ new TaskSeries(gulp, 'js', [eslint, rollups])
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({
javascripts: {
source: {options: {cwd: 'docs/assets/js/src'}},
@ -103,12 +127,6 @@ let docsPreset = Preset.baseline({
watch: {options: {cwd: 'docs/assets/scss'}},
dest: 'docs/dist'
}
/*,
images: {
source: {options: {cwd: 'docs/assets/img'}},
watch: {options: {cwd: 'docs/assets/img'}},
dest: 'docs/dist'
} */
})
const docsConfig = {task: {prefix: 'docs:'}}

View File

@ -43,7 +43,8 @@
"babel-preset-es2015": "^6.6.0",
"extend": "^3.0.0",
"gulp": "^3.9.1",
"gulp-pipeline": "^0.4"
"gulp-pipeline": "^0.4",
"moment": "^2.11.2"
},
"old-grunt-devDependencies": {
"autoprefixer": "^6.3.3",