formatting

This commit is contained in:
Timo Hocker 2020-02-19 09:20:15 +01:00
parent 2db351ad3c
commit 5af400e95c
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8'));
fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2)); fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' }); child_process.execSync ('yarn lint', { stdio: 'inherit' });
if (typeof pkg.scripts !=='undefined' && typeof pkg.scripts.test === 'string') if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
child_process.execSync ('yarn test', { stdio: 'inherit' }); child_process.execSync ('yarn test', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'') child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')

View File

@ -4,7 +4,8 @@
"description": "scode eslint standard configuration", "description": "scode eslint standard configuration",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"lint": "eslint --fix .", "lint": "eslint .",
"test": "echo \"no test\"",
"ci": "yarn --frozen-lockfile && node jenkins.js" "ci": "yarn --frozen-lockfile && node jenkins.js"
}, },
"repository": { "repository": {