Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Update sources, syntax and dependency to work with TypeScript 2.7. Closes #81 #85

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

peterblazejewicz
Copy link
Collaborator

The commit brings compatibility with new features introduced in TypeScript 2.7.
The one with most impact on this project is ES6/ECMAScript module compatibility layer
added in 2.7 enabled in tsconfig.json for this project.
This allowed to rewrite source files to use shorted, better imports everywhere and
also use default exports.

To make project more aligned with updated TypeScript all the NPM depenendencies has been
updated making sure that everything works as expected and tests pass.

Thanks for the project!

Thanks!

npm run build

> express-typescript-starter@0.1.0 build /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> npm run build-sass && npm run build-ts && npm run tslint && npm run copy-static-assets


> express-typescript-starter@0.1.0 build-sass /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> node-sass src/public/css/main.scss dist/public/css/main.css

Rendering Complete, saving .css file...
Wrote CSS to /Users/piotrblazejewicz/git/TypeScript-Node-Starter/dist/public/css/main.css

> express-typescript-starter@0.1.0 build-ts /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> tsc


> express-typescript-starter@0.1.0 tslint /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> tslint -c tslint.json -p tsconfig.json


> express-typescript-starter@0.1.0 copy-static-assets /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> ts-node copyStaticAssets.ts
npm test

> express-typescript-starter@0.1.0 test /Users/piotrblazejewicz/git/TypeScript-Node-Starter
> jest --forceExit --coverage --verbose


 PASS  test/app.test.tss
  GET /random-url
    ✓ should return 404 (122ms)


 PASS  test/home.test.ts
  GET /
    ✓ should return 200 OK (881ms)


 RUNS  test/user.test.ts
 PASS  test/api.test.tst.ts
  GET /api

    ✓ should return 200 OK (976ms)


 PASS  test/contact.test.ts
  GET /contact
    ✓ should return 200 OK (925ms)
  POST /contact
    ✓ should return false from assert when no message is found (25ms)


 RUNS  test/user.test.ts
 PASS  test/user.test.ts
  GET /login
    ✓ should return 200 OK (875ms)
  GET /signup
    ✓ should return 200 OK (171ms)
  POST /login
    ✓ should return some defined error message with valid parameters (17ms)

....

Test Suites: 5 passed, 5 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        5.689s
Ran all test suites.

image

…osoft#81

The commit brings compatibility with new features introduced in TypeScript 2.7.
The one with most impact on this project is ES6/ECMAScript module compatibility layer
added in 2.7 enabled in tsconfig.json for this project.
This allowed to rewrite source files to use shorted, better imports everywhere and
also use default exports.

To make project more aligned with updated TypeScript all the NPM depenendencies has been
updated making sure that everything works as expected and tests pass.

Thanks for the project!

Thanks!
@bowdenk7
Copy link
Contributor

Awesome! Thanks for making the big update!

@peterblazejewicz peterblazejewicz deleted the feat/81 branch February 21, 2018 20:17
@peterblazejewicz
Copy link
Collaborator Author

YAW

brittanydrandolph pushed a commit that referenced this pull request Jun 17, 2022
Update sources, syntax and dependency to work with TypeScript 2.7. Closes #81
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants