1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17:37 +00:00
Commit Graph

39 Commits

Author SHA1 Message Date
CarlosK
1098943419 Update packages, add tests, add type casts (#229)
- upgrade to latest packages
- cast `req.user` as `UserDocument`
- update logger to use latest Winston syntax
- disable `no-inferrable-types`, Mongoose use unified topology

Thx to @CarlosSolrac
2019-09-29 12:31:07 +02:00
Mathias Rasmussen
3e2f6c0c51 Fix lint warnings 2019-07-31 12:34:57 +02:00
Jay
1827128540 fix lint error
fix lint error
```
PS> npm run lint                                                                                                        
> express-typescript-starter@0.1.0 lint C:\Users\JipingWang\source\repos\api
> tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix


Oops! Something went wrong! :(

ESLint: 5.16.0.
No files matching the pattern "'*/**/*.{js,ts}'" were found.
Please check for typing mistakes in the pattern.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! express-typescript-starter@0.1.0 lint: `tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the express-typescript-starter@0.1.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\JipingWang\AppData\Roaming\npm-cache\_logs\2019-07-18T15_26_05_580Z-debug.log
```
2019-07-18 11:33:31 -04:00
Peter Blazejewicz
3414ceca45 Migrate TSLint to ESLint. Closes #209
This commit rewrites linting support in the project to be based solely
on the ESLint as advised by the TSLint tool authors:
https://medium.com/palantir/tslint-in-2019-1a144c2317a9

The migration is based on default, recommended settings for TypeScript
in ESLint and is expected to be updated in future to better fit project
goals.

All references has been updated and replaced with relevant ESLint
context:

- dependencies migration from TSLint to ESLint
- VSCode configuration changes to support ESLint exension
- VSCode extensions recommendation changes
- `.eslintrc` and `.eslintignore` configuration files added
- all error level problems in the source files are covered by this
  migration

Thanks!
2019-07-15 23:14:51 +02:00
Orta
ae93767698 Merge pull request #206 from peterblazejewicz/feat/express-flash-types
Simplify augmented module for express-flash
2019-07-15 17:08:47 -04:00
dependabot[bot]
120d79f4ee Bump lodash from 4.17.11 to 4.17.13
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-10 22:59:20 +00:00
Peter Blazejewicz
4b0df406a4 Simplify augmented module for express-flash
There is existing @types definition for express-flash. Let's use it and
just augment a method required by the existing code to please compiler.

Thanks!
2019-07-05 23:29:10 +02:00
Peter Blazejewicz
d9f173eb66 Update project dependencies 2019-06-22 22:23:04 +02:00
Bowden Kelly
36c1f1d972 update typescript 2019-05-10 12:19:04 -07:00
Bowden Kelly
89f3e04868 update mongoose to v5 2019-03-25 14:56:30 -07:00
Bowden Kelly
a3a3258c9b update jest 2019-03-25 14:52:40 -07:00
Bowden Kelly
a6aaa7fbfe updated a bunch of dependencies with non-breaking changes 2019-03-25 14:50:35 -07:00
Raphaël Huchet
5482032824 prototype pollution
Versions of lodash before 4.17.5 are vulnerable to prototype pollution: https://nodesecurity.io/advisories/577
2018-07-17 12:57:45 +02:00
Sam Severance
994b91e766 Add watch-test Script 2018-04-11 17:06:30 -04:00
Bowden
49a30ce8d4 updated dependency table in README 2018-02-27 16:36:41 -08:00
Bowden
1a72f0db6b replaced logging with Winston 2018-02-27 14:29:37 -08:00
Peter Blazejewicz
df6adc7238 Update ShellJS version
Thanks!
2018-02-22 21:18:37 +01:00
Peter Blazejewicz
1b71586efa Update source and dependency to work with TypeScript 2.7. Closes #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!
2018-02-20 22:02:53 +01:00
Bowden Kelly
e61d5c932f Merge pull request #73 from peterblazejewicz/types/passport-local
Replace passport-local definition file with @types/passport-local
2018-01-09 10:55:20 -08:00
Peter Blazejewicz
c1c23a0b99 Replace passport-local definition file with @types/passport-local
This commit:
- use @types/passport-local
- removes custom definition file
- updates implementation to use correct interface from @types/passport-local

Thanks!
2018-01-05 22:30:54 +01:00
Peter Blazejewicz
fd523e3033 Replace Lusca definition file with @types/lusca
Thanks!
2018-01-04 22:29:22 +01:00
Irene (XiangYi) Chen
d080f39b86 coverage/chai support and some unit tests
1. added jest coverage support (#64)
2. added chai testing support
3. created new unit tests
2018-01-03 15:12:41 -08:00
Alan Agius
780e30826c feat: update several dependencies and devDependencies (#59) 2018-01-03 15:03:25 -08:00
Bowden Kelly
9d9d378408 Merge branch 'master' into feat/ts-node 2018-01-03 14:35:22 -08:00
Bowden Kelly
bfa86ce4c8 Merge pull request #58 from alan-agius4/feature/jest-conf
feat: move jest config to external file
2018-01-03 14:09:10 -08:00
Bowden
61ae2ccd1b made some changes to mongo connection 2017-12-19 15:30:19 -08:00
Peter Blazejewicz
bfd74b2dc6 Support all-typescript tooling with ts-node
The ts-node allows to execute build scripts written in TypeScript
so the entire project could be written in TypeScript.
This commit introduces support for ts-node, updates packages
and migrate copy routine to TypeScript

Thanks!
2017-12-16 22:56:45 +01:00
Alan Agius
80f53777e0 feat: move jest config to external file 2017-12-15 14:07:30 +01:00
Bowden
7325bc49a2 update repo field 2017-12-14 15:50:34 -08:00
Daniel Temme
ff6d059921 change tests to not always pass 2017-12-14 11:33:28 -08:00
Alan Agius
4d2b9148cf feat(*): update several dependencies 2017-12-14 11:33:28 -08:00
Daniel Temme
ab8300e088 might as well also add the change for issue #41 2017-08-19 16:27:39 +02:00
ThanhTDT
f8141a0b06 add attach debug configuration
- Attach debug configuration
- Scripts: debug, serve-debug, watch-debug
- Readme
2017-07-27 21:09:17 +07:00
Bowden Kelly
235ba1daa9 updated specific .d.ts files to point to definitely typed file. Also added recommended extensions using vs code's extensions.json 2017-07-25 11:28:51 -07:00
Bowden Kelly
bb59a5d3e9 looks like new version of npm adds a blank line after each npm install. Committing it 2017-07-25 11:28:51 -07:00
xiangxiang
9ed0760ae9 fit error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
fix err TypeScript-Node-Starter/src/controllers/api.ts[6, 9]: missing whitespace, 8 files
fix bugs of issue 15
2017-07-19 20:36:10 +08:00
Deilan
0c7f4ead9b Removed duplication in npm scripts serve and watch 2017-06-06 01:52:39 +03:00
Bowden Kelly
ae0f21ea77 added nodemon as dev dependency 2017-05-15 10:02:50 -07:00
Bowden Kelly
6625b87b19 initial commit 2017-05-09 13:28:09 -07:00