Skip to content

Commit

Permalink
ci: cleanup build setup
Browse files Browse the repository at this point in the history
Signed-off-by: Nastya Rusina <[email protected]>
  • Loading branch information
anrusina committed May 13, 2022
1 parent 74ccebc commit d9c6e1c
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Use node:17 to docker build on M1
FROM node:16 as builder
# FROM node:17 as builder
LABEL org.opencontainers.image.source https://github.com/flyteorg/flyteconsole

WORKDIR /code/flyteconsole
COPY package*.json yarn.lock ./
COPY ./packages/zapp/console/package*.json yarn.lock ./
RUN : \
# install production dependencies
&& yarn install --production \
Expand Down
15 changes: 15 additions & 0 deletions packages/basics/locale/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"exclude": [
// files excluded from the build, we can not put it inro default tsconfig
// as it will screw VSCode IntelliSence
"**/test",
"**/mocks",
"**/__mocks__",
"**/__stories__",
"**/*.spec.*",
"**/*.test.*",
"**/*.mock.*",
"**/*.stories.*"
]
}
15 changes: 15 additions & 0 deletions packages/composites/ui-atoms/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"exclude": [
// files excluded from the build, we can not put it inro default tsconfig
// as it will screw VSCode IntelliSence
"**/test",
"**/mocks",
"**/__mocks__",
"**/__stories__",
"**/*.spec.*",
"**/*.test.*",
"**/*.mock.*",
"**/*.stories.*"
]
}
13 changes: 8 additions & 5 deletions packages/plugins/components/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
"**/mocks",
"**/__mocks__",
"**/__stories__",
"src/**/*.spec.*",
"src/**/*.test.*",
"src/**/*.mock.*",
"src/**/*.stories.*"
"**/*.spec.*",
"**/*.test.*",
"**/*.mock.*",
"**/*.stories.*"
],
"references": [{ "path": "../../basics/locale" }, { "path": "../../composites/ui-atoms" }]
"references": [
{ "path": "../../basics/locale/tsconfig.build.json" },
{ "path": "../../composites/ui-atoms/tsconfig.build.json" }
]
}
6 changes: 5 additions & 1 deletion packages/zapp/console/src/models/Common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import axios, { AxiosRequestConfig, AxiosTransformer } from 'axios';
import * as camelcaseKeys from 'camelcase-keys';
import * as snakecaseKeys from 'snakecase-keys';
import { isObject } from 'util';
import { LiteralMapBlob, ResourceType, SystemStatus } from './types';

// recommended util.d.ts implementation
const isObject = (value: unknown): boolean => {
return value !== null && typeof value === 'object';
};

export const endpointPrefixes = {
execution: '/executions',
launchPlan: '/launch_plans',
Expand Down
14 changes: 7 additions & 7 deletions packages/zapp/console/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"**/mocks",
"**/__mocks__",
"**/__stories__",
"src/**/*.spec.*",
"src/**/*.test.*",
"src/**/*.mock.*",
"src/**/*.stories.*"
"**/*.spec.*",
"**/*.test.*",
"**/*.mock.*",
"**/*.stories.*"
],
"references": [
{ "path": "../../basics/locale" },
{ "path": "../../composites/ui-atoms" },
{ "path": "../../plugins/components" }
{ "path": "../../basics/locale/tsconfig.build.json" },
{ "path": "../../composites/ui-atoms/tsconfig.build.json" },
{ "path": "../../plugins/components/tsconfig.build.json" }
]
}

0 comments on commit d9c6e1c

Please sign in to comment.