update dependencies and restructure code

This commit is contained in:
Philipp Kunz 2016-06-09 01:38:22 +02:00
parent bb926b7319
commit a7035a56fc
7 changed files with 50 additions and 34 deletions

37
.gitlab-ci.yml Normal file
View 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

View File

@ -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

View File

@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/pushrocks/projectinfo.git"
"url": "git+https://gitlab.com/pushrocks/projectinfo.git"
},
"keywords": [
"project",
@ -20,9 +20,9 @@
"author": "Lossless GmbH",
"license": "MIT",
"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": {
"npmts": "^3.1.2",
"should": "^8.2.2"
@ -30,6 +30,7 @@
"dependencies": {
"q": "^1.4.1",
"smartfile": "0.0.11",
"smartstring": "0.0.2"
"smartstring": "0.0.2",
"typings-global": "^1.0.3"
}
}

View File

@ -2,10 +2,11 @@
import plugins = require("./projectinfo.plugins");
var projectinfo:any = {};
//classes
import ProjectinfoNPM = require("./projectinfo.npm");
projectinfo.npm = function(cwdArg,optionsArg){
return new ProjectinfoNPM(cwdArg,optionsArg);
//npm
import {ProjectinfoNpm} from "./projectinfo.classes.npm";
export {ProjectinfoNpm} from "./projectinfo.classes.npm";
export let npm = function(cwdArg,optionsArg){
return new ProjectinfoNpm(cwdArg,optionsArg);
};
//quick functions
@ -24,6 +25,4 @@ projectinfo.git = function(){
projectinfo.mojo = function(){
};
*/
export = projectinfo;
*/

View File

View File

@ -1,6 +1,6 @@
/// <reference path="./typings/main.d.ts" />
import plugins = require("./projectinfo.plugins");
class ProjectinfoNPM {
export class ProjectinfoNpm {
packageJson;
name:string;
version:string;
@ -24,6 +24,4 @@ class ProjectinfoNPM {
};
};
}
export = ProjectinfoNPM;
}

View File

@ -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"
}
}