ts-site-starter
Features
- Configure express application.
- Written in TS
Usage
lib/app-routes.ts
const siteStarter = ; ;; { superbasePath; this; } { res; } { thisrouter; }
index.ts
;;;; /** * The server. * @class Server */ public app: expressApplication; /** * Constructor. * @class Server * @constructor */ { //create expressjs application thisapp = ; ; } { const routes = ''; thisapp; } { this; const port = serverConfig; thisapp; } // Start the applicationstart;
Install
npm install --save ts-site-starter
Scripts
- npm run build :
rm -rf dist && tsc
- npm run dev :
npm run build:all && node dist/index.js
- npm run test :
mocha ./dist/test/*.js
Dependencies
Package | Version | Dev |
---|---|---|
@types/cookie-parser | ^1.4.1 | ✖ |
@types/cookies | ^0.7.1 | ✖ |
@types/express | ^4.11.1 | ✖ |
@types/html-minifier | ^3.5.2 | ✖ |
@types/mkdirp | ^0.5.2 | ✖ |
@types/node | ^10.0.4 | ✖ |
args-finder | 0.0.3 | ✖ |
body-parser | ^1.18.2 | ✖ |
cookie-parser | ^1.4.3 | ✖ |
cookies | ^0.7.1 | ✖ |
ejs | ^2.6.1 | ✖ |
express | ^4.16.3 | ✖ |
great-logs | 0.0.4 | ✖ |
html-minifier | ^3.5.15 | ✖ |
mkdirp | ^0.5.1 | ✖ |
path | ^0.12.7 | ✖ |
@types/chai | ^4.1.3 | ✔ |
@types/mocha | ^5.2.0 | ✔ |
@types/source-map | ^0.5.7 | ✔ |
chai | ^4.1.2 | ✔ |
mocha | ^5.1.1 | ✔ |
source-map | ^0.7.2 | ✔ |
Contributing
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains TypeScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!
Author
Wendly Saintil wendlysaintil@gmail.com https://twitter.com/wendlysaintil