mirror of
https://github.com/alexgo-io/laplace-swagger.git
synced 2026-01-12 22:22:38 +08:00
chore: remove unecessary files
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
node_modules/
|
||||
dist/
|
||||
.yarn/
|
||||
!.yarn/releases
|
||||
@@ -1,26 +0,0 @@
|
||||
FROM node:16.15.0-bullseye
|
||||
WORKDIR /build
|
||||
COPY package.json /build/package.json
|
||||
COPY yarn.lock /build/yarn.lock
|
||||
COPY .yarn/releases /build/releases
|
||||
RUN yarn install --production && \
|
||||
mv node_modules /node_modules && \
|
||||
yarn
|
||||
COPY bin /build/bin
|
||||
RUN ./bin/hasura-cli --skip-update-check version
|
||||
COPY tsconfig.json /build/tsconfig.json
|
||||
COPY env /build/env
|
||||
COPY src /build/src
|
||||
ARG TARGET_ENV
|
||||
RUN yarn use $TARGET_ENV && \
|
||||
yarn build && \
|
||||
wc -l dist/main.js
|
||||
|
||||
FROM node:16.15.0-bullseye
|
||||
WORKDIR /app
|
||||
COPY package.json /app/package.json
|
||||
COPY --from=0 /node_modules /app/node_modules
|
||||
COPY --from=0 /build/dist /app/dist
|
||||
COPY --from=0 /build/bin /app/bin
|
||||
COPY hasura-schema /app/hasura-schema
|
||||
ENTRYPOINT /app/bin/start-cli
|
||||
@@ -1,12 +0,0 @@
|
||||
module.exports = {
|
||||
modulePathIgnorePatterns: ['/node_modules/', '/dist/'],
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: './src/testing/emulator-test-env.js',
|
||||
setupFilesAfterEnv: [],
|
||||
testTimeout: 60000,
|
||||
transform: {},
|
||||
transformIgnorePatterns: ['\\.js$', '\\.jsx$', '\\.json$'],
|
||||
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'd.ts'],
|
||||
detectOpenHandles: true,
|
||||
forceExit: true,
|
||||
};
|
||||
Reference in New Issue
Block a user