diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..84900a505 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +indent_style = tab +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/.gitignore b/.gitignore index eba82a500..6e75dd21f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ -*.json +*/*.json + *.js + +node_modules/ \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 000000000..4f426df94 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "tcgdex-db", + "version": "1.0.0", + "description": "Database of pokemon TCG", + "main": "index.js", + "repository": "git@git.delta-wings.net:tcgdex/db.git", + "author": "Avior ", + "license": "MIT", + "private": false, + "scripts": { + "test": "tsc --noEmit --project tsconfig-cards.json" + }, + "dependencies": { + "typescript": "^3.7.5" + } +} diff --git a/tsconfig-cards.json b/tsconfig-cards.json new file mode 100644 index 000000000..f3d2e2eba --- /dev/null +++ b/tsconfig-cards.json @@ -0,0 +1,9 @@ +{ + "include": ["cards/**/**/*.ts"], + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..764eaa297 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +typescript@^3.7.5: + version "3.7.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" + integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==