update dependencies and restructure code
This commit is contained in:
parent
bb926b7319
commit
a7035a56fc
37
.gitlab-ci.yml
Normal file
37
.gitlab-ci.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
image: hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
- page
|
||||||
|
|
||||||
|
testLEGACY:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test legacy
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
testLTS:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test lts
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
testSTABLE:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci test stable
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- npmci publish
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- docker
|
12
.travis.yml
12
.travis.yml
@ -1,12 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- 'v4.2.6'
|
|
||||||
- 'stable'
|
|
||||||
deploy:
|
|
||||||
provider: npm
|
|
||||||
email: npm@lossless.digital
|
|
||||||
api_key:
|
|
||||||
secure: G2ZQYeDEokGCWQcXeT9SJ4aUF0uZ41B1kM9WD7hZKMGM5hzbGSTXjd/bLWf2HfujvN9FWQYVv0y5OpbRck4xTuEDBPmC5AqXCfrtNj77n151VLO0cF4+Ya1l8OQWvw13hX+cux8UfxRVHUAxUt7CoW3q6FBO/vt1Mvo9u9ucxKdB4QHXmPdq8TwuFusPJYC+l2LdWiaSCEz2LpnyrDf6OjLl2Bt+8rID3Ikbi+5yXWv/n7bfiXyIlpJX/i4Efh/mqsSWp+ziVWaSdKdpYMFPxqyOfqQ/kjbzLCwdR72cD3+UoJPdGQ46Vq3ncZRq3KighWkYRzN76EOTI/quzfcAoz5CekETPh419lPuqs2w8wEeE2oP0yCCSH1SG1ljH8ASrADWsoHzWyVa8c/ovzWMOc3hgLey6xgbYVar0sC94bjjqJh8Y5qOak4idOpI/SXf0UT1TkirZTGfdSgRzg/E1Zqj262sxLeIv0yHsbnzgwUduj6PjfLztgLVAGO13csxksUSiKxT8Mbbqozv1sdz/0SgoZTMYfZSO5kYdBCqguJkJdEj1Dr4tM/0ca+mugHibavQxPJiWqnfNqxdlmywpzPHPHe5G2wzba2W62l3yPHF4rJBJuUi35ddWWOkAN1g9D2NHlByWfqF+WYRuTv1DPlw7ZpmgEVPPUlBPhC5YO8=
|
|
||||||
on:
|
|
||||||
tags: true
|
|
||||||
repo: pushrocks/projectinfo
|
|
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/pushrocks/projectinfo.git"
|
"url": "git+https://gitlab.com/pushrocks/projectinfo.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"project",
|
"project",
|
||||||
@ -20,9 +20,9 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/pushrocks/projectinfo/issues"
|
"url": "https://gitlab.com/pushrocks/projectinfo/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/projectinfo#readme",
|
"homepage": "https://gitlab.com/pushrocks/projectinfo#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts": "^3.1.2",
|
"npmts": "^3.1.2",
|
||||||
"should": "^8.2.2"
|
"should": "^8.2.2"
|
||||||
@ -30,6 +30,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"smartfile": "0.0.11",
|
"smartfile": "0.0.11",
|
||||||
"smartstring": "0.0.2"
|
"smartstring": "0.0.2",
|
||||||
|
"typings-global": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
ts/index.ts
11
ts/index.ts
@ -2,10 +2,11 @@
|
|||||||
import plugins = require("./projectinfo.plugins");
|
import plugins = require("./projectinfo.plugins");
|
||||||
var projectinfo:any = {};
|
var projectinfo:any = {};
|
||||||
|
|
||||||
//classes
|
//npm
|
||||||
import ProjectinfoNPM = require("./projectinfo.npm");
|
import {ProjectinfoNpm} from "./projectinfo.classes.npm";
|
||||||
projectinfo.npm = function(cwdArg,optionsArg){
|
export {ProjectinfoNpm} from "./projectinfo.classes.npm";
|
||||||
return new ProjectinfoNPM(cwdArg,optionsArg);
|
export let npm = function(cwdArg,optionsArg){
|
||||||
|
return new ProjectinfoNpm(cwdArg,optionsArg);
|
||||||
};
|
};
|
||||||
|
|
||||||
//quick functions
|
//quick functions
|
||||||
@ -25,5 +26,3 @@ projectinfo.mojo = function(){
|
|||||||
|
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export = projectinfo;
|
|
0
ts/projectinfi.classes.git.ts
Normal file
0
ts/projectinfi.classes.git.ts
Normal file
@ -1,6 +1,6 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
import plugins = require("./projectinfo.plugins");
|
import plugins = require("./projectinfo.plugins");
|
||||||
class ProjectinfoNPM {
|
export class ProjectinfoNpm {
|
||||||
packageJson;
|
packageJson;
|
||||||
name:string;
|
name:string;
|
||||||
version:string;
|
version:string;
|
||||||
@ -25,5 +25,3 @@ class ProjectinfoNPM {
|
|||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export = ProjectinfoNPM;
|
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"ambientDependencies": {
|
|
||||||
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts",
|
|
||||||
"mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts",
|
|
||||||
"colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user