diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7406e471..0b51af27 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: node:15.6 stages: - test - - build + - compile ESLinter: @@ -15,16 +15,12 @@ ESLinter: paths: - node_modules -# Build Nitro: -# stage: build -# script: -# - npm i -# - npm run build-prod -# cache: -# key: ${CI_COMMIT_BRANCH} -# paths: -# - node_modules -# artifacts: -# expire_in: 2 weeks -# paths: -# - dist/* +Compile: + stage: compile + script: + - npm i + - npm run compile + cache: + key: ${CI_COMMIT_BRANCH} + paths: + - node_modules diff --git a/package.json b/package.json index c0a405a6..d0f8237e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "name": "nitro-renderer", "version": "1.0.0", + "scripts": { + "compile": "tsc --project ./tsconfig.json", + "eslint": "eslint ./src --fix" + }, "private": true, "dependencies": { "@pixi/filter-adjustment": "^4.1.3", diff --git a/tsconfig.json b/tsconfig.json index 38e3129e..4a96583b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,18 +9,27 @@ "moduleResolution": "node", "esModuleInterop": true, "importHelpers": true, + "isolatedModules": true, "resolveJsonModule": true, + "downlevelIteration": true, "allowSyntheticDefaultImports": true, - "target": "es2015", - "module": "es6", + "allowJs": true, + "skipLibCheck": true, + "noEmit": true, + "target": "es5", "lib": [ - "es2018", - "dom" + "dom", + "dom.iterable", + "esnext" ], + "module": "esnext", "paths": { "mini-signals": [ - "node_modules/resource-loader/typings/mini-signals.d.ts" + "node_modules/mini-signals/index.js" ] }, - } + }, + "include": [ + "src" + ] }