Update to yarn
This commit is contained in:
parent
1f40de78d1
commit
316b02fbe3
17
README.rst
17
README.rst
@ -7,19 +7,22 @@ http://inaugust.com/talks
|
||||
Building
|
||||
--------
|
||||
|
||||
First, you will need node and npm.
|
||||
::
|
||||
|
||||
apt-get install nodejs nodejs-legacy npm
|
||||
First, you will need `yarn`_.
|
||||
|
||||
The following commands will get you started:
|
||||
::
|
||||
# This will install miscellaneous runtime dependencies.
|
||||
npm install
|
||||
yarn install
|
||||
|
||||
# This will create a local webhost, serving all of your presentations.
|
||||
# It will autodetect changes and refresh any applicable pages.
|
||||
npm start
|
||||
yarn start
|
||||
|
||||
# This will build the content in the ``dist`` directory
|
||||
yarn run package
|
||||
|
||||
# This will construct your current presentations, and rsync them
|
||||
npm run release
|
||||
yarn run release
|
||||
|
||||
|
||||
.. _yarn: https://yarnpkg.com/en/docs/install
|
||||
|
26
gulpfile.js
26
gulpfile.js
@ -177,9 +177,11 @@
|
||||
]))
|
||||
.pipe(gulp.dest(dir.dist));
|
||||
|
||||
return streamqueue({'objectMode': true}, resolveCSS,
|
||||
streamqueue({'objectMode': true}, resolveCSS,
|
||||
resolveLESS, resolveReveal,
|
||||
resolveLibs, resolveFonts);
|
||||
cb()
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
@ -371,11 +373,11 @@
|
||||
/**
|
||||
* Package the entire site into the dist folder.
|
||||
*/
|
||||
gulp.task('package', ['package:html',
|
||||
gulp.task('package', gulp.series('package:html',
|
||||
'package:talks', 'package:talkindex',
|
||||
'package:posts', 'package:postindex',
|
||||
'package:libs', 'package:keybase',
|
||||
'package:images', 'package:css', 'package:js']);
|
||||
'package:images', 'package:css', 'package:js'));
|
||||
|
||||
gulp.task('rsync', function () {
|
||||
gulp.src(dir.dist)
|
||||
@ -397,7 +399,7 @@
|
||||
/**
|
||||
* Build the current release package and push it
|
||||
*/
|
||||
gulp.task('release', ['package', 'rsync', 'push']);
|
||||
gulp.task('release', gulp.series('package', 'rsync', 'push'));
|
||||
|
||||
/**
|
||||
* Start a local server and serve the application code. This is
|
||||
@ -406,14 +408,14 @@
|
||||
* @return {*} A gulp stream that performs this action.
|
||||
*/
|
||||
gulp.task('serve', function () {
|
||||
gulp.watch(paths.html, ['package:html']);
|
||||
gulp.watch(paths.images, ['package:images']);
|
||||
gulp.watch(paths.talks, ['package:talks']);
|
||||
gulp.watch(dir.src + '/talks/*.hbs', ['package:talks']);
|
||||
gulp.watch(paths.css, ['package:css']);
|
||||
gulp.watch(paths.js, ['package:js']);
|
||||
gulp.watch(paths.posts, ['package:posts']);
|
||||
gulp.watch(paths.index, ['package:posts']);
|
||||
gulp.watch(paths.html, gulp.series('package:html'));
|
||||
gulp.watch(paths.images, gulp.series('package:images'));
|
||||
gulp.watch(paths.talks, gulp.series('package:talks'));
|
||||
gulp.watch(dir.src + '/talks/*.hbs', gulp.series('package:talks'));
|
||||
gulp.watch(paths.css, gulp.series('package:css'));
|
||||
gulp.watch(paths.js, gulp.series('package:js'));
|
||||
gulp.watch(paths.posts, gulp.series('package:posts'));
|
||||
gulp.watch(paths.index, gulp.series('package:posts'));
|
||||
|
||||
return gulp.src(dir.dist)
|
||||
.pipe(webserver({
|
||||
|
@ -9,6 +9,7 @@
|
||||
"start": "gulp serve",
|
||||
"prestart": "gulp package",
|
||||
"new": "gulp new",
|
||||
"package": "gulp package",
|
||||
"release": "gulp release"
|
||||
},
|
||||
"author": {
|
||||
@ -21,18 +22,17 @@
|
||||
"devDependencies": {
|
||||
"bower": "^1.4.1",
|
||||
"cheerio": "^0.19.0",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-change": "^1.0.0",
|
||||
"gulp-compile-handlebars": "^0.5.0",
|
||||
"gulp-compile-handlebars": "0.6.1",
|
||||
"gulp-data": "^1.2.0",
|
||||
"gulp-filter": "^3.0.0",
|
||||
"gulp-git": "^1.2.4",
|
||||
"gulp-git": "^2.8.0",
|
||||
"gulp-ignore": "^1.2.1",
|
||||
"gulp-less": "^3.0.3",
|
||||
"gulp-prompt": "^0.1.2",
|
||||
"gulp-rename": "^1.2.2",
|
||||
"gulp-rsync": "^0.0.5",
|
||||
"gulp-util": "^3.0.6",
|
||||
"gulp-webserver": "^0.9.1",
|
||||
"main-bower-files": "^2.9.0",
|
||||
"rimraf": "^2.4.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user