mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 03:57:08 -04:00
Update deps.
This commit is contained in:
parent
2008d0755c
commit
9b88cdeb9b
7 changed files with 12 additions and 18 deletions
|
@ -12,7 +12,7 @@ insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
|
||||||
[{package.json,.travis.yml,.eslintrc,.babelrc}]
|
[{package.json,.travis.yml,.eslintrc}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
|
||||||
|
|
10
ghu.js
10
ghu.js
|
@ -122,17 +122,17 @@ ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
|
||||||
.then(newerThan(`${BUILD}/test/h5ai-styles.css`))
|
.then(newerThan(`${BUILD}/test/h5ai-styles.css`))
|
||||||
.then(write(`${BUILD}/test/h5ai-styles.css`, {overwrite: true})),
|
.then(write(`${BUILD}/test/h5ai-styles.css`, {overwrite: true})),
|
||||||
|
|
||||||
read(`${TEST}/tests.html`)
|
read(`${TEST}/index.html`)
|
||||||
.then(newerThan(`${BUILD}/test/tests.html`))
|
.then(newerThan(`${BUILD}/test/index.html`))
|
||||||
.then(write(`${BUILD}/test/tests.html`, {overwrite: true})),
|
.then(write(`${BUILD}/test/index.html`, {overwrite: true})),
|
||||||
|
|
||||||
read(`${TEST}: tests.js`)
|
read(`${TEST}: index.js`)
|
||||||
.then(webpack(webpackCfg([SRC, TEST]), {showStats: false}))
|
.then(webpack(webpackCfg([SRC, TEST]), {showStats: false}))
|
||||||
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
|
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
|
||||||
.then(includeit())
|
.then(includeit())
|
||||||
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
|
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
console.log(`browse to file://${BUILD}/test/tests.html to run the test suite`);
|
console.log(`browse to file://${BUILD}/test/index.html to run the test suite`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-loader": "6.2.4",
|
"babel-loader": "6.2.4",
|
||||||
"babel-preset-es2015": "6.9.0",
|
"babel-preset-es2015": "6.9.0",
|
||||||
"eslint": "3.0.1",
|
"eslint": "3.1.1",
|
||||||
"ghu": "0.7.0",
|
"ghu": "0.7.0",
|
||||||
"scar": "0.13.0"
|
"scar": "0.14.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
|
|
|
@ -27,6 +27,4 @@
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
||||||
|
|
||||||
// @include "vendor/kjua*.js"
|
// @include "vendor/*.js"
|
||||||
// @include "vendor/marked*.js"
|
|
||||||
// @include "vendor/prism*.js"
|
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
<link rel="stylesheet" href="h5ai-styles.css">
|
<link rel="stylesheet" href="h5ai-styles.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="tests.js"></script>
|
<script src="index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,10 +1,6 @@
|
||||||
const {test, assert} = require('scar');
|
const {test, assert} = require('scar');
|
||||||
|
|
||||||
test('window is global object', () => {
|
test('window is global object', () => {
|
||||||
assert.equal(typeof global, 'object');
|
assert.ok(global.window);
|
||||||
assert.equal(global, global.window);
|
assert.equal(global.window, global.window.window);
|
||||||
});
|
|
||||||
|
|
||||||
test('document is global object', () => {
|
|
||||||
assert.equal(typeof global.document, 'object');
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue