commit d335e380b52a00efad1981a126a62981888d09dc Author: Pierre HUBERT Date: Thu Nov 21 16:08:52 2019 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76add87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..99e85d9 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "api-v2", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "typescript": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", + "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..42ccf56 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "api-v2", + "version": "1.0.0", + "description": "New API for Comunic", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "run": "tsc && node dist/main.js" + }, + "author": "", + "license": "MIT", + "dependencies": { + "typescript": "^3.7.2" + } +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..d027236 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,8 @@ +/** + * Main project script + * + * @author Pierre HUBERT + */ + +console.log("Comunic API v6\t@author Pierre HUBERT\t2019-" + new Date().getFullYear()); + diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..cd89a92 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "outDir": "dist", + "sourceMap": true + }, + "include": [ + "src/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file