fix(core): update
This commit is contained in:
		
							
								
								
									
										22
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,20 @@
 | 
				
			|||||||
node_modules/
 | 
					.nogit/
 | 
				
			||||||
pages/
 | 
					
 | 
				
			||||||
public/
 | 
					# artifacts
 | 
				
			||||||
coverage/
 | 
					coverage/
 | 
				
			||||||
 | 
					public/
 | 
				
			||||||
 | 
					pages/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# installs
 | 
				
			||||||
 | 
					node_modules/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# caches
 | 
				
			||||||
 | 
					.yarn/
 | 
				
			||||||
 | 
					.cache/
 | 
				
			||||||
 | 
					.rpt2_cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# builds
 | 
				
			||||||
 | 
					dist/
 | 
				
			||||||
 | 
					dist_*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# custom
 | 
				
			||||||
@@ -1,10 +1,10 @@
 | 
				
			|||||||
# gitzone standard
 | 
					# gitzone ci_default
 | 
				
			||||||
image: hosttoday/ht-docker-node:npmci
 | 
					image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cache:
 | 
					cache:
 | 
				
			||||||
  paths:
 | 
					  paths:
 | 
				
			||||||
    - .npmci_cache/
 | 
					    - .npmci_cache/
 | 
				
			||||||
  key: "$CI_BUILD_STAGE"
 | 
					  key: '$CI_BUILD_STAGE'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
stages:
 | 
					stages:
 | 
				
			||||||
  - security
 | 
					  - security
 | 
				
			||||||
@@ -20,53 +20,50 @@ mirror:
 | 
				
			|||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - npmci git mirror
 | 
					    - npmci git mirror
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
snyk:
 | 
					audit:
 | 
				
			||||||
 | 
					  image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
 | 
				
			||||||
  stage: security
 | 
					  stage: security
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - npmci command npm install -g snyk
 | 
					    - npmci npm prepare
 | 
				
			||||||
    - npmci command npm install --ignore-scripts
 | 
					    - npmci command npm install --ignore-scripts
 | 
				
			||||||
    - npmci command snyk test
 | 
					    - npmci command npm config set registry https://registry.npmjs.org
 | 
				
			||||||
 | 
					    - npmci command npm audit --audit-level=high
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ====================
 | 
					# ====================
 | 
				
			||||||
# test stage
 | 
					# test stage
 | 
				
			||||||
# ====================
 | 
					# ====================
 | 
				
			||||||
testLEGACY:
 | 
					 | 
				
			||||||
  stage: test
 | 
					 | 
				
			||||||
  script:
 | 
					 | 
				
			||||||
  - npmci node install legacy
 | 
					 | 
				
			||||||
  - npmci npm install
 | 
					 | 
				
			||||||
  - npmci npm test
 | 
					 | 
				
			||||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
					 | 
				
			||||||
  tags:
 | 
					 | 
				
			||||||
  - docker
 | 
					 | 
				
			||||||
  - notpriv
 | 
					 | 
				
			||||||
  allow_failure: true
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
testLTS:
 | 
					testStable:
 | 
				
			||||||
  stage: test
 | 
					 | 
				
			||||||
  script:
 | 
					 | 
				
			||||||
  - npmci node install lts
 | 
					 | 
				
			||||||
  - npmci npm install
 | 
					 | 
				
			||||||
  - npmci npm test
 | 
					 | 
				
			||||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
					 | 
				
			||||||
  tags:
 | 
					 | 
				
			||||||
  - docker
 | 
					 | 
				
			||||||
  - notpriv
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
testSTABLE:
 | 
					 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
 | 
					    - npmci npm prepare
 | 
				
			||||||
    - npmci node install stable
 | 
					    - npmci node install stable
 | 
				
			||||||
    - npmci npm install
 | 
					    - npmci npm install
 | 
				
			||||||
    - npmci npm test
 | 
					    - npmci npm test
 | 
				
			||||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
					  coverage: /\d+.?\d+?\%\s*coverage/
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
 | 
					    - docker
 | 
				
			||||||
 | 
					    - priv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					testBuild:
 | 
				
			||||||
 | 
					  stage: test
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					    - npmci npm prepare
 | 
				
			||||||
 | 
					    - npmci node install stable
 | 
				
			||||||
 | 
					    - npmci npm install
 | 
				
			||||||
 | 
					    - npmci command npm run build
 | 
				
			||||||
 | 
					  coverage: /\d+.?\d+?\%\s*coverage/
 | 
				
			||||||
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -78,6 +75,7 @@ release:
 | 
				
			|||||||
  only:
 | 
					  only:
 | 
				
			||||||
    - tags
 | 
					    - tags
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -86,20 +84,14 @@ release:
 | 
				
			|||||||
