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": { "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"
} }
} }

View File

@ -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
@ -24,6 +25,4 @@ projectinfo.git = function(){
projectinfo.mojo = function(){ projectinfo.mojo = function(){
}; };
*/ */
export = projectinfo;

View File

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