Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jules Sagot--Gentil
Flux articles console
Commits
f523be59
Verified
Commit
f523be59
authored
Feb 14, 2022
by
Jules Sagot--Gentil
Browse files
feat: compilation du projet dans le dossier dist
parent
fa8415a1
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
f523be59
node_modules
\ No newline at end of file
node_modules
dist/*
!dist/.gitkeep
\ No newline at end of file
dist/.gitkeep
0 → 100644
View file @
f523be59
jest.config.js
View file @
f523be59
...
...
@@ -2,4 +2,5 @@
module
.
exports
=
{
preset
:
'
ts-jest
'
,
testEnvironment
:
'
node
'
,
};
\ No newline at end of file
roots
:
[
'
src
'
,
'
test
'
],
};
package.json
View file @
f523be59
...
...
@@ -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"
,
...
...
tsconfig.json
View file @
f523be59
...
...
@@ -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.
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment