forked from MaterializeInc/datagen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YAR-14287: Convert to TypeScript (MaterializeInc#66)
* Convert to TypeScript * Allow integration tests on PRs * Update avro name hook * Fix CSR prefix bug
- Loading branch information
1 parent
4627aaf
commit 319b7f0
Showing
32 changed files
with
3,062 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,8 @@ jobs: | |
# Install dependencies | ||
- run: npm install | ||
|
||
# Build | ||
- run: npm run build | ||
|
||
# Run tests | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,5 @@ assets/img/.DS_Store | |
|
||
# VSCode related files # | ||
# .vscode | ||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src | ||
tsconfig.json | ||
tslint.json | ||
.prettierrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
# Use the latest LTS version of Node.js as the base image | ||
FROM node:lts-alpine | ||
FROM node:lts-slim as builder | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the package.json and package-lock.json files to the container | ||
COPY package*.json ./ | ||
COPY . . | ||
|
||
# Install the application dependencies | ||
RUN npm install | ||
RUN npm install && npm run build | ||
|
||
FROM node:lts-slim | ||
|
||
# Copy the application source code to the container | ||
COPY ./datagen.js ./ | ||
COPY ./src ./src | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm install --only=production | ||
COPY --from=builder /app/dist ./dist | ||
COPY ./tests ./tests | ||
|
||
RUN npm link | ||
RUN npm link --only=production | ||
|
||
# Set the command to run the application when the container starts | ||
ENTRYPOINT [ "datagen" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.