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

feat(Root): Development mode using nodemon with custom type loading #354

Open
wants to merge 293 commits into
base: master
Choose a base branch
from

Conversation

DerianCordobaPerez
Copy link

Implementation to run in development mode using nodemon loading custom types in order to prevent errors when running the server in development mode.

The error that is being prevented by loading the express-session-types type is the following:

Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
req.session.returnTo = req.path;

Which is avoided by importing the following line into the app.ts file:

import * as sessionTypes from "./types/express-session-types";

With this we achieve the execution in development mode with the command npm run dev.

Bowden Kelly and others added 30 commits July 31, 2017 18:23
fix: fix lint warnings for test files
this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
Added missing "node_modules/*" path mapping to README.
Removed extra "s" in sourceMap compilerOptions
Added missing "node_modules/*" path mapping to README.
this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
change tests to not always pass
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!
The VSCode CosmosDB supports locally installed MongoDB servers
(and lot of other things and features).
It seems reasonable to offer that extension to project users.

Thanks!
made some changes to mongo connection
feat: move jest config to external file
add the line to compile dist folder
Add VSCode CosmosDB extension recommendation
dependabot bot and others added 27 commits July 15, 2020 23:30
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.3.4 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.3.4...v4.7.6)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tree-kill](https://github.com/pkrumins/node-tree-kill) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/pkrumins/node-tree-kill/releases)
- [Commits](pkrumins/node-tree-kill@v1.2.1...v1.2.2)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This version bump should fix issue with `node-sass` installation on some
systems.
Tested on Win 10.

Thanks!

Closes microsoft#165
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](npm/ini@v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

This removes warnings about deprecated configuration option:

```text
tsConfig` is depecrated and will be removed in ts-jest 27
```

kulshekhar/ts-jest@8fec681

Thanks!
Should fix issues with failing CI checks on updated packages.

/cc @samal-rasmussen
…#326)

- Replaced section about mLab with MongoDB Atlas
thx to @klemensz!
This fixes issue with failing pages

/cc @klemensz

Fixes microsoft#323
This updates some deps to remove high security warnings from NPM audits.

Thanks!
- deps update
- package lock update
- minor code changes to align with updated libraries

/cc @daxeh

Fixes microsoft#333
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@ghost
Copy link

ghost commented Jan 24, 2022

CLA assistant check
All CLA requirements met.

@peterblazejewicz
Copy link
Collaborator

Hey,
thanks for pr, but it won't work as part of the example, as the direct TS workflow does not work in current setup for non-TS (non-javasript) assets, like images and styles. So the page starts, allow development, but there is no support for other assets. This is why existing nodemon usage support is based on serving content from dist directory

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