-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 07ebf96
Showing
10 changed files
with
6,715 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
|
||
pids | ||
logs | ||
results | ||
tmp | ||
|
||
# Build | ||
public/css/main.css | ||
|
||
# Coverage reports | ||
coverage | ||
|
||
# API keys and secrets | ||
.env | ||
|
||
# Dependency directory | ||
node_modules | ||
bower_components | ||
|
||
# Editors | ||
.idea | ||
*.iml | ||
|
||
# OS metadata | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Ignore built ts files | ||
dist/**/* | ||
|
||
# ignore yarn.lock | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Typescript Bootstrap Project | ||
|
||
Projet Typescript pré-configuré (Jest, Nodemon...) | ||
|
||
## Spécifications techniques | ||
|
||
`node -v` | ||
|
||
ex : v.18.10.0 | ||
|
||
### Exécution des commandes NPM | ||
|
||
_Les commandes npm ci-dessous doivent toutes être exécutées depuis le répertoire où se situe le fichier package.json_ | ||
|
||
### Installation des dépendances NPM (avant la première utilisation) | ||
|
||
`npm install` | ||
|
||
### Installation globale de Nodemon pour le Hot Reloading (avant la première utilisation) | ||
|
||
`npm install -g nodemon` | ||
|
||
ou | ||
|
||
`sudo npm install -g nodemon` (sur systèmes Unix) | ||
|
||
### Exécution du programme (code JS déjà transpilé) | ||
|
||
`npm start` | ||
|
||
### Transpilation du code TypeScript vers JavaScript | ||
|
||
`npm run build` | ||
|
||
### Transpilation TypeScript vers JavaScript et exécution du programme | ||
|
||
`npm run dev` | ||
|
||
### Transpilation TypeScript vers JavaScript et exécution du programme avec activation du Hot Reloading (nodemon doit être installé) | ||
|
||
`npm run watch` | ||
|
||
### Exécution des tests unitaires avec Jest.js | ||
|
||
`npm test` | ||
|
||
### Emplacement du code TypeScript transpilé en JavaScript | ||
|
||
`./dist` | ||
|
||
--- | ||
|
||
**Alexandre Leroux** | ||
|
||
Développeur programme (web & mobile)<br/> | ||
Enseignant / Formateur | ||
|
||
Mail : alex@sherpa.one<br/> | ||
Site : https://sherpa.one<br/> | ||
Github : @sherpa1<br/> | ||
Discord : sherpa#3890<br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.ts?$': 'ts-jest', | ||
}, | ||
transformIgnorePatterns: ['<rootDir>/node_modules/'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"watch": [ | ||
"src" | ||
], | ||
"ext": "ts", | ||
"exec": "ts-node ./src/main.ts" | ||
} |
Oops, something went wrong.