Skip to content

Commit 0f93fd7

Browse files
committed
Remove application code & dependencies
1 parent ae1d40d commit 0f93fd7

10 files changed

Lines changed: 13 additions & 189 deletions

File tree

package-lock.json

Lines changed: 8 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
"coveralls": "cat ./coverage/lcov.info | coveralls",
2626
"admin:example": "ts-node script/example"
2727
},
28-
"dependencies": {
29-
"ts-appconfig": "^1.2.0",
30-
"ts-async-bootstrap": "^2.1.0",
31-
"ts-error-handler": "^1.0.2",
32-
"ts-tiny-log": "^1.0.2"
33-
},
3428
"devDependencies": {
3529
"@istanbuljs/nyc-config-typescript": "^1.0.2",
3630
"@types/jasmine": "^3.10.3",
@@ -42,6 +36,7 @@
4236
"jasmine": "^4.0.2",
4337
"nodemon": "^2.0.15",
4438
"nyc": "^15.1.0",
39+
"ts-appconfig": "^1.2.0",
4540
"ts-node": "^10.4.0",
4641
"typedoc": "^0.22.11",
4742
"typescript": "^4.5.4"
@@ -56,6 +51,5 @@
5651
"url": "https://github.com/StatelessStudio/typescript-template-library/issues"
5752
},
5853
"homepage": "https://github.com/StatelessStudio/typescript-template-library#readme",
59-
"keywords": [
60-
]
54+
"keywords": []
6155
}

script/example.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// The following imports are generic across all scripts
2-
import { bootstrap } from '../src/bootstrap';
3-
4-
// These imports are specific to the example script, but may be used
5-
// for others
6-
import { log } from '../src/log';
71
import { env } from '../src/environment';
82

93
/**
104
* Do something!
115
*/
126
export async function example(): Promise<void> {
13-
log.info('App Name: ', env.APP_TITLE);
14-
log.warn('Environment: ', env.NODE_ENV);
7+
console.log('App Name: ', env.APP_TITLE);
8+
console.log('Environment: ', env.NODE_ENV);
159
}
1610

17-
bootstrap(example);
11+
example().catch(console.error);

src/bootstrap.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/error-handler.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +0,0 @@
1-
/**
2-
* This file is the main entrypoint for your application.
3-
*/
4-
import { bootstrap } from './bootstrap';
5-
import { main } from './main';
6-
7-
/**
8-
* Bootstrap the application
9-
*/
10-
bootstrap(main);
11-
12-
/**
13-
* Documentation - Exported modules will appear in documentation
14-
*/
15-
export { App, app, bootstrap } from './bootstrap';
16-
export { Environment } from './environment';
17-
export { errorHandler } from './error-handler';

src/log.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/main.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/register.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/spec/log.spec.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)