diff --git a/gulpfile.babel.js b/gulpfile.babel.js index cde628a8..7e77479c 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -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 Bootstrap. +It is included here to demonstrate rendering with Material Design for Bootstrap default styling. +See the Material Design 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:'}} diff --git a/package.json b/package.json index 061c06a6..ae7161bb 100644 --- a/package.json +++ b/package.json @@ -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",