Update deps.

This commit is contained in:
Lars Jung 2016-07-21 13:44:31 +02:00
parent 2008d0755c
commit 9b88cdeb9b
7 changed files with 12 additions and 18 deletions

View File

@ -12,7 +12,7 @@ insert_final_newline = true
trim_trailing_whitespace = true
[{package.json,.travis.yml,.eslintrc,.babelrc}]
[{package.json,.travis.yml,.eslintrc}]
indent_size = 2

10
ghu.js
View File

@ -122,17 +122,17 @@ ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
.then(newerThan(`${BUILD}/test/h5ai-styles.css`))
.then(write(`${BUILD}/test/h5ai-styles.css`, {overwrite: true})),
read(`${TEST}/tests.html`)
.then(newerThan(`${BUILD}/test/tests.html`))
.then(write(`${BUILD}/test/tests.html`, {overwrite: true})),
read(`${TEST}/index.html`)
.then(newerThan(`${BUILD}/test/index.html`))
.then(write(`${BUILD}/test/index.html`, {overwrite: true})),
read(`${TEST}: tests.js`)
read(`${TEST}: index.js`)
.then(webpack(webpackCfg([SRC, TEST]), {showStats: false}))
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
.then(includeit())
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
]).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`);
});
});

View File

@ -16,9 +16,9 @@
"devDependencies": {
"babel-loader": "6.2.4",
"babel-preset-es2015": "6.9.0",
"eslint": "3.0.1",
"eslint": "3.1.1",
"ghu": "0.7.0",
"scar": "0.13.0"
"scar": "0.14.0"
},
"engines": {
"node": ">=6.0.0"

View File

@ -27,6 +27,4 @@
/* eslint-enable */
// @include "vendor/kjua*.js"
// @include "vendor/marked*.js"
// @include "vendor/prism*.js"
// @include "vendor/*.js"

View File

@ -6,6 +6,6 @@
<link rel="stylesheet" href="h5ai-styles.css">
</head>
<body>
<script src="tests.js"></script>
<script src="index.js"></script>
</body>
</html>

View File

@ -1,10 +1,6 @@
const {test, assert} = require('scar');
test('window is global object', () => {
assert.equal(typeof global, 'object');
assert.equal(global, global.window);
});
test('document is global object', () => {
assert.equal(typeof global.document, 'object');
assert.ok(global.window);
assert.equal(global.window, global.window.window);
});