Rename global.js to pre.js.

This commit is contained in:
Lars Jung 2016-06-19 13:57:10 +02:00
parent 2240bd3ca1
commit 2153056266
2 changed files with 2 additions and 2 deletions

4
ghu.js
View file

@ -68,7 +68,7 @@ ghu.task('build:scripts', runtime => {
return read(`${SRC}/_h5ai/public/js/scripts.js`)
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
.then(webpack(webpackConfig, {showStats: false}))
.then(wrap('\n\n// @include "global.js"\n\n'))
.then(wrap('\n\n// @include "pre.js"\n\n'))
.then(includeit())
.then(ife(() => runtime.args.production, uglify()))
.then(wrap(runtime.commentJs))
@ -145,7 +145,7 @@ ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
read(`${TEST}: tests.js`)
.then(webpack(webpackConfig, {showStats: false}))
.then(wrap(`\n\n// @include "${SRC}/**/js/global.js"\n\n`))
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
.then(includeit())
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
]).then(() => {