create README-dev
This commit is contained in:
parent
ef314f5b2d
commit
ee69817038
1
README-dev.md
Normal file
1
README-dev.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# README-dev
|
@ -1,5 +1,5 @@
|
|||||||
# npmts
|
# npmts
|
||||||
Write npm modules with TypeScript withour hassle.
|
Write npm modules with TypeScript without hassle.
|
||||||
|
|
||||||
## How to use npmts
|
## How to use npmts
|
||||||
|
|
||||||
@ -19,5 +19,8 @@ Then use it in package.json's script section to trigger a build:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Default behaviour
|
### Default behaviour
|
||||||
by default npmts looks in your `./ts/` directory for an `index.ts` and a `test.ts` that will compile to
|
by default npmts looks for an `./ts/index.ts` and a `./ts/test.ts` that will compile to
|
||||||
./index.js and ./test.js
|
`./index.js` and `./test.js`
|
||||||
|
|
||||||
|
## Dev Readme
|
||||||
|
There is a dev [README-dev.md](README-dev.md) in the repo.
|
@ -10,8 +10,6 @@ var paths = {};
|
|||||||
paths.cwd = plugins.smartcli.get.cwd().path;
|
paths.cwd = plugins.smartcli.get.cwd().path;
|
||||||
paths.indexTS = plugins.path.join(paths.cwd, "ts/index.ts");
|
paths.indexTS = plugins.path.join(paths.cwd, "ts/index.ts");
|
||||||
paths.testTS = plugins.path.join(paths.cwd, "ts/test.ts");
|
paths.testTS = plugins.path.join(paths.cwd, "ts/test.ts");
|
||||||
|
|
||||||
|
|
||||||
plugins.gulp.task("indexTS", function () {
|
plugins.gulp.task("indexTS", function () {
|
||||||
plugins.gulp.src(paths.indexTS)
|
plugins.gulp.src(paths.indexTS)
|
||||||
.pipe(plugins.gulpTypeScript({
|
.pipe(plugins.gulpTypeScript({
|
||||||
|
1
ts/npmts.default.js
Normal file
1
ts/npmts.default.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
//# sourceMappingURL=npmts.default.js.map
|
1
ts/npmts.default.js.map
Normal file
1
ts/npmts.default.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"npmts.default.js","sourceRoot":"","sources":["npmts.default.ts"],"names":[],"mappings":""}
|
Loading…
Reference in New Issue
Block a user