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

pull/1/head
Dmitry S 4 years ago
parent a5fbc8fcd2
commit ad35f54b87

2
.gitignore vendored

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

@ -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" }
]
}

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

@ -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" }
]
}

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

@ -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"

@ -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')
],
},

@ -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": "",

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