From 7165eaa86757ed009ce86049e7b1d4035fc1ae61 Mon Sep 17 00:00:00 2001 From: Dank074 Date: Tue, 27 Jul 2021 16:08:18 -0500 Subject: [PATCH] fix runner compile step --- .gitlab-ci.yml | 24 ++++++++++-------------- package.json | 4 ++++ tsconfig.json | 21 +++++++++++++++------ 3 files changed, 29 insertions(+), 20 deletions(-) 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" + ] }