Compare commits

12 Commits

Author SHA1 Message Date
111ef1fe44 2.0.4 2022-06-01 20:29:14 +02:00
97b285be5c fix(core): update 2022-06-01 20:29:13 +02:00
cc659a57f7 2.0.3 2022-04-13 16:54:41 +02:00
f5cb86b53e fix(core): update 2022-04-13 16:54:40 +02:00
207f1e9d51 2.0.2 2022-04-13 16:20:55 +02:00
750b029ef8 update 2022-04-13 16:20:51 +02:00
710fd5ec2e 2.0.1 2022-04-13 16:15:26 +02:00
d1315392a1 update 2022-04-13 16:15:23 +02:00
cf894d9e82 2.0.0 2022-04-13 16:02:33 +02:00
1da4e08ed2 BREAKING CHANGE(core): switch to esm 2022-04-13 16:02:29 +02:00
66546a8b17 1.0.31 2020-06-25 21:14:08 +00:00
3c3275ece5 fix(core): update 2020-06-25 21:14:07 +00:00
12 changed files with 11686 additions and 4370 deletions

View File

@ -12,6 +12,9 @@ stages:
- release - release
- metadata - metadata
before_script:
- npm install -g @shipzone/npmci
# ==================== # ====================
# security stage # security stage
# ==================== # ====================
@ -19,23 +22,36 @@ mirror:
stage: security stage: security
script: script:
- npmci git mirror - npmci git mirror
only:
- tags
tags: tags:
- lossless - lossless
- docker - docker
- notpriv - 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 image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - 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: tags:
- lossless
- docker - docker
- notpriv allow_failure: true
# ==================== # ====================
# test stage # test stage
@ -50,9 +66,7 @@ testStable:
- npmci npm test - npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- priv
testBuild: testBuild:
stage: test stage: test
@ -63,9 +77,7 @@ testBuild:
- npmci command npm run build - npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- notpriv
release: release:
stage: release stage: release
@ -85,11 +97,12 @@ release:
codequality: codequality:
stage: metadata stage: metadata
allow_failure: true allow_failure: true
only:
- tags
script: script:
- npmci command npm install -g tslint typescript - npmci command npm install -g typescript
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags: tags:
- lossless - lossless
- docker - docker

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "current file", "command": "npm test",
"type": "node", "name": "Run npm test",
"request": "launch", "request": "launch",
"args": [ "type": "node-terminal"
"${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"
} }
] ]
} }

View File

@ -15,7 +15,7 @@
"properties": { "properties": {
"projectType": { "projectType": {
"type": "string", "type": "string",
"enum": ["website", "element", "service", "npm"] "enum": ["website", "element", "service", "npm", "wcc"]
} }
} }
} }

View File

@ -9,7 +9,7 @@
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "pushrocks", "gitscope": "pushrocks",
"gitrepo": "smartupdate", "gitrepo": "smartupdate",
"shortDescription": "update your tools in a smart way", "description": "update your tools in a smart way",
"npmPackagename": "@pushrocks/smartupdate", "npmPackagename": "@pushrocks/smartupdate",
"license": "MIT" "license": "MIT"
} }

15680
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,32 +1,31 @@
{ {
"name": "@pushrocks/smartupdate", "name": "@pushrocks/smartupdate",
"version": "1.0.30", "version": "2.0.4",
"private": false, "private": false,
"description": "update your tools in a smart way", "description": "update your tools in a smart way",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild)" "build": "(tsbuild --web --allowimplicitany)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.24", "@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsrun": "^1.2.12", "@gitzone/tsrun": "^1.2.34",
"@gitzone/tstest": "^1.0.33", "@gitzone/tstest": "^1.0.71",
"@pushrocks/tapbundle": "^3.2.1", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^14.0.14", "@types/node": "^17.0.38"
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0"
}, },
"dependencies": { "dependencies": {
"@pushrocks/consolecolor": "^2.0.1", "@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/npmextra": "^3.0.7", "@pushrocks/npmextra": "^3.0.9",
"@pushrocks/smartnpm": "^1.0.17", "@pushrocks/smartnpm": "^2.0.0",
"@pushrocks/smartopen": "^1.0.22", "@pushrocks/smartopen": "^2.0.0",
"@pushrocks/smarttime": "^3.0.18", "@pushrocks/smarttime": "^3.0.45",
"@pushrocks/smartversion": "^2.0.4" "@pushrocks/smartversion": "^3.0.2"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",
@ -39,5 +38,8 @@
"cli.js", "cli.js",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
],
"browserslist": [
"last 1 chrome versions"
] ]
} }

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@pushrocks/tapbundle';
import * as smartupdate from '../ts/index'; import * as smartupdate from '../ts/index.js';
let testSmartUpdate: smartupdate.SmartUpdate; let testSmartUpdate: smartupdate.SmartUpdate;
@ -8,7 +8,8 @@ tap.test('should create an instance of SmartUpdate', async () => {
}); });
tap.test('should check for a npm module', async () => { tap.test('should check for a npm module', async () => {
await testSmartUpdate.check('lodash', '1.0.5'); const result = await testSmartUpdate.check('lodash', '1.0.5');
expect(result).toBeTrue();
}); });
tap.start(); tap.start();

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartupdate',
version: '2.0.4',
description: 'update your tools in a smart way'
}

View File

@ -1 +1 @@
export { SmartUpdate } from './smartupdate.classes.smartupdate'; export { SmartUpdate } from './smartupdate.classes.smartupdate.js';

View File

@ -1,4 +1,4 @@
import * as plugins from './smartupdate.plugins'; import * as plugins from './smartupdate.plugins.js';
import { TimeStamp } from '@pushrocks/smarttime'; import { TimeStamp } from '@pushrocks/smarttime';
@ -24,7 +24,7 @@ export class SmartUpdate {
const newCacheData: ICacheStatus = { const newCacheData: ICacheStatus = {
lastCheck: timeStamp.milliSeconds, lastCheck: timeStamp.milliSeconds,
latestVersion: 'x.x.x', latestVersion: 'x.x.x',
performedUpgrade: false performedUpgrade: false,
}; };
// the comparison data from the keyValue store // the comparison data from the keyValue store

9
tsconfig.json Normal file
View File

@ -0,0 +1,9 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext"
}
}

View File

@ -1,17 +0,0 @@
{
"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"
}