Skip to content

Commit 70c482a

Browse files
committed
Project setup
1 parent 070ab52 commit 70c482a

7 files changed

Lines changed: 14 additions & 93 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
APP_TITLE="typescript-template-library"
1+
APP_TITLE="ts-task-queue"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# typescript-template-library
1+
# ts-task-queue

MIGRATION.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1 @@
1-
# typescript-template-library
2-
3-
## Installation
4-
5-
1. Create a new empty git repo
6-
```bash
7-
mkdir my-project
8-
cd my-project
9-
git init .
10-
```
11-
2. Install the template (Copy this into git bash).
12-
```bash
13-
git remote add template https://github.com/StatelessStudio/typescript-template-library/ && git pull template master --allow-unrelated-histories && git remote remove template
14-
```
15-
3. Replace "typescript-template-library" with the name of your library project-wide (**No Spaces or special characters except dash!**)
16-
4. `npm i`
17-
5. Update the documentation, changelog, etc
18-
19-
## Pulling updates from typescript-template-library
20-
21-
1. Run the install command in the installation instructions
22-
2. Resolve merge conflicts
23-
3. Test!
24-
25-
## Development
26-
27-
Run a dev test with `npm start`.
28-
29-
Here's a rundown of where to put your code, see each file for more information:
30-
31-
- **script/example.ts**: Create an example application that uses your library
32-
- **src/environment.ts**: Setup environment variables here
33-
- **src/index.ts**: You don't typically need to edit this file, it just initializes and starts your app.
34-
35-
## Running Tests
36-
37-
To run unit tests, `npm run test`
38-
39-
## Scripts
40-
41-
You can write custom scripts in the `script/` directory. See `script/example.ts` as an example. You should also register your scripts in `package.json`:
42-
43-
```json
44-
{
45-
...
46-
"scripts": {
47-
...
48-
"admin:example": "ts-node script/example"
49-
}
50-
}
51-
```
52-
53-
Run your script with `npm run admin:example`
54-
55-
## Compiling
56-
57-
### Debug Builds
58-
59-
To compile a debug build, run `npm run build:dev`. The build output will appear in the `./dist` folder.
60-
61-
### Prod Builds
62-
63-
To compile a production build, run `npm run build:prod`. The build output will appear in the `./dist` folder.
64-
65-
### Clean Builds
66-
67-
To generate a clean build (removes old artifacts and reruns pre&post process scripts), append `:clean` to a build script:
68-
- Debug: `npm run build:dev:clean`
69-
- Release: `npm run build:prod:clean`
70-
71-
## More
72-
73-
### Generating Docs
74-
75-
`npm run doc` and browse docs/index.html!
76-
77-
### Environment Variables
78-
79-
See `src/environment.ts` to see how to use this project's environment variables. Configure an environment in `.env` or with `process.env` (https://nodejs.org/dist/latest-v16.x/docs/api/process.html#processenv).
1+
# ts-task-queue

package-lock.json

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

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "typescript-template-library",
3-
"version": "1.0.0",
2+
"name": "ts-task-queue",
3+
"version": "0.0.0",
44
"ts-project-version": "2.3.0",
5-
"description": "typescript-template-library",
5+
"description": "ts-task-queue",
66
"private": "true",
77
"scripts": {
88
"start": "npm run dev",
@@ -47,13 +47,13 @@
4747
},
4848
"repository": {
4949
"type": "git",
50-
"url": "git+https://github.com/StatelessStudio/typescript-template-library.git"
50+
"url": "git+https://github.com/StatelessStudio/ts-task-queue.git"
5151
},
5252
"author": "stateless-studio",
5353
"license": "MIT",
5454
"bugs": {
55-
"url": "https://github.com/StatelessStudio/typescript-template-library/issues"
55+
"url": "https://github.com/StatelessStudio/ts-task-queue/issues"
5656
},
57-
"homepage": "https://github.com/StatelessStudio/typescript-template-library#readme",
57+
"homepage": "https://github.com/StatelessStudio/ts-task-queue#readme",
5858
"keywords": []
5959
}

src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AppConfig, configure } from 'ts-appconfig';
44
* Environment Variables Schema
55
*/
66
export class Environment extends AppConfig {
7-
readonly APP_TITLE = 'typescript-template-library';
7+
readonly APP_TITLE = 'ts-task-queue';
88
}
99

1010
/**

0 commit comments

Comments
 (0)