# ====================
 | 
					# ====================
 | 
				
			||||||
codequality:
 | 
					codequality:
 | 
				
			||||||
  stage: metadata
 | 
					  stage: metadata
 | 
				
			||||||
  image: docker:stable
 | 
					 | 
				
			||||||
  allow_failure: true
 | 
					  allow_failure: true
 | 
				
			||||||
  services:
 | 
					 | 
				
			||||||
    - docker:stable-dind
 | 
					 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
 | 
					    - npmci command npm install -g tslint typescript
 | 
				
			||||||
    - docker run
 | 
					    - npmci npm prepare
 | 
				
			||||||
        --env SOURCE_CODE="$PWD"
 | 
					    - npmci npm install
 | 
				
			||||||
        --volume "$PWD":/code
 | 
					    - npmci command "tslint -c tslint.json ./ts/**/*.ts"
 | 
				
			||||||
        --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:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - priv
 | 
					    - priv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -110,17 +102,20 @@ trigger:
 | 
				
			|||||||
  only:
 | 
					  only:
 | 
				
			||||||
    - tags
 | 
					    - tags
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pages:
 | 
					pages:
 | 
				
			||||||
  image: hosttoday/ht-docker-node:npmci
 | 
					 | 
				
			||||||
  stage: metadata
 | 
					  stage: metadata
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - npmci command npm install -g typedoc typescript
 | 
					    - npmci node install lts
 | 
				
			||||||
 | 
					    - npmci command npm install -g @gitzone/tsdoc
 | 
				
			||||||
 | 
					    - npmci npm prepare
 | 
				
			||||||
    - npmci npm install
 | 
					    - npmci npm install
 | 
				
			||||||
    - npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
 | 
					    - npmci command tsdoc
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 | 
					    - lossless
 | 
				
			||||||
    - docker
 | 
					    - docker
 | 
				
			||||||
    - notpriv
 | 
					    - notpriv
 | 
				
			||||||
  only:
 | 
					  only:
 | 
				
			||||||
@@ -130,13 +125,3 @@ pages:
 | 
				
			|||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - public
 | 
					      - public
 | 
				
			||||||
  allow_failure: true
 | 
					  allow_failure: true
 | 
				
			||||||
 | 
					 | 
				
			||||||
