Skip to content

Commit

Permalink
chore: conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossb0b committed Mar 29, 2022
1 parent 5f055ef commit 783785b
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jest.setup.js
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@myunisoft/eslint-config"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
package-lock.json
20 changes: 20 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
maxWorkers: 1,
moduleNameMapper: {
"^#src/(.*)$": "<rootDir>/src/$1"
},
setupFiles: ["dotenv/config"],
setupFilesAfterEnv: [
"./jest.setup.js"
],
collectCoverage: true,
collectCoverageFrom: [
"**/src/**/*.ts"
],
testMatch: [
"**/test/**/*.spec.ts"
],
globalSetup: "./start-container.js"
};
6 changes: 6 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const dotenv = require("dotenv");
dotenv.config();

require("@myunisoft/utils").CONSTANTS.DEBUG = false;

jest.setTimeout(30000);
35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@myunisoft/events",
"version": "1.0.0",
"description": "MyUnisoft Events validation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MyUnisoft/Events.git"
},
"publishConfig": {
"@myunisoft:registry": "https://registry.npmjs.org/"
},
"files": [
"dist"
],
"author": "HALLAERT Nicolas <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/MyUnisoft/Events/issues"
},
"dependencies": {
"ajv": "^8.11.0"
},
"devDependencies": {
"jest": "^27.5.1",
"@types/jest": "^27.4.1",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
}
}
23 changes: 23 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"strict": false,
"outDir": "./dist",
"moduleResolution": "node",
"resolveJsonModule": true,
"baseUrl": "./src",
"declaration": true,
"paths": {
"#src/*": ["./src/*"]
},
"typeRoots": ["node_modules/@types", "./types"],
"types": ["jest", "node"],
"esModuleInterop": true
},
"include": [
"src/**/**/*.ts",
"./types"
],
"exclude": ["node_modules"]
}

0 comments on commit 783785b

Please sign in to comment.