Skip to content

Commit 9101e28

Browse files
committed
Project setup
1 parent 8e53f15 commit 9101e28

11 files changed

+48
-218
lines changed

.env.example

-1
This file was deleted.

CHANGELOG.md

+1-81
Original file line numberDiff line numberDiff line change
@@ -1,81 +1 @@
1-
# Typescript Project Template
2-
3-
## [v1.2.4]
4-
5-
### Fixes
6-
- [TSTEMPLATE-18] Add instructions in readme that MY_APP replacement should not contain spaces
7-
- [TSTEMPLATE-17] Environment file should merge declaration and definitions
8-
- [TSTEMPLATE-16] Build should clear dist
9-
- [TSTEMPLATE-15] Set no-empty eslint rule to warn instead of error
10-
- [TSTEMPLATE-14] Remove tsconfig.spec.json
11-
- [TSTEMPLATE-13] Switch tsconfig to output es6
12-
13-
## [v1.2.3]
14-
15-
### Fixes
16-
- npm update
17-
18-
## [v1.2.2]
19-
20-
### Fixes
21-
- [TSTEMPLATE-7] Source mapping references wrong line numbers when run in dev/ts-node
22-
- [TSTEMPLATE-8] Set stack trace limit to Infinity
23-
- [TSTEMPLATE-9] Filter stack traces for "just my code"
24-
- [TSTEMPLATE-10] Remove webpack from default build-chain
25-
- [TSTEMPLATE-11] Remove dist references from package.json
26-
- [TSTEMPLATE-12] Add lint rule for unresolved promises
27-
28-
## [v1.2.1]
29-
30-
### Fixes
31-
- [TSTEMPLATE-3][Docs] Typedoc --excludeNotExported switch is deprecated
32-
- [TSTEMPLATE-4] Seperate index.ts from main.ts
33-
- [TSTEMPLATE-5] Source mapping should be loaded before imports
34-
- [TSTEMPLATE-6] main() entrypoint should have catch block
35-
36-
## [v1.2.0]
37-
38-
### Additions
39-
40-
- Add nodemon support
41-
- Remove default pre&post process scripts
42-
- Add :clean scripts for rebuilding
43-
44-
## [v1.1.0] - Jan-13-2021
45-
46-
### Additions
47-
48-
- Updated documentation for easier installation
49-
- Add webpack build chain
50-
- Add source mapping
51-
52-
### Fixes
53-
54-
- Move `main.ts` to `index.ts` to better meet node standard & to allow loading by directory with implicit entrypoint
55-
- Max-line-length should be warning, not error
56-
- [TSTEMPLATE-2] Environment doesn't infer type of export 'env'
57-
58-
## [v1.0.0] - Oct-15-2020
59-
60-
### Breaking Changes
61-
62-
- Switched from tslint to eslint due to deprecation
63-
64-
### Additions
65-
66-
- Add `npm start` script
67-
- Add code coverage reporting and coveralls configuration
68-
- Add additional prod linting
69-
70-
### Fixes
71-
72-
- Cleanup prettier config
73-
- Added unit tests for untested code
74-
- Linting should automatically fix
75-
- Update readme code samples
76-
- Add ts-project-version to package.json for version control
77-
- Don't build on prepare hook
78-
79-
## [v0.0.0] - Oct-09-2020 - Initial Release
80-
81-
Initial Release
1+
# ts-error-handler

README.md

+2-17
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
# TypeScript Project Template
2-
3-
## Installation
4-
5-
1. Fork this repo
6-
2. Replace MY_APP with the name of your app project-wide (**No Spaces or special characters!**)
7-
3. `npm i`
8-
4. Update the documentation, changelog, etc
1+
# ts-error-handler
92

103
## Development
114

@@ -57,16 +50,8 @@ export interface Environment {
5750
* Default Values
5851
*/
5952
const defaults: Environment = {
60-
APP_TITLE: 'MY_APP'
53+
APP_TITLE: 'ts-error-handler'
6154

6255
// TODO: Set default variables here
6356
};
6457
```
65-
66-
You'll now have editor hints on environment variables:
67-
68-
![Screenshot](doc/image/environment-1.png)
69-
70-
and type-checking:
71-
72-
![Screenshot](doc/image/environment-2.png)

doc/image/environment-1.png

-2.19 KB
Binary file not shown.

doc/image/environment-2.png

-4.31 KB
Binary file not shown.

package-lock.json

+36-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "MY_APP",
3-
"version": "1.0.0",
2+
"name": "ts-error-handler",
3+
"version": "0.0.0",
44
"ts-project-version": "1.2.4",
55
"scripts": {
66
"start": "npm run dev",
@@ -22,21 +22,20 @@
2222
"coveralls": "cat ./coverage/lcov.info | coveralls"
2323
},
2424
"dependencies": {
25-
"dotenv": "^8.6.0",
26-
"source-map-support": "^0.5.20"
25+
"source-map-support": "^0.5.21"
2726
},
2827
"devDependencies": {
29-
"@istanbuljs/nyc-config-typescript": "^1.0.1",
30-
"@types/jasmine": "^3.9.1",
31-
"@types/node": "^12.20.32",
28+
"@istanbuljs/nyc-config-typescript": "^1.0.2",
29+
"@types/jasmine": "^3.10.3",
30+
"@types/node": "^12.20.41",
3231
"@typescript-eslint/eslint-plugin": "^4.33.0",
3332
"@typescript-eslint/parser": "^4.33.0",
3433
"coveralls": "^3.1.1",
3534
"eslint": "^7.32.0",
36-
"jasmine": "^3.9.0",
35+
"jasmine": "^3.99.0",
3736
"nyc": "^15.1.0",
38-
"ts-node": "^10.3.0",
37+
"ts-node": "^10.4.0",
3938
"typedoc": "^0.21.9",
40-
"typescript": "^4.4.4"
39+
"typescript": "^4.5.4"
4140
}
4241
}

src/environment.ts

-15
This file was deleted.

src/index.ts

-26
This file was deleted.

src/logger.ts

-16
This file was deleted.

src/main.ts

-11
This file was deleted.

0 commit comments

Comments
 (0)