Verified Commit f523be59 authored by Jules Sagot--Gentil's avatar Jules Sagot--Gentil
Browse files

feat: compilation du projet dans le dossier dist

parent fa8415a1
node_modules
\ No newline at end of file
node_modules
dist/*
!dist/.gitkeep
\ No newline at end of file
......@@ -2,4 +2,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
\ No newline at end of file
roots: ['src', 'test'],
};
......@@ -10,6 +10,7 @@
"description": "Mini projet pour démontrer la conception d'un projet avec TypeScript et Node.js",
"main": "index.js",
"scripts": {
"build": "tsc",
"test": "jest"
},
"author": "Jules Sagot--Gentil",
......
......@@ -47,7 +47,7 @@
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment