Maintenance.

This commit is contained in:
Lars Jung 2019-03-22 02:33:58 +01:00
parent c521ecd055
commit 427ca82722
9 changed files with 782 additions and 423 deletions

View File

@ -1,3 +1,3 @@
build
node_modules
**/vendor
/build/
/node_modules/
/**/vendor/

View File

@ -5,9 +5,6 @@
es6: true
node: true
parserOptions:
ecmaVersion: 6
rules:
array-bracket-spacing: [2, never]
arrow-parens: [2, as-needed]

8
.gitignore vendored
View File

@ -1,4 +1,4 @@
build
local
node_modules
npm-debug.log
/build/
/local/
/node_modules/
/npm-debug.log

View File

@ -1,6 +1,17 @@
# Changelog
## v0.29.2 - *2019-03-22*
* update `babel-loader` to 7.1.1
* update `eslint` to 5.15.3
* update `ghu` to 0.13.0
* update `jsdom` to 14.0.0
* update `kjua` to 0.2.0
* update `lolight` to 1.0.0
* update `scar` to 1.2.0
## v0.29.1 - *2019-01-20*
* replace `babel-preset-es2015` with `babel-preset-env`

4
ghu.js
View File

@ -62,10 +62,6 @@ ghu.task('clean', 'delete build folder', () => {
return remove(BUILD);
});
ghu.task('lint', 'lint all JavaScript files with eslint', () => {
return run('eslint .', {stdio: 'inherit'});
});
ghu.task('build:scripts', runtime => {
return read(`${SRC}/_h5ai/public/js/scripts.js`)
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))

1147
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "h5ai",
"version": "0.29.1",
"version": "0.29.2",
"description": "Modern HTTP web server index.",
"homepage": "https://larsjung.de/h5ai/",
"bugs": "https://github.com/lrsjng/h5ai/issues",
@ -11,20 +11,23 @@
"url": "https://github.com/lrsjng/h5ai.git"
},
"scripts": {
"build": "node ghu release"
"lint": "eslint .",
"test": "node test",
"build": "node ghu release",
"precommit": "npm run lint && npm run test"
},
"devDependencies": {
"babel-loader": "6.2.4",
"babel-loader": "7.1.1",
"babel-preset-env": "1.7.0",
"eslint": "5.14.1",
"ghu": "0.12.0",
"jsdom": "9.2.0",
"kjua": "0.1.2",
"lolight": "0.6.0",
"eslint": "5.15.3",
"ghu": "0.13.0",
"jsdom": "14.0.0",
"kjua": "0.2.0",
"lolight": "1.0.0",
"marked": "0.6.1",
"normalize.css": "8.0.1",
"null-loader": "0.1.1",
"scar": "1.0.0"
"scar": "1.2.0"
},
"engines": {
"node": ">=10.0.0"

View File

@ -49,7 +49,7 @@ const addListener = (el, type, fn) => el.addEventListener(type, fn);
const removeListener = (el, type, fn) => el.removeEventListener(type, fn);
const readyPromise = new Promise(resolve => {
if (/^(i|c|loade)/.test(doc.readyState)) {
if ((/^(i|c|loade)/).test(doc.readyState)) {
resolve();
} else {
addListener(doc, 'DOMContentLoaded', () => resolve());

View File

@ -1,5 +1,6 @@
if (!global.window) {
global.window = require('jsdom').jsdom().defaultView;
const JSDOM = require('jsdom').JSDOM;
global.window = new JSDOM('').window;
}
const {test} = require('scar');