Update to yarn

This commit is contained in:
Monty Taylor 2018-08-23 22:25:49 -05:00
parent 1f40de78d1
commit 316b02fbe3
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
4 changed files with 4278 additions and 23 deletions

View File

@ -7,19 +7,22 @@ http://inaugust.com/talks
Building Building
-------- --------
First, you will need node and npm. First, you will need `yarn`_.
::
apt-get install nodejs nodejs-legacy npm
The following commands will get you started: The following commands will get you started:
:: ::
# This will install miscellaneous runtime dependencies. # This will install miscellaneous runtime dependencies.
npm install yarn install
# This will create a local webhost, serving all of your presentations. # This will create a local webhost, serving all of your presentations.
# It will autodetect changes and refresh any applicable pages. # 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 # This will construct your current presentations, and rsync them
npm run release yarn run release
.. _yarn: https://yarnpkg.com/en/docs/install

View File

@ -177,9 +177,11 @@
])) ]))
.pipe(gulp.dest(dir.dist)); .pipe(gulp.dest(dir.dist));
return streamqueue({'objectMode': true}, resolveCSS, streamqueue({'objectMode': true}, resolveCSS,
resolveLESS, resolveReveal, resolveLESS, resolveReveal,
resolveLibs, resolveFonts); resolveLibs, resolveFonts);
cb()
}); });
/** /**
@ -371,11 +373,11 @@
/** /**
* Package the entire site into the dist folder. * 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:talks', 'package:talkindex',
'package:posts', 'package:postindex', 'package:posts', 'package:postindex',
'package:libs', 'package:keybase', 'package:libs', 'package:keybase',
'package:images', 'package:css', 'package:js']); 'package:images', 'package:css', 'package:js'));
gulp.task('rsync', function () { gulp.task('rsync', function () {
gulp.src(dir.dist) gulp.src(dir.dist)
@ -397,7 +399,7 @@
/** /**
* Build the current release package and push it * 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 * Start a local server and serve the application code. This is
@ -406,14 +408,14 @@
* @return {*} A gulp stream that performs this action. * @return {*} A gulp stream that performs this action.
*/ */
gulp.task('serve', function () { gulp.task('serve', function () {
gulp.watch(paths.html, ['package:html']); gulp.watch(paths.html, gulp.series('package:html'));
gulp.watch(paths.images, ['package:images']); gulp.watch(paths.images, gulp.series('package:images'));
gulp.watch(paths.talks, ['package:talks']); gulp.watch(paths.talks, gulp.series('package:talks'));
gulp.watch(dir.src + '/talks/*.hbs', ['package:talks']); gulp.watch(dir.src + '/talks/*.hbs', gulp.series('package:talks'));
gulp.watch(paths.css, ['package:css']); gulp.watch(paths.css, gulp.series('package:css'));
gulp.watch(paths.js, ['package:js']); gulp.watch(paths.js, gulp.series('package:js'));
gulp.watch(paths.posts, ['package:posts']); gulp.watch(paths.posts, gulp.series('package:posts'));
gulp.watch(paths.index, ['package:posts']); gulp.watch(paths.index, gulp.series('package:posts'));
return gulp.src(dir.dist) return gulp.src(dir.dist)
.pipe(webserver({ .pipe(webserver({

View File

@ -9,6 +9,7 @@
"start": "gulp serve", "start": "gulp serve",
"prestart": "gulp package", "prestart": "gulp package",
"new": "gulp new", "new": "gulp new",
"package": "gulp package",
"release": "gulp release" "release": "gulp release"
}, },
"author": { "author": {
@ -21,18 +22,17 @@
"devDependencies": { "devDependencies": {
"bower": "^1.4.1", "bower": "^1.4.1",
"cheerio": "^0.19.0", "cheerio": "^0.19.0",
"gulp": "^3.9.0", "gulp": "^4.0.0",
"gulp-change": "^1.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-data": "^1.2.0",
"gulp-filter": "^3.0.0", "gulp-filter": "^3.0.0",
"gulp-git": "^1.2.4", "gulp-git": "^2.8.0",
"gulp-ignore": "^1.2.1", "gulp-ignore": "^1.2.1",
"gulp-less": "^3.0.3", "gulp-less": "^3.0.3",
"gulp-prompt": "^0.1.2", "gulp-prompt": "^0.1.2",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-rsync": "^0.0.5", "gulp-rsync": "^0.0.5",
"gulp-util": "^3.0.6",
"gulp-webserver": "^0.9.1", "gulp-webserver": "^0.9.1",
"main-bower-files": "^2.9.0", "main-bower-files": "^2.9.0",
"rimraf": "^2.4.2", "rimraf": "^2.4.2",

4250
yarn.lock Normal file

File diff suppressed because it is too large Load Diff