Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
36c002581a | |||
db1cfe4746 | |||
2c254a2ecf | |||
425bc6150a |
7
dist/npmts.configfile.js
vendored
7
dist/npmts.configfile.js
vendored
@ -8,12 +8,17 @@ exports.run = function (argvArg) {
|
|||||||
npmts_promisechain_1.npmtsOra.text("looking for npmextra.json");
|
npmts_promisechain_1.npmtsOra.text("looking for npmextra.json");
|
||||||
var defaultConfig = {
|
var defaultConfig = {
|
||||||
mode: "default",
|
mode: "default",
|
||||||
notest: false
|
notest: false,
|
||||||
|
nodocs: false
|
||||||
};
|
};
|
||||||
if (argvArg.notest) {
|
if (argvArg.notest) {
|
||||||
defaultConfig.notest = true;
|
defaultConfig.notest = true;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
if (argvArg.nodocs) {
|
||||||
|
defaultConfig.nodocs = true;
|
||||||
|
}
|
||||||
|
;
|
||||||
var config = plugins.npmextra.dataFor({
|
var config = plugins.npmextra.dataFor({
|
||||||
toolName: "npmts",
|
toolName: "npmts",
|
||||||
defaultSettings: defaultConfig,
|
defaultSettings: defaultConfig,
|
||||||
|
2
dist/npmts.tests.js
vendored
2
dist/npmts.tests.js
vendored
@ -25,7 +25,7 @@ var mocha = function (configArg) {
|
|||||||
plugins.gulp.src([plugins.path.join(paths.cwd, "test/test.js")])
|
plugins.gulp.src([plugins.path.join(paths.cwd, "test/test.js")])
|
||||||
.pipe(plugins.g.babel({
|
.pipe(plugins.g.babel({
|
||||||
presets: [
|
presets: [
|
||||||
plugins.path.join(paths.npmtsPackageRoot, "node_modules/babel-preset-es2015/index.js")
|
require.resolve("babel-preset-es2015")
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.g.injectModules())
|
.pipe(plugins.g.injectModules())
|
||||||
|
6
dist/npmts.typedoc.js
vendored
6
dist/npmts.typedoc.js
vendored
@ -27,9 +27,15 @@ var genTypeDoc = function (configArg) {
|
|||||||
};
|
};
|
||||||
exports.run = function (configArg) {
|
exports.run = function (configArg) {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
|
if (configArg.nodocs) {
|
||||||
|
done.resolve(configArg);
|
||||||
|
}
|
||||||
|
else {
|
||||||
genTypeDoc(configArg)
|
genTypeDoc(configArg)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
;
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "5.4.4",
|
"version": "5.4.6",
|
||||||
"description": "Write npm modules with TypeScript without hassle. TypeScript ready. Fully ES6.",
|
"description": "Write npm modules with TypeScript without hassle. TypeScript ready. Fully ES6.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"npmts": "dist/cli.js"
|
"npmts": "dist/cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npm run compile && npm run setupCheck && npm run check && npm run checkVersion && npm run checkNoTest)",
|
"test": "(npm run compile && npm run setupCheck && npm run check && npm run checkVersion && npm run checkNoTest && npm run checkNoDocs)",
|
||||||
"compile": "(rm -rf test/ && rm -r dist/ && mkdir dist/ && tsc && cp assets/cli.js dist/ )",
|
"compile": "(rm -rf test/ && rm -r dist/ && mkdir dist/ && tsc && cp assets/cli.js dist/ )",
|
||||||
"setupCheck": "(git clone https://gitlab.com/sandboxzone/sandbox-npmts.git test/)",
|
"setupCheck": "(git clone https://gitlab.com/sandboxzone/sandbox-npmts.git test/)",
|
||||||
"check": "(cd test && node ../dist/index.js)",
|
"check": "(cd test && npm install && node ../dist/index.js)",
|
||||||
"checkVersion": "(cd test/ && node ../dist/index.js -v)",
|
"checkVersion": "(cd test/ && node ../dist/index.js -v)",
|
||||||
"checkNoTest": "(cd test && node ../dist/index.js --notest)"
|
"checkNoTest": "(cd test && node ../dist/index.js --notest)",
|
||||||
|
"checkNoDocs": "(cd test && node ../dist/index.js --nodocs)"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -7,11 +7,15 @@ export var run = function(argvArg){
|
|||||||
npmtsOra.text("looking for npmextra.json");
|
npmtsOra.text("looking for npmextra.json");
|
||||||
let defaultConfig = {
|
let defaultConfig = {
|
||||||
mode: "default",
|
mode: "default",
|
||||||
notest:false
|
notest:false,
|
||||||
|
nodocs:false
|
||||||
};
|
};
|
||||||
if(argvArg.notest){
|
if(argvArg.notest){
|
||||||
defaultConfig.notest = true;
|
defaultConfig.notest = true;
|
||||||
};
|
};
|
||||||
|
if(argvArg.nodocs){
|
||||||
|
defaultConfig.nodocs = true;
|
||||||
|
};
|
||||||
let config = plugins.npmextra.dataFor({
|
let config = plugins.npmextra.dataFor({
|
||||||
toolName:"npmts",
|
toolName:"npmts",
|
||||||
defaultSettings:defaultConfig,
|
defaultSettings:defaultConfig,
|
||||||
|
@ -26,7 +26,7 @@ let mocha = function (configArg) {
|
|||||||
plugins.gulp.src([plugins.path.join(paths.cwd,"test/test.js")])
|
plugins.gulp.src([plugins.path.join(paths.cwd,"test/test.js")])
|
||||||
.pipe(plugins.g.babel({
|
.pipe(plugins.g.babel({
|
||||||
presets: [
|
presets: [
|
||||||
plugins.path.join(paths.npmtsPackageRoot,"node_modules/babel-preset-es2015/index.js")
|
require.resolve("babel-preset-es2015")
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
.pipe(plugins.g.injectModules())
|
.pipe(plugins.g.injectModules())
|
||||||
|
@ -32,9 +32,13 @@ let genTypeDoc = function(configArg){
|
|||||||
|
|
||||||
export let run = function (configArg) {
|
export let run = function (configArg) {
|
||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
|
if (configArg.nodocs) {
|
||||||
|
done.resolve(configArg);
|
||||||
|
} else {
|
||||||
genTypeDoc(configArg)
|
genTypeDoc(configArg)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
});
|
});
|
||||||
|
};
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
Reference in New Issue
Block a user