overhaul tests

This commit is contained in:
Rich Harris
2018-10-07 18:23:43 -04:00
committed by GitHub
parent 18acef3190
commit 5e59855a15
183 changed files with 4145 additions and 3126 deletions

View File

@@ -12,7 +12,7 @@ const external = [].concat(
'sapper/core.js'
);
function template(kind, external) {
function template(kind, external, target) {
return {
input: `templates/src/${kind}/index.ts`,
output: {
@@ -28,15 +28,15 @@ function template(kind, external) {
}),
typescript({
typescript: require('typescript'),
target: "ES2017"
target
})
]
};
}
export default [
template('client', ['__ROOT__', '__ERROR__']),
template('server', builtinModules),
template('client', ['__ROOT__', '__ERROR__'], 'ES2017'),
template('server', builtinModules, 'ES2015'),
{
input: [