update
This commit is contained in:
parent
ea793f9556
commit
3b69350ce2
9
index.js
9
index.js
@ -21,12 +21,19 @@ plugins.gulp.task("indexTS", function () {
|
||||
});
|
||||
plugins.gulp.task("indexTS", function () {
|
||||
plugins.gulp.src(paths.indexTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "index.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd));
|
||||
});
|
||||
plugins.gulp.task("testTS", function () {
|
||||
plugins.gulp.src(paths.testTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "test.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd));
|
||||
});
|
||||
plugins.gulp.task("default", ["indexTS"], function () {
|
||||
plugins.gulp.task("default", ["indexTS", "testTS"], function () {
|
||||
plugins.beautylog.success("TypeScript for this module was compiled successfully.");
|
||||
});
|
||||
plugins.gulp.start.apply(plugins.gulp, ['default']);
|
||||
|
11
test/node_modules/npmts/package.json
generated
vendored
11
test/node_modules/npmts/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "npmts",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.6",
|
||||
"description": "write npm modules with TypeScript",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
@ -8,6 +8,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "(cd compile && node compile.js)",
|
||||
"release": "(git add -A && git commit -m 'update' && git push origin master && npm version patch && npm publish)",
|
||||
"testm": "(cd test/ && npm update && npm test)"
|
||||
},
|
||||
"repository": {
|
||||
@ -34,9 +35,9 @@
|
||||
"gulp-typescript": "^2.10.0",
|
||||
"smartcli": "0.0.11"
|
||||
},
|
||||
"gitHead": "39b7fe99c7ba1d5299c4a7d61f1dad52ee0fb561",
|
||||
"gitHead": "ea793f9556a074c20e945284b9b3c24af8e9b222",
|
||||
"readme": "ERROR: No README data found!",
|
||||
"_id": "npmts@0.0.5",
|
||||
"_shasum": "f38b99c06a047aec650770b891c588b1cec03db0",
|
||||
"_from": "npmts@0.0.5"
|
||||
"_id": "npmts@0.0.6",
|
||||
"_shasum": "6a9fe8963240a8443bb5cc152092ba9a0f929b70",
|
||||
"_from": "npmts@0.0.6"
|
||||
}
|
||||
|
3
test/test.js
Normal file
3
test/test.js
Normal file
@ -0,0 +1,3 @@
|
||||
(function () {
|
||||
console.log("test");
|
||||
}());
|
@ -19,12 +19,19 @@ plugins.gulp.task("indexTS", function () {
|
||||
});
|
||||
plugins.gulp.task("indexTS", function () {
|
||||
plugins.gulp.src(paths.indexTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "index.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd));
|
||||
});
|
||||
plugins.gulp.task("testTS", function () {
|
||||
plugins.gulp.src(paths.testTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "test.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd));
|
||||
});
|
||||
plugins.gulp.task("default", ["indexTS"], function () {
|
||||
plugins.gulp.task("default", ["indexTS", "testTS"], function () {
|
||||
plugins.beautylog.success("TypeScript for this module was compiled successfully.");
|
||||
});
|
||||
plugins.gulp.start.apply(plugins.gulp, ['default']);
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,IAAI,OAAO,GAAG;IACV,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC,iBAAiB,CAAC;IAC1C,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC;CAChC,CAAC;AAEF,IAAI,KAAK,GAAO,EAAE,CAAC;AACnB,KAAK,CAAC,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAA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AAEH,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;IACxB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;SACzB,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QACzB,GAAG,EAAE,SAAS;KACjB,CAAC,CAAC;SACF,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;AAC3C,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,CAAC,SAAS,EAAC,QAAQ,CAAC,EAAC;IAC9C,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,uDAAuD,CAAC,CAAC;AACtF,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
10
ts/index.ts
10
ts/index.ts
@ -22,13 +22,21 @@ plugins.gulp.task("indexTS", function(){
|
||||
|
||||
plugins.gulp.task("indexTS", function(){
|
||||
plugins.gulp.src(paths.indexTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "index.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd))
|
||||
});
|
||||
|
||||
plugins.gulp.task("testTS", function(){
|
||||
plugins.gulp.src(paths.testTS)
|
||||
.pipe(plugins.gulpTypeScript({
|
||||
out: "test.js"
|
||||
}))
|
||||
.pipe(plugins.gulp.dest(paths.cwd))
|
||||
});
|
||||
|
||||
plugins.gulp.task("default",["indexTS"],function(){
|
||||
plugins.gulp.task("default",["indexTS","testTS"],function(){
|
||||
plugins.beautylog.success("TypeScript for this module was compiled successfully.");
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user