Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
628b86cf3d | |||
d0c6ebb0df | |||
dd8c30e7cf | |||
8f861d86c9 | |||
fe2581b533 | |||
db906cea1a | |||
9c1dca9ace | |||
c620549476 | |||
90697584d7 | |||
1252fa8f97 |
@ -1,5 +1,5 @@
|
|||||||
# gitzone ci_default
|
# gitzone ci_default
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -49,23 +49,11 @@ testLTS:
|
|||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
testSTABLE:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
|
||||||
- npmci npm install
|
|
||||||
- npmci npm test
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install lts
|
||||||
- npmci npm publish
|
- npmci npm publish
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tools",
|
"name": "@gitzone/tools",
|
||||||
"version": "2.0.4",
|
"version": "2.0.9",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tools",
|
"name": "@gitzone/tools",
|
||||||
"version": "2.0.4",
|
"version": "2.0.9",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "setup your environment with the most important tools and update them easily.",
|
"description": "setup your environment with the most important tools and update them easily.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -2,7 +2,6 @@ import { expect, tap } from '@pushrocks/tapbundle';
|
|||||||
|
|
||||||
import * as tools from '../ts/tools.install';
|
import * as tools from '../ts/tools.install';
|
||||||
|
|
||||||
|
|
||||||
tap.test("should install default list globally when parsed 'default' as argument", async () => {
|
tap.test("should install default list globally when parsed 'default' as argument", async () => {
|
||||||
await tools.install('default');
|
await tools.install('default');
|
||||||
});
|
});
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
import plugins = require('./tools.plugins');
|
import plugins = require('./tools.plugins');
|
||||||
import * as cli from './tools.cli';
|
import * as cli from './tools.cli';
|
||||||
|
cli.run();
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import * as plugins from './tools.plugins';
|
import * as plugins from './tools.plugins';
|
||||||
import * as toolsInstall from './tools.install';
|
import * as toolsInstall from './tools.install';
|
||||||
|
|
||||||
const toolsCli = new plugins.smartcli.Smartcli();
|
export const run = async () => {
|
||||||
|
const toolsCli = new plugins.smartcli.Smartcli();
|
||||||
|
|
||||||
toolsCli.addCommand('install').subscribe(async argvArg => {
|
toolsCli.addCommand('install').subscribe(async argvArg => {
|
||||||
toolsInstall.install('default');
|
toolsInstall.install('default');
|
||||||
});
|
});
|
||||||
|
|
||||||
toolsCli.addVersion('no version set');
|
toolsCli.addVersion('no version set');
|
||||||
toolsCli.startParse();
|
toolsCli.startParse();
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user