update dependencies
This commit is contained in:
parent
69742fd6a7
commit
4f93ef3fb2
18
dist/npmts.plugins.d.ts
vendored
18
dist/npmts.plugins.d.ts
vendored
@ -2,15 +2,13 @@ import 'typings-global';
|
|||||||
import * as beautylog from 'beautylog';
|
import * as beautylog from 'beautylog';
|
||||||
declare let depcheck: any;
|
declare let depcheck: any;
|
||||||
import * as gulp from 'gulp';
|
import * as gulp from 'gulp';
|
||||||
declare let g: {
|
import * as gulpBabel from 'gulp-babel';
|
||||||
babel: any;
|
import * as gulpIstanbul from 'gulp-istanbul';
|
||||||
istanbul: any;
|
import * as gulpFunction from 'gulp-function';
|
||||||
gFunction: any;
|
declare let gulpInjectModules: any;
|
||||||
injectModules: any;
|
import * as gulpMocha from 'gulp-mocha';
|
||||||
mocha: any;
|
import * as gulpSourcemaps from 'gulp-sourcemaps';
|
||||||
sourcemaps: any;
|
declare let gulpTypedoc: any;
|
||||||
typedoc: any;
|
|
||||||
};
|
|
||||||
import * as lodash from 'lodash';
|
import * as lodash from 'lodash';
|
||||||
import * as npmextra from 'npmextra';
|
import * as npmextra from 'npmextra';
|
||||||
import * as projectinfo from 'projectinfo';
|
import * as projectinfo from 'projectinfo';
|
||||||
@ -26,4 +24,4 @@ import * as smartstream from 'smartstream';
|
|||||||
import * as smartstring from 'smartstring';
|
import * as smartstring from 'smartstring';
|
||||||
export declare let sourceMapSupport: any;
|
export declare let sourceMapSupport: any;
|
||||||
import * as tsn from 'tsn';
|
import * as tsn from 'tsn';
|
||||||
export { beautylog, depcheck, gulp, g, lodash, npmextra, projectinfo, path, shelljs, smartchok, smartcli, smartcov, smartenv, smartfile, smartpath, smartstream, smartstring, tsn };
|
export { beautylog, depcheck, gulp, gulpBabel, gulpFunction, gulpInjectModules, gulpIstanbul, gulpMocha, gulpSourcemaps, gulpTypedoc, lodash, npmextra, projectinfo, path, shelljs, smartchok, smartcli, smartcov, smartenv, smartfile, smartpath, smartstream, smartstring, tsn };
|
||||||
|
24
dist/npmts.plugins.js
vendored
24
dist/npmts.plugins.js
vendored
@ -6,16 +6,20 @@ let depcheck = require('depcheck');
|
|||||||
exports.depcheck = depcheck;
|
exports.depcheck = depcheck;
|
||||||
const gulp = require("gulp");
|
const gulp = require("gulp");
|
||||||
exports.gulp = gulp;
|
exports.gulp = gulp;
|
||||||
let g = {
|
const gulpBabel = require("gulp-babel");
|
||||||
babel: require('gulp-babel'),
|
exports.gulpBabel = gulpBabel;
|
||||||
istanbul: require('gulp-istanbul'),
|
const gulpIstanbul = require("gulp-istanbul");
|
||||||
gFunction: require('gulp-function'),
|
exports.gulpIstanbul = gulpIstanbul;
|
||||||
injectModules: require('gulp-inject-modules'),
|
const gulpFunction = require("gulp-function");
|
||||||
mocha: require('gulp-mocha'),
|
exports.gulpFunction = gulpFunction;
|
||||||
sourcemaps: require('gulp-sourcemaps'),
|
let gulpInjectModules = require('gulp-inject-modules');
|
||||||
typedoc: require('gulp-typedoc')
|
exports.gulpInjectModules = gulpInjectModules;
|
||||||
};
|
const gulpMocha = require("gulp-mocha");
|
||||||
exports.g = g;
|
exports.gulpMocha = gulpMocha;
|
||||||
|
const gulpSourcemaps = require("gulp-sourcemaps");
|
||||||
|
exports.gulpSourcemaps = gulpSourcemaps;
|
||||||
|
let gulpTypedoc = require('gulp-typedoc');
|
||||||
|
exports.gulpTypedoc = gulpTypedoc;
|
||||||
const lodash = require("lodash");
|
const lodash = require("lodash");
|
||||||
exports.lodash = lodash;
|
exports.lodash = lodash;
|
||||||
const npmextra = require("npmextra");
|
const npmextra = require("npmextra");
|
||||||
|
18
dist/npmts.tests.js
vendored
18
dist/npmts.tests.js
vendored
@ -12,26 +12,26 @@ let mocha = function (configArg) {
|
|||||||
npmts_promisechain_1.npmtsOra.end(); // end npmtsOra for tests.
|
npmts_promisechain_1.npmtsOra.end(); // end npmtsOra for tests.
|
||||||
let done = q.defer();
|
let done = q.defer();
|
||||||
plugins.gulp.src([plugins.path.join(paths.cwd, 'dist/*.js')])
|
plugins.gulp.src([plugins.path.join(paths.cwd, 'dist/*.js')])
|
||||||
.pipe(plugins.g.sourcemaps.init())
|
.pipe(plugins.gulpSourcemaps.init())
|
||||||
.pipe(plugins.g.babel({
|
.pipe(plugins.gulpBabel({
|
||||||
presets: [
|
presets: [
|
||||||
require.resolve('babel-preset-es2015')
|
require.resolve('babel-preset-es2015')
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.g.istanbul({}))
|
.pipe(plugins.gulpIstanbul({}))
|
||||||
.pipe(plugins.g.sourcemaps.write())
|
.pipe(plugins.gulpSourcemaps.write())
|
||||||
.pipe(plugins.g.injectModules())
|
.pipe(plugins.gulpInjectModules())
|
||||||
.on('finish', function () {
|
.on('finish', function () {
|
||||||
let localSmartstream = new plugins.smartstream.Smartstream([
|
let localSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.gulp.src([plugins.path.join(paths.cwd, 'test/test.js')]),
|
plugins.gulp.src([plugins.path.join(paths.cwd, 'test/test.js')]),
|
||||||
plugins.g.babel({
|
plugins.gulpBabel({
|
||||||
presets: [
|
presets: [
|
||||||
require.resolve('babel-preset-es2015')
|
require.resolve('babel-preset-es2015')
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
plugins.g.injectModules(),
|
plugins.gulpInjectModules(),
|
||||||
plugins.g.mocha(),
|
plugins.gulpMocha(),
|
||||||
plugins.g.istanbul.writeReports({
|
plugins.gulpIstanbul.writeReports({
|
||||||
dir: plugins.path.join(paths.cwd, './coverage'),
|
dir: plugins.path.join(paths.cwd, './coverage'),
|
||||||
reporters: ['lcovonly', 'json', 'text', 'text-summary']
|
reporters: ['lcovonly', 'json', 'text', 'text-summary']
|
||||||
})
|
})
|
||||||
|
16
dist/npmts.typedoc.js
vendored
16
dist/npmts.typedoc.js
vendored
@ -8,8 +8,9 @@ let genTypeDoc = function (configArg) {
|
|||||||
let done = q.defer();
|
let done = q.defer();
|
||||||
npmts_promisechain_1.npmtsOra.text('now generating ' + 'TypeDoc documentation'.yellow);
|
npmts_promisechain_1.npmtsOra.text('now generating ' + 'TypeDoc documentation'.yellow);
|
||||||
plugins.beautylog.log('TypeDoc Output:');
|
plugins.beautylog.log('TypeDoc Output:');
|
||||||
plugins.gulp.src(plugins.path.join(paths.tsDir, '**/*.ts'))
|
let localSmartstream = new plugins.smartstream.Smartstream([
|
||||||
.pipe(plugins.g.typedoc({
|
plugins.gulp.src(plugins.path.join(paths.tsDir, '**/*.ts')),
|
||||||
|
plugins.gulpTypedoc({
|
||||||
// TypeScript options (see typescript docs)
|
// TypeScript options (see typescript docs)
|
||||||
module: 'commonjs',
|
module: 'commonjs',
|
||||||
target: 'es6',
|
target: 'es6',
|
||||||
@ -21,10 +22,15 @@ let genTypeDoc = function (configArg) {
|
|||||||
name: npmts_check_1.projectInfo.name,
|
name: npmts_check_1.projectInfo.name,
|
||||||
readme: plugins.path.join(paths.cwd, 'README.md'),
|
readme: plugins.path.join(paths.cwd, 'README.md'),
|
||||||
// theme: "default",
|
// theme: "default",
|
||||||
ignoreCompilerErrors: true,
|
|
||||||
version: true
|
version: true
|
||||||
}))
|
})
|
||||||
.pipe(plugins.g.gFunction(done.resolve, 'atEnd'));
|
]);
|
||||||
|
localSmartstream.run().then(() => {
|
||||||
|
done.resolve(configArg);
|
||||||
|
}, (err) => {
|
||||||
|
console.log(err);
|
||||||
|
done.resolve(configArg);
|
||||||
|
});
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
exports.run = function (configArg) {
|
exports.run = function (configArg) {
|
||||||
|
31
package.json
31
package.json
@ -35,39 +35,46 @@
|
|||||||
"homepage": "https://gitlab.com/pushrocks/npmts#readme",
|
"homepage": "https://gitlab.com/pushrocks/npmts#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/gulp": "^3.8.32",
|
"@types/gulp": "^3.8.32",
|
||||||
|
"@types/gulp-babel": "^6.1.29",
|
||||||
|
"@types/gulp-istanbul": "^0.9.30",
|
||||||
|
"@types/gulp-mocha": "0.0.29",
|
||||||
|
"@types/gulp-sourcemaps": "0.0.29",
|
||||||
"@types/minimatch": "^2.0.29",
|
"@types/minimatch": "^2.0.29",
|
||||||
"@types/q": "^0.x.x",
|
"@types/q": "^0.x.x",
|
||||||
"@types/shelljs": "^0.3.31",
|
"@types/shelljs": "^0.3.32",
|
||||||
"babel-preset-es2015": "^6.16.0",
|
"babel-preset-es2015": "^6.16.0",
|
||||||
"beautylog": "5.0.23",
|
"beautylog": "6.0.0",
|
||||||
"depcheck": "^0.6.4",
|
"depcheck": "^0.6.4",
|
||||||
"early": "^2.0.35",
|
"early": "^2.0.35",
|
||||||
"gulp": "3.9.1",
|
"gulp": "3.9.1",
|
||||||
"gulp-babel": "^6.1.2",
|
"gulp-babel": "^6.1.2",
|
||||||
"gulp-function": "^1.3.6",
|
"gulp-function": "^2.2.0",
|
||||||
"gulp-inject-modules": "^1.0.0",
|
"gulp-inject-modules": "^1.0.0",
|
||||||
"gulp-istanbul": "^1.1.1",
|
"gulp-istanbul": "^1.1.1",
|
||||||
"gulp-mocha": "^3.0.1",
|
"gulp-mocha": "^3.0.1",
|
||||||
"gulp-sourcemaps": "^1.6.0",
|
"gulp-sourcemaps": "^2.1.1",
|
||||||
"gulp-typedoc": "^2.0.0",
|
"gulp-typedoc": "^2.0.0",
|
||||||
"lodash": "^4.16.2",
|
"lodash": "^4.16.4",
|
||||||
"npmextra": "^2.0.3",
|
"npmextra": "^2.0.3",
|
||||||
"projectinfo": "1.0.3",
|
"projectinfo": "1.0.3",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"shelljs": "^0.7.4",
|
"shelljs": "^0.7.4",
|
||||||
"smartchok": "^1.0.2",
|
"smartchok": "^1.0.2",
|
||||||
"smartcli": "1.0.9",
|
"smartcli": "1.0.10",
|
||||||
"smartcov": "1.0.0",
|
"smartcov": "1.0.0",
|
||||||
"smartenv": "1.2.5",
|
"smartenv": "1.2.5",
|
||||||
"smartfile": "4.0.22",
|
"smartfile": "4.0.24",
|
||||||
"smartpath": "3.2.2",
|
"smartpath": "3.2.5",
|
||||||
"smartstream": "^1.0.5",
|
"smartstream": "^1.0.5",
|
||||||
"smartstring": "^2.0.17",
|
"smartstring": "^2.0.17",
|
||||||
"source-map-support": "^0.4.3",
|
"source-map-support": "^0.4.5",
|
||||||
"tsn": "^2.0.4",
|
"tsn": "^2.0.11",
|
||||||
"typedoc": "^0.4.5",
|
"typedoc": "^0.5.0",
|
||||||
"typescript": "next",
|
"typescript": "next",
|
||||||
"typings-global": "^1.0.14"
|
"typings-global": "^1.0.14"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {
|
||||||
|
"@types/should": "^8.1.30",
|
||||||
|
"should": "^11.1.1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,15 +2,15 @@ import 'typings-global'
|
|||||||
import * as beautylog from 'beautylog'
|
import * as beautylog from 'beautylog'
|
||||||
let depcheck = require('depcheck')
|
let depcheck = require('depcheck')
|
||||||
import * as gulp from 'gulp'
|
import * as gulp from 'gulp'
|
||||||
let g = {
|
|
||||||
babel: require('gulp-babel'),
|
import * as gulpBabel from 'gulp-babel'
|
||||||
istanbul: require('gulp-istanbul'),
|
import * as gulpIstanbul from 'gulp-istanbul'
|
||||||
gFunction: require('gulp-function'),
|
import * as gulpFunction from 'gulp-function'
|
||||||
injectModules: require('gulp-inject-modules'),
|
let gulpInjectModules = require('gulp-inject-modules')
|
||||||
mocha: require('gulp-mocha'),
|
import * as gulpMocha from 'gulp-mocha'
|
||||||
sourcemaps: require('gulp-sourcemaps'),
|
import * as gulpSourcemaps from 'gulp-sourcemaps'
|
||||||
typedoc: require('gulp-typedoc')
|
let gulpTypedoc = require('gulp-typedoc')
|
||||||
}
|
|
||||||
import * as lodash from 'lodash'
|
import * as lodash from 'lodash'
|
||||||
import * as npmextra from 'npmextra'
|
import * as npmextra from 'npmextra'
|
||||||
import * as projectinfo from 'projectinfo'
|
import * as projectinfo from 'projectinfo'
|
||||||
@ -31,7 +31,13 @@ export {
|
|||||||
beautylog,
|
beautylog,
|
||||||
depcheck,
|
depcheck,
|
||||||
gulp,
|
gulp,
|
||||||
g,
|
gulpBabel,
|
||||||
|
gulpFunction,
|
||||||
|
gulpInjectModules,
|
||||||
|
gulpIstanbul,
|
||||||
|
gulpMocha,
|
||||||
|
gulpSourcemaps,
|
||||||
|
gulpTypedoc,
|
||||||
lodash,
|
lodash,
|
||||||
npmextra,
|
npmextra,
|
||||||
projectinfo,
|
projectinfo,
|
||||||
|
@ -15,27 +15,27 @@ let mocha = function (configArg: INpmtsConfig) {
|
|||||||
npmtsOra.end() // end npmtsOra for tests.
|
npmtsOra.end() // end npmtsOra for tests.
|
||||||
let done = q.defer()
|
let done = q.defer()
|
||||||
plugins.gulp.src([plugins.path.join(paths.cwd, 'dist/*.js')])
|
plugins.gulp.src([plugins.path.join(paths.cwd, 'dist/*.js')])
|
||||||
.pipe(plugins.g.sourcemaps.init())
|
.pipe(plugins.gulpSourcemaps.init())
|
||||||
.pipe(plugins.g.babel({
|
.pipe(plugins.gulpBabel({
|
||||||
presets: [
|
presets: [
|
||||||
require.resolve('babel-preset-es2015')
|
require.resolve('babel-preset-es2015')
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.g.istanbul({
|
.pipe(plugins.gulpIstanbul({
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.g.sourcemaps.write())
|
.pipe(plugins.gulpSourcemaps.write())
|
||||||
.pipe(plugins.g.injectModules())
|
.pipe(plugins.gulpInjectModules())
|
||||||
.on('finish', function () {
|
.on('finish', function () {
|
||||||
let localSmartstream = new plugins.smartstream.Smartstream([
|
let localSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.gulp.src([plugins.path.join(paths.cwd, 'test/test.js')]),
|
plugins.gulp.src([plugins.path.join(paths.cwd, 'test/test.js')]),
|
||||||
plugins.g.babel({
|
plugins.gulpBabel({
|
||||||
presets: [
|
presets: [
|
||||||
require.resolve('babel-preset-es2015')
|
require.resolve('babel-preset-es2015')
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
plugins.g.injectModules(),
|
plugins.gulpInjectModules(),
|
||||||
plugins.g.mocha(),
|
plugins.gulpMocha(),
|
||||||
plugins.g.istanbul.writeReports({
|
plugins.gulpIstanbul.writeReports({
|
||||||
dir: plugins.path.join(paths.cwd, './coverage'),
|
dir: plugins.path.join(paths.cwd, './coverage'),
|
||||||
reporters: ['lcovonly', 'json', 'text', 'text-summary']
|
reporters: ['lcovonly', 'json', 'text', 'text-summary']
|
||||||
})
|
})
|
||||||
|
@ -10,8 +10,9 @@ let genTypeDoc = function (configArg) {
|
|||||||
let done = q.defer()
|
let done = q.defer()
|
||||||
npmtsOra.text('now generating ' + 'TypeDoc documentation'.yellow)
|
npmtsOra.text('now generating ' + 'TypeDoc documentation'.yellow)
|
||||||
plugins.beautylog.log('TypeDoc Output:')
|
plugins.beautylog.log('TypeDoc Output:')
|
||||||
plugins.gulp.src(plugins.path.join(paths.tsDir, '**/*.ts'))
|
let localSmartstream = new plugins.smartstream.Smartstream([
|
||||||
.pipe(plugins.g.typedoc({
|
plugins.gulp.src(plugins.path.join(paths.tsDir, '**/*.ts')),
|
||||||
|
plugins.gulpTypedoc({
|
||||||
// TypeScript options (see typescript docs)
|
// TypeScript options (see typescript docs)
|
||||||
module: 'commonjs',
|
module: 'commonjs',
|
||||||
target: 'es6',
|
target: 'es6',
|
||||||
@ -25,10 +26,18 @@ let genTypeDoc = function (configArg) {
|
|||||||
name: projectInfo.name,
|
name: projectInfo.name,
|
||||||
readme: plugins.path.join(paths.cwd, 'README.md'),
|
readme: plugins.path.join(paths.cwd, 'README.md'),
|
||||||
// theme: "default",
|
// theme: "default",
|
||||||
ignoreCompilerErrors: true,
|
|
||||||
version: true
|
version: true
|
||||||
}))
|
})
|
||||||
.pipe(plugins.g.gFunction(done.resolve, 'atEnd'))
|
])
|
||||||
|
localSmartstream.run().then(
|
||||||
|
() => {
|
||||||
|
done.resolve(configArg)
|
||||||
|
},
|
||||||
|
(err) => {
|
||||||
|
console.log(err)
|
||||||
|
done.resolve(configArg)
|
||||||
|
}
|
||||||
|
)
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user