mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2025-01-02 05:01:56 +00:00
Update dependencies and tooling
This commit is contained in:
parent
b75625a954
commit
1acf4845cb
6 changed files with 179 additions and 6827 deletions
|
@ -40,7 +40,6 @@ module.exports = function (eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// eleventyConfig.addPassthroughCopy("./node_modules/sifter/sifter.min.js")
|
|
||||||
// eleventyConfig.addPassthroughCopy("./src/js/")
|
// eleventyConfig.addPassthroughCopy("./src/js/")
|
||||||
eleventyConfig.addPassthroughCopy({ "./src/static/": "/"})
|
eleventyConfig.addPassthroughCopy({ "./src/static/": "/"})
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"stylelint-config-standard",
|
"stylelint-config-standard-scss",
|
||||||
"stylelint-config-rational-order"
|
"@stanzilla/stylelint-config-rational-order"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"stylelint-scss"
|
"stylelint-scss"
|
||||||
|
|
6988
package-lock.json
generated
6988
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -15,28 +15,27 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^1.0.0",
|
"@11ty/eleventy": "^1.0.0",
|
||||||
|
"@orchidjs/sifter": "^0.9.0",
|
||||||
"autoprefixer": "^10.4.2",
|
"autoprefixer": "^10.4.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cssnano": "^5.0.17",
|
"cssnano": "^5.0.17",
|
||||||
"eleventy-plugin-sharp": "0.0.3",
|
"eleventy-plugin-sharp": "0.0.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-cli": "^9.1.0",
|
"postcss-cli": "^9.1.0",
|
||||||
"sass": "^1.49.7",
|
"sass": "^1.49.7"
|
||||||
"sifter": "^0.5.4"
|
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 1%",
|
"> 1%",
|
||||||
"not dead"
|
"not dead"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@stanzilla/stylelint-config-rational-order": "^0.1.3",
|
||||||
"glob": "^7.2.0",
|
"glob": "^7.2.0",
|
||||||
"glob-promise": "^4.2.2",
|
"glob-promise": "^4.2.2",
|
||||||
"postcss": "^8.4.6",
|
"postcss": "^8.4.6",
|
||||||
"postcss-import": "^14.0.2",
|
"postcss-import": "^14.0.2",
|
||||||
"postcss-scss": "^4.0.3",
|
|
||||||
"stylelint": "^14.4.0",
|
"stylelint": "^14.4.0",
|
||||||
"stylelint-config-rational-order": "^0.1.2",
|
|
||||||
"stylelint-config-standard": "^25.0.0",
|
"stylelint-config-standard": "^25.0.0",
|
||||||
"stylelint-scss": "^4.1.0"
|
"stylelint-config-standard-scss": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ layout: layouts/base.njk
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
{% block js %}
|
{% block js %}
|
||||||
{% set jsSifter %}
|
{% set jsSifter %}
|
||||||
{% include "./../../../node_modules/sifter/sifter.min.js" %}
|
{% include "./../../../node_modules/@orchidjs/sifter/dist/umd/sifter.min.js" %}
|
||||||
{% endset %}
|
{% endset %}
|
||||||
{% set jsSearch %}
|
{% set jsSearch %}
|
||||||
{% include "search.js" %}
|
{% include "search.js" %}
|
||||||
|
|
|
@ -33,7 +33,7 @@ class PluginSearch {
|
||||||
}
|
}
|
||||||
|
|
||||||
filterResults(plugins) {
|
filterResults(plugins) {
|
||||||
const instance = new Sifter(plugins)
|
const instance = new sifter(plugins)
|
||||||
const results = []
|
const results = []
|
||||||
if (this.searchEntry) {
|
if (this.searchEntry) {
|
||||||
instance.search(this.searchEntry, this.sifterOptions).items.sort((a, b) => a.score - b.score).map(i => results.push(plugins[i.id]))
|
instance.search(this.searchEntry, this.sifterOptions).items.sort((a, b) => a.score - b.score).map(i => results.push(plugins[i.id]))
|
||||||
|
|
Loading…
Reference in a new issue