Update tsconfig files and switch to _build for outputs, for consistency with main grist repo

This commit is contained in:
Dmitry S 2020-05-22 02:14:28 -04:00
parent a5fbc8fcd2
commit ad35f54b87
9 changed files with 39 additions and 30 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
/node_modules/
/build/
/_build/
/static/*.bundle.js
/static/*.bundle.js.map

View File

@ -1,9 +1,6 @@
{
"extends": "../../buildtools/tsconfig-base.json",
"compilerOptions": {
"outDir": "../../build/app/client"
},
"references": [
{ "path": "../common" }
]
"extends": "../../buildtools/tsconfig-base.json",
"references": [
{ "path": "../common" }
]
}

View File

@ -1,6 +1,3 @@
{
"extends": "../../buildtools/tsconfig-base.json",
"compilerOptions": {
"outDir": "../../build/app/common",
}
"extends": "../../buildtools/tsconfig-base.json",
}

View File

@ -1,9 +1,6 @@
{
"extends": "../../buildtools/tsconfig-base.json",
"compilerOptions": {
"outDir": "../../build/app/server",
},
"references": [
{ "path": "../common" }
]
"extends": "../../buildtools/tsconfig-base.json",
"references": [
{ "path": "../common" }
]
}

View File

@ -1,9 +1,9 @@
{
"files": [],
"include": [],
"references": [
{ "path": "./client" },
{ "path": "./server" },
{ "path": "./common" },
]
"include": [],
"references": [
{ "path": "./client" },
{ "path": "./server" },
{ "path": "./common" },
]
}

View File

@ -8,7 +8,16 @@
"noImplicitAny": true,
"noUnusedLocals": true,
"moduleResolution": "node",
"allowJs": true,
"baseUrl": "..",
"rootDir": "..",
"outDir": "../_build",
"paths": {
"*": [
"*",
"grist-core/*",
],
},
"composite": true,
"plugins": [{
"name": "typescript-tslint-plugin"

View File

@ -7,7 +7,7 @@ const path = require('path');
module.exports = {
target: 'web',
entry: {
main: "./build/app/client/index.js",
main: "app/client/index.js",
},
output: {
filename: "[name].bundle.js",
@ -33,7 +33,7 @@ module.exports = {
devtool: "source-map",
resolve: {
modules: [
path.resolve('./build'),
path.resolve('./_build'),
path.resolve('./node_modules')
],
},

View File

@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "tsc --build app -w --preserveWatchOutput & webpack --config buildtools/webpack.config.js --mode development --watch --hide-modules & nodemon -w build/app/server -w build/app/common build/app/server/server & wait",
"build:prod": "tsc --build app && webpack --config buildtools/webpack.config.js --mode production",
"start:prod": "node build/app/server/server"
"start": "tsc --build -w --preserveWatchOutput & webpack --config buildtools/webpack.config.js --mode development --watch --hide-modules & nodemon -w _build/app/server -w _build/app/common _build/app/server/server & wait",
"build:prod": "tsc --build && webpack --config buildtools/webpack.config.js --mode production",
"start:prod": "node _build/app/server/server"
},
"keywords": [],
"author": "",

9
tsconfig.json Normal file
View File

@ -0,0 +1,9 @@
{
"extends": "./buildtools/tsconfig-base.json",
"files": [],
"include": [],
"references": [
{ "path": "./app" },
// { "path": "./test" },
]
}