windowsCompatibility:
 | 
					 | 
				
			||||||
  image: stefanscherer/node-windows:10-build-tools
 | 
					 | 
				
			||||||
  stage: metadata
 | 
					 | 
				
			||||||
  script:
 | 
					 | 
				
			||||||
  - npm install & npm test
 | 
					 | 
				
			||||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
					 | 
				
			||||||
  tags:
 | 
					 | 
				
			||||||
  - windows
 | 
					 | 
				
			||||||
  allow_failure: true
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										29
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "version": "0.2.0",
 | 
				
			||||||
 | 
					  "configurations": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "name": "current file",
 | 
				
			||||||
 | 
					      "type": "node",
 | 
				
			||||||
 | 
					      "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"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										26
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "json.schemas": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "fileMatch": ["/npmextra.json"],
 | 
				
			||||||
 | 
					      "schema": {
 | 
				
			||||||
 | 
					        "type": "object",
 | 
				
			||||||
 | 
					        "properties": {
 | 
				
			||||||
 | 
					          "npmci": {
 | 
				
			||||||
 | 
					            "type": "object",
 | 
				
			||||||
 | 
					            "description": "settings for npmci"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "gitzone": {
 | 
				
			||||||
 | 
					            "type": "object",
 | 
				
			||||||
 | 
					            "description": "settings for gitzone",
 | 
				
			||||||
 | 
					            "properties": {
 | 
				
			||||||
 | 
					              "projectType": {
 | 
				
			||||||
 | 
					                "type": "string",
 | 
				
			||||||
 | 
					                "enum": ["website", "element", "service", "npm"]
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										28
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								README.md
									
									
									
									
									
								
							@@ -1,28 +0,0 @@
 | 
				
			|||||||
# early
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minimal and fast loading plugin for startup time measuring
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Availabililty
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[](https://www.npmjs.com/package/early)
 | 
					 | 
				
			||||||
[](https://GitLab.com/pushrocks/early)
 | 
					 | 
				
			||||||
[](https://github.com/pushrocks/early)
 | 
					 | 
				
			||||||
[](https://pushrocks.gitlab.io/early/)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Status for master
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[](https://GitLab.com/pushrocks/early/commits/master)
 | 
					 | 
				
			||||||
[](https://GitLab.com/pushrocks/early/commits/master)
 | 
					 | 
				
			||||||
[](https://www.npmjs.com/package/early)
 | 
					 | 
				
			||||||
[](https://david-dm.org/pushrocks/early)
 | 
					 | 
				
			||||||
[](https://www.bithound.io/github/pushrocks/early/master/dependencies/npm)
 | 
					 | 
				
			||||||
[](https://www.bithound.io/github/pushrocks/early)
 | 
					 | 
				
			||||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
 | 
					 | 
				
			||||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
 | 
					 | 
				
			||||||
[](http://standardjs.com/)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
For further information read the linked docs at the top of this README.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[](https://push.rocks)
 | 
					 | 
				
			||||||
@@ -1,11 +1,19 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "npmts":{
 | 
					 | 
				
			||||||
        "coverageTreshold":50
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
  "npmci": {
 | 
					  "npmci": {
 | 
				
			||||||
    "npmGlobalTools": [
 | 
					    "npmGlobalTools": [
 | 
				
			||||||
      "@gitzone/npmts"
 | 
					      "@gitzone/npmts"
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "npmAccessLevel": "public"
 | 
					    "npmAccessLevel": "public"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "gitzone": {
 | 
				
			||||||
 | 
					    "projectType": "npm",
 | 
				
			||||||
 | 
					    "module": {
 | 
				
			||||||
 | 
					      "githost": "gitlab.com",
 | 
				
			||||||
 | 
					      "gitscope": "pushrocks",
 | 
				
			||||||
 | 
					      "gitrepo": "early",
 | 
				
			||||||
 | 
					      "shortDescription": "minimal and fast loading plugin for startup time measuring",
 | 
				
			||||||
 | 
					      "npmPackagename": "@pushrocks/early",
 | 
				
			||||||
 | 
					      "license": "MIT"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										933
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										933
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										28
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								package.json
									
									
									
									
									
								
							@@ -3,8 +3,8 @@
 | 
				
			|||||||
  "version": "3.0.3",
 | 
					  "version": "3.0.3",
 | 
				
			||||||
  "private": false,
 | 
					  "private": false,
 | 
				
			||||||
  "description": "minimal and fast loading plugin for startup time measuring",
 | 
					  "description": "minimal and fast loading plugin for startup time measuring",
 | 
				
			||||||
  "main": "dist/index.js",
 | 
					  "main": "dist_ts/index.js",
 | 
				
			||||||
  "typings": "dist/index.d.ts",
 | 
					  "typings": "dist_ts/index.d.ts",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "test": "(tsrun test/test.ts)",
 | 
					    "test": "(tsrun test/test.ts)",
 | 
				
			||||||
    "build": "(npmts)"
 | 
					    "build": "(npmts)"
 | 
				
			||||||
@@ -23,12 +23,26 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "homepage": "https://gitlab.com/pushrocks/early#readme",
 | 
					  "homepage": "https://gitlab.com/pushrocks/early#readme",
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@gitzone/tsrun": "^1.1.9",
 | 
					    "@gitzone/tsrun": "^1.2.8",
 | 
				
			||||||
    "@pushrocks/smartdelay": "^2.0.1",
 | 
					    "@pushrocks/smartdelay": "^2.0.6",
 | 
				
			||||||
    "@pushrocks/tapbundle": "^3.0.1"
 | 
					    "@pushrocks/tapbundle": "^3.2.1",
 | 
				
			||||||
 | 
					    "tslint": "^6.1.2",
 | 
				
			||||||
 | 
					    "tslint-config-prettier": "^1.18.0"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@pushrocks/consolecolor": "^2.0.1",
 | 
					    "@pushrocks/consolecolor": "^2.0.1",
 | 
				
			||||||
    "@pushrocks/smartpromise": "^2.0.5"
 | 
					    "@pushrocks/smartpromise": "^3.0.6"
 | 
				
			||||||
  }
 | 
					  },
 | 
				
			||||||
 | 
					  "files": [
 | 
				
			||||||
 | 
					    "ts/**/*",
 | 
				
			||||||
 | 
					    "ts_web/**/*",
 | 
				
			||||||
 | 
					    "dist/**/*",
 | 
				
			||||||
 | 
					    "dist_*/**/*",
 | 
				
			||||||
 | 
					    "dist_ts/**/*",
 | 
				
			||||||
 | 
					    "dist_ts_web/**/*",
 | 
				
			||||||
 | 
					    "assets/**/*",
 | 
				
			||||||
 | 
					    "cli.js",
 | 
				
			||||||
 | 
					    "npmextra.json",
 | 
				
			||||||
 | 
					    "readme.md"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										10
									
								
								ts/index.ts
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ts/index.ts
									
									
									
									
									
								
							@@ -19,7 +19,7 @@ export let start = function(moduleNameArg: string = '', loaderLengthArg: string
 | 
				
			|||||||
  moduleName = moduleNameArg;
 | 
					  moduleName = moduleNameArg;
 | 
				
			||||||
  startHrt = new HrtMeasurement();
 | 
					  startHrt = new HrtMeasurement();
 | 
				
			||||||
  startHrt.start();
 | 
					  startHrt.start();
 | 
				
			||||||
  if (doText) {
 | 
					  if (doText && process.env.CLI_CALL_MODULENAME === moduleName) {
 | 
				
			||||||
    console.log(`**** starting ${consolecolor.coloredString(moduleNameArg, 'green')} ****`);
 | 
					    console.log(`**** starting ${consolecolor.coloredString(moduleNameArg, 'green')} ****`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@@ -28,9 +28,15 @@ export let stop = (): Promise<number> => {
 | 
				
			|||||||
  let done = smartpromise.defer<number>();
 | 
					  let done = smartpromise.defer<number>();
 | 
				
			||||||
  let earlyExecutionTime = startHrt.stop().milliSeconds;
 | 
					  let earlyExecutionTime = startHrt.stop().milliSeconds;
 | 
				
			||||||
  let earlyExecutionTimeString: string = (earlyExecutionTime / 1000).toString();
 | 
					  let earlyExecutionTimeString: string = (earlyExecutionTime / 1000).toString();
 | 
				
			||||||
 | 
					  if (doText && process.env.CLI_CALL_MODULENAME === moduleName) {
 | 
				
			||||||
    console.log(
 | 
					    console.log(
 | 
				
			||||||
    `OK! -> finished loading within ${consolecolor.coloredString(earlyExecutionTimeString, 'blue')}`
 | 
					      `OK! -> finished loading within ${consolecolor.coloredString(
 | 
				
			||||||
 | 
					        earlyExecutionTimeString,
 | 
				
			||||||
 | 
					        'blue'
 | 
				
			||||||
 | 
					      )}`
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  done.resolve(earlyExecutionTime);
 | 
					  done.resolve(earlyExecutionTime);
 | 
				
			||||||
  return done.promise;
 | 
					  return done.promise;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										16
									
								
								tslint.json
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								tslint.json
									
									
									
									
									
								
							@@ -1,3 +1,17 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "extends": "tslint-config-standard"
 | 
					  "extends": ["tslint:latest", "tslint-config-prettier"],
 | 
				
			||||||
 | 
					  "rules": {
 | 
				
			||||||
 | 
					    "semicolon": [true, "always"],
 | 
				
			||||||
 | 
					    "no-console": false,
 | 
				
			||||||
 | 
					    "ordered-imports": false,
 | 
				
			||||||
 | 
					    "object-literal-sort-keys": false,
 | 
				
			||||||
 | 
					    "member-ordering": {
 | 
				
			||||||
 | 
					      "options":{
 | 
				
			||||||
 | 
					        "order": [
 | 
				
			||||||
 | 
					          "static-method"
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "defaultSeverity": "warning"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user