mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Maintenance.
This commit is contained in:
parent
c521ecd055
commit
427ca82722
9 changed files with 782 additions and 423 deletions
|
@ -1,3 +1,3 @@
|
||||||
build
|
/build/
|
||||||
node_modules
|
/node_modules/
|
||||||
**/vendor
|
/**/vendor/
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
es6: true
|
es6: true
|
||||||
node: true
|
node: true
|
||||||
|
|
||||||
parserOptions:
|
|
||||||
ecmaVersion: 6
|
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
array-bracket-spacing: [2, never]
|
array-bracket-spacing: [2, never]
|
||||||
arrow-parens: [2, as-needed]
|
arrow-parens: [2, as-needed]
|
||||||
|
|
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
build
|
/build/
|
||||||
local
|
/local/
|
||||||
node_modules
|
/node_modules/
|
||||||
npm-debug.log
|
/npm-debug.log
|
||||||
|
|
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,6 +1,17 @@
|
||||||
# Changelog
|
# 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*
|
## v0.29.1 - *2019-01-20*
|
||||||
|
|
||||||
* replace `babel-preset-es2015` with `babel-preset-env`
|
* replace `babel-preset-es2015` with `babel-preset-env`
|
||||||
|
|
4
ghu.js
4
ghu.js
|
@ -62,10 +62,6 @@ ghu.task('clean', 'delete build folder', () => {
|
||||||
return remove(BUILD);
|
return remove(BUILD);
|
||||||
});
|
});
|
||||||
|
|
||||||
ghu.task('lint', 'lint all JavaScript files with eslint', () => {
|
|
||||||
return run('eslint .', {stdio: 'inherit'});
|
|
||||||
});
|
|
||||||
|
|
||||||
ghu.task('build:scripts', runtime => {
|
ghu.task('build:scripts', runtime => {
|
||||||
return read(`${SRC}/_h5ai/public/js/scripts.js`)
|
return read(`${SRC}/_h5ai/public/js/scripts.js`)
|
||||||
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
|
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
|
||||||
|
|
1147
package-lock.json
generated
1147
package-lock.json
generated
File diff suppressed because it is too large
Load diff
21
package.json
21
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "h5ai",
|
"name": "h5ai",
|
||||||
"version": "0.29.1",
|
"version": "0.29.2",
|
||||||
"description": "Modern HTTP web server index.",
|
"description": "Modern HTTP web server index.",
|
||||||
"homepage": "https://larsjung.de/h5ai/",
|
"homepage": "https://larsjung.de/h5ai/",
|
||||||
"bugs": "https://github.com/lrsjng/h5ai/issues",
|
"bugs": "https://github.com/lrsjng/h5ai/issues",
|
||||||
|
@ -11,20 +11,23 @@
|
||||||
"url": "https://github.com/lrsjng/h5ai.git"
|
"url": "https://github.com/lrsjng/h5ai.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node ghu release"
|
"lint": "eslint .",
|
||||||
|
"test": "node test",
|
||||||
|
"build": "node ghu release",
|
||||||
|
"precommit": "npm run lint && npm run test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-loader": "6.2.4",
|
"babel-loader": "7.1.1",
|
||||||
"babel-preset-env": "1.7.0",
|
"babel-preset-env": "1.7.0",
|
||||||
"eslint": "5.14.1",
|
"eslint": "5.15.3",
|
||||||
"ghu": "0.12.0",
|
"ghu": "0.13.0",
|
||||||
"jsdom": "9.2.0",
|
"jsdom": "14.0.0",
|
||||||
"kjua": "0.1.2",
|
"kjua": "0.2.0",
|
||||||
"lolight": "0.6.0",
|
"lolight": "1.0.0",
|
||||||
"marked": "0.6.1",
|
"marked": "0.6.1",
|
||||||
"normalize.css": "8.0.1",
|
"normalize.css": "8.0.1",
|
||||||
"null-loader": "0.1.1",
|
"null-loader": "0.1.1",
|
||||||
"scar": "1.0.0"
|
"scar": "1.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
|
|
|
@ -49,7 +49,7 @@ const addListener = (el, type, fn) => el.addEventListener(type, fn);
|
||||||
const removeListener = (el, type, fn) => el.removeEventListener(type, fn);
|
const removeListener = (el, type, fn) => el.removeEventListener(type, fn);
|
||||||
|
|
||||||
const readyPromise = new Promise(resolve => {
|
const readyPromise = new Promise(resolve => {
|
||||||
if (/^(i|c|loade)/.test(doc.readyState)) {
|
if ((/^(i|c|loade)/).test(doc.readyState)) {
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
addListener(doc, 'DOMContentLoaded', () => resolve());
|
addListener(doc, 'DOMContentLoaded', () => resolve());
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
if (!global.window) {
|
if (!global.window) {
|
||||||
global.window = require('jsdom').jsdom().defaultView;
|
const JSDOM = require('jsdom').JSDOM;
|
||||||
|
global.window = new JSDOM('').window;
|
||||||
}
|
}
|
||||||
|
|
||||||
const {test} = require('scar');
|
const {test} = require('scar');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue