From b3933dfaa8e4ecdc7df5e5e0e461cfb66f198f97 Mon Sep 17 00:00:00 2001 From: Michele Alberti <michele.alberti@cea.fr> Date: Fri, 17 Apr 2020 12:21:46 +0200 Subject: [PATCH] [config] Allow build emission as intermediate step in order to produce the doc. --- ivette/.gitignore | 1 + ivette/package.json | 3 ++- ivette/tsconfig.json | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ivette/.gitignore b/ivette/.gitignore index 994f69553f0..f171b328e7a 100644 --- a/ivette/.gitignore +++ b/ivette/.gitignore @@ -9,6 +9,7 @@ yarn.lock yarn-error.log /bin /dist +/build /doc/html /src/dome diff --git a/ivette/package.json b/ivette/package.json index 136ff724f24..4f674a7ee55 100644 --- a/ivette/package.json +++ b/ivette/package.json @@ -8,7 +8,8 @@ "scripts": { "lint": "eslint --ext .ts,.tsx --format=stylish ./src", "typecheck": "tsc --noEmit", - "typecheck:watch": "yarn run typecheck -- --watch" + "typecheck:watch": "yarn run typecheck -- --watch", + "build": "tsc" }, "devDependencies": { "@babel/cli": "^7.8.4", diff --git a/ivette/tsconfig.json b/ivette/tsconfig.json index d754a4a0411..507cb98e497 100644 --- a/ivette/tsconfig.json +++ b/ivette/tsconfig.json @@ -12,12 +12,12 @@ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "lib", /* Redirect output structure to the directory. */ + "outDir": "build", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ // "removeComments": true, /* Do not emit comments to output. */ - "noEmit": true, /* Do not emit outputs. */ + "noEmit": false, /* Do not emit outputs. */ // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ -- GitLab