Starting point to create projects based on typescript
Follow the instructions to start using the seed in the simplest way possible
- Get the seed/skeleton
git clone https://github.com/janux/typescript-seed.git
cd typescript-seed- Install dependencies and typescript definitions
# Install by running:
npm install && tsd install
# Note: if you don't have TypeScript Definition manager (TSD), please install by running:
npm install tsd -g- Look seed structure (Directory structure)
.
├── LICENSE
├── README.md
├── config
│ └── default.js
├── gulp
│ ├── clean.js
│ ├── doc.js
│ ├── scripts.js
│ └── test.js
├── src
│ ├── classExample.ts
│ └── collections.ts
├── test
│ ├── log4js.json
│ └── testExample.spec.js
├── dist
├── typings
│
├── .gitignore
├── gulpfile.js
├── index.js
├── package.json
└── tsd.json
srcTypescript source files for your projectdistUsed for the production build
- Compile typescript project
gulp default- Generate documentation under
doc
gulp doc- run tests under
test
gulp testThe configuration options are under config
cfg.tsConfig = {
sortOutput: true,
module: "commonjs",
removeComments: true,
target:'ES5'
};MIT