fix(core): update
This commit is contained in:
		@@ -12,6 +12,9 @@ stages:
 | 
			
		||||
  - release
 | 
			
		||||
  - metadata
 | 
			
		||||
 | 
			
		||||
before_script:
 | 
			
		||||
  - npm install -g @shipzone/npmci
 | 
			
		||||
 | 
			
		||||
# ====================
 | 
			
		||||
# security stage
 | 
			
		||||
# ====================
 | 
			
		||||
@@ -19,23 +22,36 @@ mirror:
 | 
			
		||||
  stage: security
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci git mirror
 | 
			
		||||
  only:
 | 
			
		||||
    - tags
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
    - notpriv
 | 
			
		||||
 | 
			
		||||
audit:
 | 
			
		||||
auditProductionDependencies:
 | 
			
		||||
  image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
 | 
			
		||||
  stage: security
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci command npm install --production --ignore-scripts
 | 
			
		||||
    - npmci command npm config set registry https://registry.npmjs.org
 | 
			
		||||
    - npmci command npm audit --audit-level=high --only=prod --production
 | 
			
		||||
  tags:
 | 
			
		||||
    - docker
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
 | 
			
		||||
auditDevDependencies:
 | 
			
		||||
  image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
 | 
			
		||||
  stage: security
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci command npm install --ignore-scripts
 | 
			
		||||
    - npmci command npm config set registry https://registry.npmjs.org
 | 
			
		||||
    - npmci command npm audit --audit-level=high
 | 
			
		||||
    - npmci command npm audit --audit-level=high --only=dev
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
    - notpriv
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
 | 
			
		||||
# ====================
 | 
			
		||||
# test stage
 | 
			
		||||
@@ -50,9 +66,7 @@ testStable:
 | 
			
		||||
    - npmci npm test
 | 
			
		||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
    - priv
 | 
			
		||||
 | 
			
		||||
testBuild:
 | 
			
		||||
  stage: test
 | 
			
		||||
@@ -63,9 +77,7 @@ testBuild:
 | 
			
		||||
    - npmci command npm run build
 | 
			
		||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
    - notpriv
 | 
			
		||||
 | 
			
		||||
release:
 | 
			
		||||
  stage: release
 | 
			
		||||
@@ -85,11 +97,12 @@ release:
 | 
			
		||||
codequality:
 | 
			
		||||
  stage: metadata
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
  only:
 | 
			
		||||
    - tags
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci command npm install -g tslint typescript
 | 
			
		||||
    - npmci command npm install -g typescript
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci npm install
 | 
			
		||||
    - npmci command "tslint -c tslint.json ./ts/**/*.ts"
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@@ -2,28 +2,10 @@
 | 
			
		||||
  "version": "0.2.0",
 | 
			
		||||
  "configurations": [
 | 
			
		||||
    {
 | 
			
		||||
      "name": "current file",
 | 
			
		||||
      "type": "node",
 | 
			
		||||
      "command": "npm test",
 | 
			
		||||
      "name": "Run npm test",
 | 
			
		||||
      "request": "launch",
 | 
			
		||||
      "args": [
 | 
			
		||||
        "${relativeFile}"
 | 
			
		||||
      ],
 | 
			
		||||
      "runtimeArgs": ["-r", "@gitzone/tsrun"],
 | 
			
		||||
      "cwd": "${workspaceRoot}",
 | 
			
		||||
      "protocol": "inspector",
 | 
			
		||||
      "internalConsoleOptions": "openOnSessionStart"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "test.ts",
 | 
			
		||||
      "type": "node",
 | 
			
		||||
      "request": "launch",
 | 
			
		||||
      "args": [
 | 
			
		||||
        "test/test.ts"
 | 
			
		||||
      ],
 | 
			
		||||
      "runtimeArgs": ["-r", "@gitzone/tsrun"],
 | 
			
		||||
      "cwd": "${workspaceRoot}",
 | 
			
		||||
      "protocol": "inspector",
 | 
			
		||||
      "internalConsoleOptions": "openOnSessionStart"
 | 
			
		||||
      "type": "node-terminal"
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@@ -15,7 +15,7 @@
 | 
			
		||||
            "properties": {
 | 
			
		||||
              "projectType": {
 | 
			
		||||
                "type": "string",
 | 
			
		||||
                "enum": ["website", "element", "service", "npm"]
 | 
			
		||||
                "enum": ["website", "element", "service", "npm", "wcc"]
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
@@ -53,5 +53,8 @@
 | 
			
		||||
    "cli.js",
 | 
			
		||||
    "npmextra.json",
 | 
			
		||||
    "readme.md"
 | 
			
		||||
  ],
 | 
			
		||||
  "browserslist": [
 | 
			
		||||
    "last 1 chrome versions"
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
@@ -19,7 +19,7 @@ TypeScript Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
 | 
			
		||||
Code Style | [](https://lossless.cloud)
 | 
			
		||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
 | 
			
		||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
 | 
			
		||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
 | 
			
		||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
 | 
			
		||||
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,6 @@ import { tap, expect } from '@pushrocks/tapbundle';
 | 
			
		||||
import * as smartpath from '@pushrocks/smartpath';
 | 
			
		||||
import * as projectinfo from '../ts/index.js';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import * as path from 'path';
 | 
			
		||||
let testBasePath = path.resolve(smartpath.get.dirnameFromImportMetaUrl(import.meta.url));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
import * as plugins from './projectinfo.plugins.js'
 | 
			
		||||
import * as plugins from './projectinfo.plugins.js';
 | 
			
		||||
 | 
			
		||||
// direct access to classes
 | 
			
		||||
export * from './projectinfo.classes.git.js';
 | 
			
		||||
@@ -13,7 +13,7 @@ import { ProjectinfoNpm } from './projectinfo.classes.npm.js';
 | 
			
		||||
/**
 | 
			
		||||
 * gets the name from package.json in a specified directory
 | 
			
		||||
 */
 | 
			
		||||
export let getNpmNameForDir = function(cwdArg) {
 | 
			
		||||
export let getNpmNameForDir = function (cwdArg) {
 | 
			
		||||
  let localNpm = new ProjectinfoNpm(cwdArg);
 | 
			
		||||
  if (localNpm.status === 'ok') {
 | 
			
		||||
    return localNpm.name;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user