Skip to content

Commit

Permalink
feat: nodemon, package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Colten Krauter committed Jul 22, 2024
1 parent be5795b commit 6591404
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This auto assigns the following teams to pull requests
* @krauters/core
12 changes: 12 additions & 0 deletions .github/workflows/node-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Node Release

on:
push:
branches: '*'
workflow_dispatch:

jobs:
publish:
uses: krauters/shared-workflows/.github/workflows/release-node.yaml@main
secrets:
GH_TOKEN_RELEASES: ${{ secrets.GH_TOKEN_RELEASES }}
117 changes: 117 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@
"chai": "^5.1.1",
"husky": "^9.1.1",
"mocha": "^10.7.0",
"nodemon": "^3.1.4",
"sinon": "^18.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"name": "@krauters/typescript-core",
"description": "A TypeScript Repository that stands as a starting point for all other TypeScript repositories.",
"version": "0.0.0",
"main": "index.ts",
"main": "app.ts",
"type": "module",
"scripts": {
"build": "npm run ts-node -- ./src/app.ts",
"example-1": "npm run ts-node -- ./example/1.ts",
"mocha": "c8 --config test/c8.config.json mocha --config test/.mocharc.json",
"prepare": "husky || true",
"readme": "node scripts/readme.js",
"start": "nodemon --inspect -e ts -w ./src -x npm run build",
"test": "npm run mocha",
"ts-node": "node --no-warnings --loader ts-node/esm/transpile-only",
"update-all": "npx npm-check-updates -u && npm install"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.info('Hello world!')
12 changes: 10 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"target": "ESNext", // Latest ECMAScript target
"types": ["mocha", "node"] // Type definitions for Mocha and Node
},
"exclude": ["node_modules"], // Exclude node_modules directory
"include": ["src/**/*.{ts,tsx}", "test/**/*.{ts,tsx}"] // Include source and test files
"exclude": ["node_modules"],
"include": [
"*.ts",
"examples/**/*.ts",
"examples/**/*.tsx",
"src/**/*.ts",
"src/**/*.tsx",
"test/**/*.ts",
"test/**/*.tsx",
],
}

0 comments on commit 6591404

Please sign in to comment.