Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobymurray/express-typescript-babel
Seed Express application with TypeScript and Babel
https://github.com/tobymurray/express-typescript-babel
babel babeljs es2015 es6 express express-js expressjs node nodejs typescript
Last synced: 18 days ago
JSON representation
Seed Express application with TypeScript and Babel
- Host: GitHub
- URL: https://github.com/tobymurray/express-typescript-babel
- Owner: tobymurray
- Created: 2017-02-19T06:30:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T21:54:28.000Z (about 7 years ago)
- Last Synced: 2024-11-16T05:42:02.054Z (3 months ago)
- Topics: babel, babeljs, es2015, es6, express, express-js, expressjs, node, nodejs, typescript
- Language: TypeScript
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/tobymurray/express-typescript-babel.svg?branch=master)](https://travis-ci.org/tobymurray/express-typescript-babel)
# ExpressJS, TypeScript 2 and Babel
ExpressJS is one of the go-to technologies for Node JS servers. If you're looking for something to support an Angular client, it's a great choice. Unfortunately the associated generator project produces vanilla JavaScript, and coming from the TypeScript world of Angular, who wants vanilla ES5-ish JavaScript?## Build
Start with `yarn run build`
```
$ yarn run build
yarn run v0.20.3
$ yarn run clean && yarn run tsc && yarn run babel && yarn run copy-files
yarn run v0.20.3
$ rm -rf build && rm -rf dist
Done in 0.31s.
yarn run v0.20.3
$ node ./node_modules/.bin/tsc
Done in 1.74s.
yarn run v0.20.3
$ node ./node_modules/.bin/babel --presets es2015 build --out-dir dist --source-maps
build/app.js -> dist/app.js
build/bin/www.js -> dist/bin/www.js
build/models/http_error.js -> dist/models/http_error.js
build/routes/index.js -> dist/routes/index.js
build/routes/users.js -> dist/routes/users.js
Done in 0.80s.
yarn run v0.20.3
$ cp package.json dist/ && cp -r public dist/ && cp -r node_modules dist/
Done in 0.28s.
Done in 4.11s.
```## Run
Run with `cd dist && yarn run start`
```
$ cd dist && yarn run start
yarn run v0.20.3
$ node ./bin/www
```