diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d4acf4..f9eaccc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,18 @@ testLTS: - docker - notpriv +testBuild: + stage: test + script: + - npmci npm prepare + - npmci node install lts + - npmci npm install + - npmci command npm run build + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + - notpriv + release: stage: release script: diff --git a/package.json b/package.json index f66cbba..78bc0d0 100644 --- a/package.json +++ b/package.json @@ -59,9 +59,10 @@ "ts_web/*", "dist/*", "dist_web/*", + "dist_ts_web/*", "assets/*", "cli.js", "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/ts/mod_git/index.ts b/ts/mod_git/index.ts index 37bf327..0d6b6d0 100644 --- a/ts/mod_git/index.ts +++ b/ts/mod_git/index.ts @@ -42,7 +42,7 @@ export let mirror = async () => { logger.log('info', 'found github token.'); logger.log('info', 'attempting the mirror the repository to GitHub'); - plugins.smartgit.GitRepo + plugins.smartgit.GitRepo; // add the mirror await bash( diff --git a/ts/mod_git/mod.plugins.ts b/ts/mod_git/mod.plugins.ts index df81b30..1b3f488 100644 --- a/ts/mod_git/mod.plugins.ts +++ b/ts/mod_git/mod.plugins.ts @@ -2,6 +2,4 @@ export * from '../npmci.plugins'; import * as smartgit from '@pushrocks/smartgit'; -export { - smartgit -}; +export { smartgit }; diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index 92cdafb..f88bb70 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -77,9 +77,7 @@ const publish = async () => { }); // -> configure package access level - if ( - config.npmAccessLevel - ) { + if (config.npmAccessLevel) { npmAccessCliString = `--access=${config.npmAccessLevel}`; if (config.npmAccessLevel === 'public') { publishVerdaccioAsWell = true; @@ -97,9 +95,14 @@ const publish = async () => { // publishEverywhere if (publishVerdaccioAsWell) { - const verdaccioRegistry = availableRegistries.find(registryString => registryString.startsWith('verdaccio')); + const verdaccioRegistry = availableRegistries.find(registryString => + registryString.startsWith('verdaccio') + ); if (verdaccioRegistry) { - logger.log('info', `package is public and verdaccio registry is specified. Also publishing to Verdaccio!`); + logger.log( + 'info', + `package is public and verdaccio registry is specified. Also publishing to Verdaccio!` + ); publishCommand = `${publishCommand} && npm publish ${npmAccessCliString} --registry=https://${verdaccioRegistry}`; } }