slush-node-typescript v0.4.3
slush-node-typescript
A slush generator for Node.js and TypeScript.
Getting Started
Installation
Install slush-node-typescript globally:
$ npm i -g slush-node-typescriptRemember to install slush globally as well, if you haven't already:
$ npm i -g slushUsage
Create a new folder for your node esnext package. Then cd into it.
$ mkdir node-typescript-package && cd node-typescript-packageInitiate the generator:
$ slush node-typescriptTasks
generate
$ slush node-typescript:generate foo/barWill generate src/foo/bar.ts and test/src/foo/bar_test.ts to your package.
Conventions
The generator expects a few conventions. They are easy to change if they are not suitable.
- Source code for your npm package is in the
srcdirectory. - Test code is in the
testdirectory. - Compiled JavaScript code is outputed to the
libdirectory. - The package
mainmodule is located atlib/{packageName}.js.
Getting To Know Slush
Slush is a tool that uses Gulp for project scaffolding.
Slush does not contain anything "out of the box", except the ability to locate installed slush generators and to run them with liftoff.
To find out more about Slush, check out the documentation.
License
MIT
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago