From c4eec5720a55a4bd64e644b715a8321574812af3 Mon Sep 17 00:00:00 2001 From: Amaury Joly Date: Fri, 12 Mar 2021 13:02:02 +0100 Subject: [PATCH] first commit --- .eslintrc.json | 15 +++++++++++++++ .gitignore | 3 +++ .prettierrc.json | 1 + package.json | 37 +++++++++++++++++++++++++++++++++++++ src/gestion-listener.ts | 5 +++++ src/index.ts | 1 + src/tsconfig.json | 10 ++++++++++ tsconfig.base.json | 21 +++++++++++++++++++++ 8 files changed, 93 insertions(+) create mode 100644 .eslintrc.json create mode 100644 .gitignore create mode 100644 .prettierrc.json create mode 100644 package.json create mode 100644 src/gestion-listener.ts create mode 100644 src/index.ts create mode 100644 src/tsconfig.json create mode 100644 tsconfig.base.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..112f4fa --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,15 @@ +{ + "env": { + "node": true, + "commonjs": true, + "es2021": true + }, + "extends": ["plugin:prettier/recommended", "plugin:mocha/recommended"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 12 + }, + "plugins": ["@typescript-eslint", "mocha"], + "rules": { + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d7336e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build/ +node_modules/ +.idea/ \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1 @@ +{} diff --git a/package.json b/package.json new file mode 100644 index 0000000..4ca4cae --- /dev/null +++ b/package.json @@ -0,0 +1,37 @@ +{ + "name": "gestion-listener", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "cross-env TS_NODE_PROJECT='./tests/tsconfig.json' mocha --require ts-node/register ./tests/**/*-spec.ts", + "build": "tsc -p ./src" + }, + "keywords": [], + "author": "Amaury Joly ", + "license": "MIT", + "devDependencies": { + "@types/node": "^14.14.33", + "@types/mocha": "^8.2.1", + "@types/chai": "^4.2.15", + "@typescript-eslint/parser": "^4.17.0", + "@typescript-eslint/eslint-plugin": "^4.17.0", + "cross-env": "^7.0.3", + "chai": "^4.3.3", + "eslint": "^7.21.0", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-config-prettier": "^8.1.0", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-mocha": "8.0.0", + "eslint-plugin-prettier": "3.3.1", + "mocha": "8.2.1", + "prettier": "2.2.1", + "sinon-chai": "3.5.0", + "ts-sinon": "2.0.1", + "ts-node": "9.1.1", + "typescript": "^4.1.3" + }, + "dependencies": { + "listener-rss": "./../listener-rss" + } +} diff --git a/src/gestion-listener.ts b/src/gestion-listener.ts new file mode 100644 index 0000000..8ac1b17 --- /dev/null +++ b/src/gestion-listener.ts @@ -0,0 +1,5 @@ +import {} from ""; + +export class GestionListener { + GestionListener(): any {} +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..57ac4d4 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +export * from "./gestion-listener"; diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 0000000..9a2ee73 --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../tsconfig.base.json", + "compilerOptions": { + "moduleResolution": "node" + }, + "exclude": [ + "build/", + "node_modules" + ] +} diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..1021bc9 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es2018", + "module": "es2015", + "lib": ["es6"], + "allowJs": true, + "outDir": "build", + "rootDir": "src", + "strict": true, + "moduleResolution": "node", + "noImplicitAny": true, + "esModuleInterop": true, + "resolveJsonModule": false, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true + }, + "exclude": [ + "build/", + "node_modules" + ] +}