node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

26
server/node_modules/lunr/perf/perf_helper.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var lunr = require('../lunr.js'),
Benchmark = require('benchmark'),
wordList = require('word-list'),
fs = require('fs')
var suite = function (name, fn) {
var s = new Benchmark.Suite(name, {
onStart: function (e) { console.log(e.currentTarget.name) },
onCycle: function (e) { console.log(" " + String(e.target)) },
onError: function (e) { console.error(e.target.error) }
})
fn.call(s, s)
s.run()
}
var words = fs.readFileSync(wordList, 'utf-8')
.split('\n')
.slice(0, 1000)
.sort()
global.lunr = lunr
global.Benchmark = Benchmark
global.suite = suite
global.words = words