From 6020db4e8c51d46baa57577a7458b491e3e8e658 Mon Sep 17 00:00:00 2001 From: Beatriz Cupolillo Date: Mon, 12 Apr 2021 18:28:33 -0300 Subject: [PATCH] inicio projeto --- semana18/projeto-cookenu/.DS_Store | Bin 0 -> 6148 bytes semana18/projeto-cookenu/.gitignore | 3 +++ semana18/projeto-cookenu/package.json | 28 +++++++++++++++++++++++++ semana18/projeto-cookenu/src/index.ts | 18 ++++++++++++++++ semana18/projeto-cookenu/tsconfig.json | 11 ++++++++++ 5 files changed, 60 insertions(+) create mode 100644 semana18/projeto-cookenu/.DS_Store create mode 100644 semana18/projeto-cookenu/.gitignore create mode 100644 semana18/projeto-cookenu/package.json create mode 100644 semana18/projeto-cookenu/src/index.ts create mode 100644 semana18/projeto-cookenu/tsconfig.json diff --git a/semana18/projeto-cookenu/.DS_Store b/semana18/projeto-cookenu/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 { + if (server) { + const address = server.address() as AddressInfo; + console.log(`Server is running in http://localhost:${address.port}`); + } else { + console.error(`Failure upon starting server.`); + } +}); diff --git a/semana18/projeto-cookenu/tsconfig.json b/semana18/projeto-cookenu/tsconfig.json new file mode 100644 index 0000000..b520b3a --- /dev/null +++ b/semana18/projeto-cookenu/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, + "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, + "outDir": "./build" /* Redirect output structure to the directory. */, + "rootDir": "./" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, + "strict": true /* Enable all strict type-checking options. */, + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + } +}