Compare commits

...

12 Commits

Author SHA1 Message Date
e0611f3f64 8.0.37 2018-05-04 00:27:35 +02:00
928f3212a3 update dependencies 2018-05-04 00:27:31 +02:00
7c7e45ad54 8.0.36 2018-05-03 18:05:42 +02:00
797d9e2bcd add codequality step 2018-05-03 18:05:37 +02:00
578cd2d097 8.0.35 2018-05-03 13:30:05 +02:00
5a7dd901f0 update ci 2018-05-03 13:30:01 +02:00
2104fc01e6 update build 2018-05-03 13:28:46 +02:00
4eacef56d5 8.0.34 2018-05-03 13:05:24 +02:00
5722deb7a0 8.0.33 2018-05-03 12:57:29 +02:00
50d71dde67 update ci 2018-05-03 12:56:58 +02:00
13123e180d 8.0.32 2018-05-03 12:45:24 +02:00
b13db4184b update snyk security policy 2018-05-03 12:45:22 +02:00
8 changed files with 4095 additions and 23 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ test/
pages/ pages/
public/ public/
npm-debug/ npm-debug/
.DS_Store .DS_Store
.yarn/

View File

@ -19,6 +19,7 @@ mirror:
- npmci git mirror - npmci git mirror
tags: tags:
- docker - docker
- notpriv
snyk: snyk:
stage: security stage: security
@ -28,6 +29,26 @@ snyk:
- npmci command snyk test - npmci command snyk test
tags: tags:
- docker - 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: testLEGACY:
stage: test stage: test
@ -38,6 +59,7 @@ testLEGACY:
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv
allow_failure: true allow_failure: true
testLTS: testLTS:
@ -49,6 +71,7 @@ testLTS:
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv
testSTABLE: testSTABLE:
stage: test stage: test
@ -59,16 +82,19 @@ testSTABLE:
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv
release: release:
stage: release stage: release
script: script:
- npmci node install stable
- npmci npm prepare - npmci npm prepare
- npmci npm publish - npmci npm publish
only: only:
- tags - tags
tags: tags:
- docker - docker
- notpriv
trigger: trigger:
stage: trigger stage: trigger
@ -78,6 +104,7 @@ trigger:
- tags - tags
tags: tags:
- docker - docker
- notpriv
pages: pages:
image: hosttoday/ht-docker-node:npmci image: hosttoday/ht-docker-node:npmci
@ -87,6 +114,7 @@ pages:
- npmci command npmpage - npmci command npmpage
tags: tags:
- docker - docker
- notpriv
only: only:
- tags - tags
artifacts: artifacts:

View File

@ -1,6 +0,0 @@
compile/
coverage/
test/
docs/
examples
.gitignore

27
.snyk
View File

@ -1,19 +1,19 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.10.2 version: v1.12.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date # ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore: ignore:
'npm:debug:20170905': 'npm:debug:20170905':
- node-pre-gyp > tar-pack > debug: - node-pre-gyp > tar-pack > debug:
reason: None given reason: None given
expires: '2018-05-08T23:10:17.169Z' expires: '2018-05-08T23:10:17.169Z'
smartchok > chokidar > fsevents > node-pre-gyp > tar-pack > debug: - smartchok > chokidar > fsevents > node-pre-gyp > tar-pack > debug:
reason: None given reason: None given
expires: '2018-05-08T23:12:05.487Z' expires: '2018-05-08T23:12:05.487Z'
'npm:tough-cookie:20170905': 'npm:tough-cookie:20170905':
- node-pre-gyp > request > tough-cookie: - node-pre-gyp > request > tough-cookie:
reason: None given reason: None given
expires: '2018-05-08T23:10:17.169Z' expires: '2018-05-08T23:10:17.169Z'
smartchok > chokidar > fsevents > node-pre-gyp > request > tough-cookie: - smartchok > chokidar > fsevents > node-pre-gyp > request > tough-cookie:
reason: None given reason: None given
expires: '2018-05-08T23:12:05.487Z' expires: '2018-05-08T23:12:05.487Z'
'npm:hoek:20180212': 'npm:hoek:20180212':
@ -87,4 +87,25 @@ ignore:
- tapbuffer > smartshell > shelljs: - tapbuffer > smartshell > shelljs:
reason: None given reason: None given
expires: '2018-05-08T23:10:17.169Z' expires: '2018-05-08T23:10:17.169Z'
'npm:atob:20180429':
- gulp-sourcemaps > css > source-map-resolve > atob:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
- gulp-sourcemaps > @gulp-sourcemaps/identity-map > css > source-map-resolve > atob:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
'npm:deep-extend:20180409':
- smartchok > chokidar > fsevents > node-pre-gyp > rc > deep-extend:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
- deep-extend:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
- node-pre-gyp > rc > deep-extend:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
'npm:sshpk:20180409':
- smartchok > chokidar > fsevents > node-pre-gyp > request > http-signature > sshpk:
reason: None given
expires: '2018-06-02T10:44:49.656Z'
patch: {} patch: {}

View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/npmts", "name": "@gitzone/npmts",
"version": "8.0.31", "version": "8.0.37",
"description": "best practice npm TypeScript modules", "description": "best practice npm TypeScript modules",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {
@ -8,6 +8,7 @@
}, },
"scripts": { "scripts": {
"test": "(npm run compile && npm run prepareTest && npm run setupCheck && npm run check && npm run checkVersion && npm run checkNoTest && npm run checkNoDocs)", "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)", "testShort": "(npm run compile && npm run check)",
"prepareTest": "(rm -rf test/)", "prepareTest": "(rm -rf test/)",
"compile": "(rm -rf dist/ && tsc)", "compile": "(rm -rf dist/ && tsc)",
@ -34,7 +35,7 @@
}, },
"homepage": "https://gitlab.com/gitzone/npmts#readme", "homepage": "https://gitlab.com/gitzone/npmts#readme",
"dependencies": { "dependencies": {
"@pushrocks/smartcli": "^3.0.0", "@pushrocks/smartcli": "^3.0.1",
"@types/gulp-sourcemaps": "0.0.32", "@types/gulp-sourcemaps": "0.0.32",
"@types/minimatch": "^3.0.1", "@types/minimatch": "^3.0.1",
"@types/through2": "^2.0.33", "@types/through2": "^2.0.33",

View File

@ -51,11 +51,10 @@ export let run = async () => {
); );
plugins.beautylog.log('---------------------------------------------'); plugins.beautylog.log('---------------------------------------------');
let npmtsCli = new plugins.smartcli.Smartcli(); let npmtsCli = new plugins.smartcli.Smartcli();
// build // build
npmtsCli npmtsCli.addCommand('build').subscribe(
.addCommand('build') async argvArg => {
.subscribe(async (argvArg) => {
let done = q.defer(); let done = q.defer();
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version); plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
const configArg: NpmtsConfig.INpmtsConfig = await NpmtsConfig.run(argvArg); const configArg: NpmtsConfig.INpmtsConfig = await NpmtsConfig.run(argvArg);
@ -94,16 +93,18 @@ export let run = async () => {
.then(NpmtsShip.run); .then(NpmtsShip.run);
return done.promise; return done.promise;
}, err => { },
err => {
if (err instanceof Error) { if (err instanceof Error) {
console.log(err); console.log(err);
} }
}) }
);
// standard task // standard task
npmtsCli.standardTask().subscribe(async argvArg => { npmtsCli.standardTask().subscribe(async argvArg => {
await npmtsCli.trigger('build') await npmtsCli.trigger('build');
}) });
// cli metadata // cli metadata
npmtsCli.addVersion(npmtsProjectInfo.version); npmtsCli.addVersion(npmtsProjectInfo.version);

4026
yarn-error.log Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,9 +19,9 @@
normalize-path "^2.0.1" normalize-path "^2.0.1"
through2 "^2.0.3" through2 "^2.0.3"
"@pushrocks/smartcli@^3.0.0": "@pushrocks/smartcli@^3.0.1":
version "3.0.0" version "3.0.1"
resolved "https://registry.yarnpkg.com/@pushrocks/smartcli/-/smartcli-3.0.0.tgz#1840db8c8e5504ac136ce4051f3906158338192a" resolved "https://registry.yarnpkg.com/@pushrocks/smartcli/-/smartcli-3.0.1.tgz#330ca93f83ecaa23f9213cefa23270105a7728fc"
dependencies: dependencies:
"@types/yargs" "^11.0.0" "@types/yargs" "^11.0.0"
beautylog "^6.1.10" beautylog "^6.1.10"