Updated babel-loader, flow-bin, lunr and gulp-changed

This commit is contained in:
squidfunk 2017-04-22 13:18:08 +02:00 committed by Martin Donath
parent 3ac96ee1d2
commit a5b06b9839
6 changed files with 44 additions and 33 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -150,7 +150,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application-ad1183cb07.js"></script>
<script src="{{ base_url }}/assets/javascripts/application-88de899dd7.js"></script>
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
{% for path in extra_javascript %}
<script src="{{ path }}"></script>

View File

@ -41,7 +41,7 @@
"autoprefixer": "^6.7.3",
"babel-core": "^6.23.0",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.3.1",
"babel-loader": "^7.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-react-jsx": "^6.8.0",
"babel-polyfill": "^6.20.0",
@ -56,11 +56,11 @@
"ecstatic": "^2.1.0",
"eslint": "^3.16.0",
"fastclick": "^1.0.6",
"flow-bin": "^0.42.0",
"flow-bin": "^0.44.0",
"flow-jsdoc": "^0.3.0",
"git-hooks": "^1.1.7",
"gulp": "^3.9.1",
"gulp-changed": "^2.0.0",
"gulp-changed": "^3.0.0",
"gulp-concat": "^2.6.1",
"gulp-cssnano": "^2.1.2",
"gulp-htmlmin": "^3.0.0",
@ -80,7 +80,7 @@
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.8",
"js-cookie": "^2.1.3",
"lunr": "^1.0.0",
"lunr": "^2.0.2",
"material-design-color": "2.3.2",
"material-shadows": "3.0.1",
"modularscale-sass": "3.0.2",

View File

@ -103,13 +103,6 @@ export default class Result {
/* Initialize index */
const init = data => {
this.index_ = lunr(function() {
/* eslint-disable no-invalid-this, lines-around-comment */
this.field("title", { boost: 10 })
this.field("text")
this.ref("location")
/* eslint-enable no-invalid-this, lines-around-comment */
})
/* Preprocess and index sections and documents */
this.docs_ = data.reduce((docs, doc) => {
@ -135,12 +128,22 @@ export default class Result {
(_, char) => char)
/* Index sections and documents, but skip top-level headline */
if (!doc.parent || doc.parent.title !== doc.title) {
this.index_.add(doc)
if (!doc.parent || doc.parent.title !== doc.title)
docs.set(doc.location, doc)
}
return docs
}, new Map)
/* eslint-disable no-invalid-this, lines-around-comment */
const docs = this.docs_
this.index_ = lunr(function() {
this.field("title", { boost: 10 })
this.field("text")
this.ref("location")
/* Index documents */
docs.forEach(doc => this.add(doc))
})
/* eslint-enable no-invalid-this, lines-around-comment */
}
/* Initialize index after short timeout to account for transition */

View File

@ -449,14 +449,13 @@ babel-helpers@^6.23.0:
babel-runtime "^6.22.0"
babel-template "^6.23.0"
babel-loader@^6.3.1:
version "6.3.2"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.3.2.tgz#18de4566385578c1b4f8ffe6cbc668f5e2a5ef03"
babel-loader@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.0.0.tgz#2e43a66bee1fff4470533d0402c8a4532fafbaf7"
dependencies:
find-cache-dir "^0.1.1"
loader-utils "^0.2.16"
loader-utils "^1.0.2"
mkdirp "^0.5.1"
object-assign "^4.0.1"
babel-messages@^6.23.0:
version "6.23.0"
@ -2263,9 +2262,9 @@ flatten@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
flow-bin@^0.42.0:
version "0.42.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.42.0.tgz#05dd754b6b052de7b150f9210e2160746961e3cf"
flow-bin@^0.44.0:
version "0.44.2"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.44.2.tgz#3893c7db5de043ed82674f327a04b1309db208b5"
flow-jsdoc@^0.3.0:
version "0.3.0"
@ -2707,11 +2706,12 @@ grunt-legacy-log@~0.1.1:
lodash "~2.4.1"
underscore.string "~2.3.3"
gulp-changed@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/gulp-changed/-/gulp-changed-2.0.0.tgz#7396d95aeab35c6bcbcb75169fd7f24a271a013b"
gulp-changed@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/gulp-changed/-/gulp-changed-3.0.0.tgz#c6ca21f9c7c7211688dea46c5f3be9d52775acdc"
dependencies:
gulp-util "^3.0.0"
pify "^2.3.0"
through2 "^2.0.0"
gulp-concat@^2.6.1:
@ -3653,6 +3653,14 @@ loader-utils@^0.2.11, loader-utils@^0.2.16:
json5 "^0.5.0"
object-assign "^4.0.1"
loader-utils@^1.0.2:
version "1.1.0"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd"
dependencies:
big.js "^3.1.3"
emojis-list "^2.0.0"
json5 "^0.5.0"
lodash._basecopy@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36"
@ -3969,9 +3977,9 @@ lru-cache@^4.0.1:
pseudomap "^1.0.1"
yallist "^2.0.0"
lunr@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lunr/-/lunr-1.0.0.tgz#5c9276c92c91ac35a9241b5018d46723d92e2f5f"
lunr@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.0.2.tgz#b3356bf365766da0dbbb1b00ba27b8faf5558ded"
macaddress@^0.2.8:
version "0.2.8"
@ -4690,7 +4698,7 @@ pend@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
pify@^2.0.0:
pify@^2.0.0, pify@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"