mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2024-12-30 11:51:57 +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/static/": "/"})
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"extends": [
|
||||
"stylelint-config-standard",
|
||||
"stylelint-config-rational-order"
|
||||
"stylelint-config-standard-scss",
|
||||
"@stanzilla/stylelint-config-rational-order"
|
||||
],
|
||||
"plugins": [
|
||||
"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": {
|
||||
"@11ty/eleventy": "^1.0.0",
|
||||
"@orchidjs/sifter": "^0.9.0",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"cssnano": "^5.0.17",
|
||||
"eleventy-plugin-sharp": "0.0.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-cli": "^9.1.0",
|
||||
"sass": "^1.49.7",
|
||||
"sifter": "^0.5.4"
|
||||
"sass": "^1.49.7"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"not dead"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@stanzilla/stylelint-config-rational-order": "^0.1.3",
|
||||
"glob": "^7.2.0",
|
||||
"glob-promise": "^4.2.2",
|
||||
"postcss": "^8.4.6",
|
||||
"postcss-import": "^14.0.2",
|
||||
"postcss-scss": "^4.0.3",
|
||||
"stylelint": "^14.4.0",
|
||||
"stylelint-config-rational-order": "^0.1.2",
|
||||
"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 }}
|
||||
{% block js %}
|
||||
{% set jsSifter %}
|
||||
{% include "./../../../node_modules/sifter/sifter.min.js" %}
|
||||
{% include "./../../../node_modules/@orchidjs/sifter/dist/umd/sifter.min.js" %}
|
||||
{% endset %}
|
||||
{% set jsSearch %}
|
||||
{% include "search.js" %}
|
||||
|
|
|
@ -33,7 +33,7 @@ class PluginSearch {
|
|||
}
|
||||
|
||||
filterResults(plugins) {
|
||||
const instance = new Sifter(plugins)
|
||||
const instance = new sifter(plugins)
|
||||
const results = []
|
||||
if (this.searchEntry) {
|
||||
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