From 9c4c6baa672d7447c9e17c4e590797ac939bc65f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 12:15:41 +0200 Subject: [PATCH] more standards --- index.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 98bf37b..e16cdb1 100644 --- a/index.js +++ b/index.js @@ -2,4 +2,19 @@ const jenkins = require ('./asset_jenkins'); -module.exports = { jenkins }; +const files = { jenkins }; + +const scripts = { + lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs', + test: { + common: 'nyc ava', + ts: 'tsc && nyc ava', + no: 'echo "no test"' + }, + compile: { + common: 'tsc --allowJs --declaration --emitDeclarationOnly index.js', + ts: 'tsc' + } +}; + +module.exports = { files, scripts };