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 };