This commit is contained in:
Timo Hocker 2020-04-24 12:06:46 +02:00
parent e63ce1f8ed
commit 51da138b55
3 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,11 @@ fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' });
if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
child_process.execSync ('yarn test', { stdio: 'inherit' });
if (
typeof pkg.scripts !== 'undefined'
&& typeof pkg.scripts.compile === 'string'
)
child_process.execSync ('yarn compile', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')
.addListener ('exit', (code) => {

View File

@ -15,6 +15,7 @@
"scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs",
"test": "tsc && nyc ava",
"ci": "yarn && node jenkins.js"
"ci": "yarn && node jenkins.js",
"compile": "tsc"
}
}
}

View File

@ -1,4 +1,3 @@
import fs from 'fs';
import test from 'ava';
import { Graph, Node } from '../lib';