- v4 docs:default:watch breaking with cwd error
- `build` task renamed to `all`
- turned off some build debug
This commit is contained in:
Kevin Ross 2016-03-28 17:41:18 -05:00
parent b0b4c19a70
commit 1e9582098b
4 changed files with 12 additions and 15 deletions

View File

@ -27,9 +27,10 @@ Our gulpfile includes the many tasks you can view with `gulp --tasks`, here are
| Task | Description | | Task | Description |
| --- | --- | | --- | --- |
| `gulp publish` | Run everything, publish dist, npm, and gh-pages | | `gulp` | runs the `default` task that builds all core files to the `dist` directory |
| `gulp` | `gulp` runs the `default` task that builds all core files to the `dist` directory |
| `gulp docs:default` | creates all the `docs/dist` files needed to support the documentation | | `gulp docs:default` | creates all the `docs/dist` files needed to support the documentation |
| `gulp all` | runs the `default` and `docs:default` tasks |
| `gulp publish` | Run all, publish dist, npm, and gh-pages |
## Local documentation ## Local documentation

View File

@ -90,14 +90,11 @@ export default function (gulp, corePreset, options) {
prefix) prefix)
const defaultRecipes = new Aggregate(gulp, 'default', const defaultRecipes = new Aggregate(gulp, 'default',
series(gulp, parallel(gulp,
new Clean(gulp, preset, prefix), css,
parallel(gulp, js
css,
js
)
), ),
prefix) prefix, {debug: false})
// docs copy // docs copy
new Aggregate(gulp, 'copy:bs-docs', new Aggregate(gulp, 'copy:bs-docs',

View File

@ -125,8 +125,8 @@ const defaultRecipes = new Aggregate(gulp, 'default', series(gulp,
let docsDefaultRecipes = gulpDocs(gulp, preset, {rollupConfig: rollupConfig}) let docsDefaultRecipes = gulpDocs(gulp, preset, {rollupConfig: rollupConfig})
// build - both core and docs // all - both core and docs
const build = new Aggregate(gulp, 'build', const all = new Aggregate(gulp, 'all',
parallel(gulp, parallel(gulp,
defaultRecipes, defaultRecipes,
docsDefaultRecipes docsDefaultRecipes
@ -139,12 +139,12 @@ new Aggregate(gulp, 'publish',
series(gulp, series(gulp,
new Prepublish(gulp, preset), // asserts committed new Prepublish(gulp, preset), // asserts committed
build, all,
// ^^^docs:default cleans docs/dist, so we need to re-copy dist to docs in this scenario // ^^^docs:default cleans docs/dist, so we need to re-copy dist to docs in this scenario
parallel(gulp, copyCssToDocs, copyJsToDocs), parallel(gulp, copyCssToDocs, copyJsToDocs),
new Jekyll(gulp, preset, {debug: true, options: {raw: 'baseurl: "/bootstrap-material-design"'}}), new Jekyll(gulp, preset, {options: {raw: 'baseurl: "/bootstrap-material-design"'}}),
new PublishBuild(gulp, preset, { new PublishBuild(gulp, preset, {
npm: { npm: {
@ -154,7 +154,6 @@ new Aggregate(gulp, 'publish',
}), }),
new PublishGhPages(gulp, preset, { new PublishGhPages(gulp, preset, {
debug: true,
options: { options: {
remote: { remote: {
repo: 'git@github.com:rosskevin/bootstrap-material-design.git' // FIXME: temporary, remove this option when we are deploying to our home repo repo: 'git@github.com:rosskevin/bootstrap-material-design.git' // FIXME: temporary, remove this option when we are deploying to our home repo

View File

@ -44,7 +44,7 @@
"babel-preset-es2015": "^6.6.0", "babel-preset-es2015": "^6.6.0",
"extend": "^3.0.0", "extend": "^3.0.0",
"gulp": "github:gulpjs/gulp#4.0", "gulp": "github:gulpjs/gulp#4.0",
"gulp-pipeline": "^4.0.21", "gulp-pipeline": "^4.0.22",
"moment": "^2.12.0" "moment": "^2.12.0"
}, },
"engines": { "engines": {