Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
668fd0998f | |||
e0611f3f64 | |||
928f3212a3 | |||
7c7e45ad54 | |||
797d9e2bcd | |||
578cd2d097 | |||
5a7dd901f0 | |||
2104fc01e6 | |||
4eacef56d5 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ pages/
|
||||
public/
|
||||
npm-debug/
|
||||
.DS_Store
|
||||
.yarn/
|
@ -19,6 +19,7 @@ mirror:
|
||||
- npmci git mirror
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
snyk:
|
||||
stage: security
|
||||
@ -28,6 +29,26 @@ snyk:
|
||||
- npmci command snyk test
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
codequality:
|
||||
stage: security
|
||||
image: docker:stable
|
||||
allow_failure: true
|
||||
services:
|
||||
- docker:stable-dind
|
||||
script:
|
||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||
- docker run
|
||||
--env SOURCE_CODE="$PWD"
|
||||
--volume "$PWD":/code
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
||||
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
||||
artifacts:
|
||||
paths: [codeclimate.json]
|
||||
tags:
|
||||
- docker
|
||||
- priv
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
@ -38,6 +59,7 @@ testLEGACY:
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
allow_failure: true
|
||||
|
||||
testLTS:
|
||||
@ -49,6 +71,7 @@ testLTS:
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
@ -59,6 +82,7 @@ testSTABLE:
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
release:
|
||||
stage: release
|
||||
@ -70,6 +94,7 @@ release:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
trigger:
|
||||
stage: trigger
|
||||
@ -79,6 +104,7 @@ trigger:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
pages:
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
@ -88,6 +114,7 @@ pages:
|
||||
- npmci command npmpage
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
only:
|
||||
- tags
|
||||
artifacts:
|
||||
|
@ -1,6 +0,0 @@
|
||||
compile/
|
||||
coverage/
|
||||
test/
|
||||
docs/
|
||||
examples
|
||||
.gitignore
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/npmts",
|
||||
"version": "8.0.33",
|
||||
"version": "8.0.38",
|
||||
"description": "best practice npm TypeScript modules",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
@ -8,6 +8,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "(npm run compile && npm run prepareTest && npm run setupCheck && npm run check && npm run checkVersion && npm run checkNoTest && npm run checkNoDocs)",
|
||||
"build": "npm test",
|
||||
"testShort": "(npm run compile && npm run check)",
|
||||
"prepareTest": "(rm -rf test/)",
|
||||
"compile": "(rm -rf dist/ && tsc)",
|
||||
@ -34,7 +35,7 @@
|
||||
},
|
||||
"homepage": "https://gitlab.com/gitzone/npmts#readme",
|
||||
"dependencies": {
|
||||
"@pushrocks/smartcli": "^3.0.0",
|
||||
"@pushrocks/smartcli": "^3.0.1",
|
||||
"@types/gulp-sourcemaps": "0.0.32",
|
||||
"@types/minimatch": "^3.0.1",
|
||||
"@types/through2": "^2.0.33",
|
||||
|
@ -53,9 +53,8 @@ export let run = async () => {
|
||||
let npmtsCli = new plugins.smartcli.Smartcli();
|
||||
|
||||
// build
|
||||
npmtsCli
|
||||
.addCommand('build')
|
||||
.subscribe(async (argvArg) => {
|
||||
npmtsCli.addCommand('build').subscribe(
|
||||
async argvArg => {
|
||||
let done = q.defer();
|
||||
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
|
||||
const configArg: NpmtsConfig.INpmtsConfig = await NpmtsConfig.run(argvArg);
|
||||
@ -94,16 +93,18 @@ export let run = async () => {
|
||||
.then(NpmtsShip.run);
|
||||
|
||||
return done.promise;
|
||||
}, err => {
|
||||
},
|
||||
err => {
|
||||
if (err instanceof Error) {
|
||||
console.log(err);
|
||||
}
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
// standard task
|
||||
npmtsCli.standardTask().subscribe(async argvArg => {
|
||||
await npmtsCli.trigger('build')
|
||||
})
|
||||
await npmtsCli.trigger('build');
|
||||
});
|
||||
|
||||
// cli metadata
|
||||
npmtsCli.addVersion(npmtsProjectInfo.version);
|
||||
|
4026
yarn-error.log
Normal file
4026
yarn-error.log
Normal file
File diff suppressed because it is too large
Load Diff
@ -19,9 +19,9 @@
|
||||
normalize-path "^2.0.1"
|
||||
through2 "^2.0.3"
|
||||
|
||||
"@pushrocks/smartcli@^3.0.0":
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@pushrocks/smartcli/-/smartcli-3.0.0.tgz#1840db8c8e5504ac136ce4051f3906158338192a"
|
||||
"@pushrocks/smartcli@^3.0.1":
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@pushrocks/smartcli/-/smartcli-3.0.1.tgz#330ca93f83ecaa23f9213cefa23270105a7728fc"
|
||||
dependencies:
|
||||
"@types/yargs" "^11.0.0"
|
||||
beautylog "^6.1.10"
|
||||
|
Reference in New Issue
Block a user