Skip to content

Commit 32eff21

Browse files
pavlopsZilliqa GHA - Idb Updater
and
Zilliqa GHA - Idb Updater
authored
DEVOPS-1160: remove bazel from dev-wallet (#343)
* feat: DEVOPS-1160 removed bazel from dev-wallet * feat: DEVOPS-1042 removing nucleus-server broken urls * feat: DEVOPS-1160 remove bazel from dev-wallet --------- Co-authored-by: Zilliqa GHA - Idb Updater <[email protected]>
1 parent 513dc8d commit 32eff21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+14480
-1180
lines changed

.trunk/trunk.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ lint:
3737
paths:
3838
- needing-organisation/**/*
3939
- products/devex/public/*.js
40+
- products/dev-wallet/**
4041
- products/governance-api/**
4142
- products/governance-snapshot/**
4243
- products/multisig/**

products/dev-wallet/.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

products/dev-wallet/.prettierignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Build folder and files #
2+
##########################
3+
build/
4+
5+
# Development folders and files #
6+
#################################
7+
.tmp/
8+
dist/
9+
node_modules/
10+
*.compiled.*
11+
coverage
12+
public

products/dev-wallet/.prettierrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parser": "typescript",
3+
"printWidth": 100,
4+
"singleQuote": true,
5+
"arrowParens": "always",
6+
"overrides": [
7+
{
8+
"files": "*.css",
9+
"options": {
10+
"parser": "css"
11+
}
12+
}
13+
]
14+
}

products/dev-wallet/BUILD

-207
This file was deleted.

products/dev-wallet/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:16 as build-stage
2+
3+
WORKDIR /app
4+
COPY . ./
5+
RUN yarn install
6+
RUN yarn ci
7+
RUN yarn build
8+
9+
FROM nginx:stable-alpine as production-stage
10+
COPY --from=build-stage /app/build /usr/share/nginx/html
11+
EXPOSE 80
12+
ENTRYPOINT ["nginx", "-g", "daemon off;"]

products/dev-wallet/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SHELL := /bin/bash
77

88
ENVIRONMENT ?= dev
99
VALID_ENVIRONMENTS := dev stg prd
10+
IMAGE_TAG ?= localhost:5001/dev-wallet:latest
1011

1112
# Check if the ENVIRONMENT variable is in the list of valid environments
1213
ifeq ($(filter $(ENVIRONMENT),$(VALID_ENVIRONMENTS)),)
@@ -15,4 +16,5 @@ endif
1516

1617
## Build and push the Docker image
1718
image/build-and-push:
18-
bazelisk run --test_output=all --keep_going //products/dev-wallet:push_image_${ENVIRONMENT}
19+
docker build -t "${IMAGE_TAG}" .
20+
docker push "${IMAGE_TAG}"
+3-27
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
1-
/* eslint-disable */
2-
const webpack = require("webpack");
3-
4-
module.exports = function override(config) {
5-
config.resolve.fallback = {
6-
url: require.resolve("url"),
7-
assert: require.resolve("assert"),
8-
crypto: require.resolve("crypto-browserify"),
9-
http: require.resolve("stream-http"),
10-
https: require.resolve("https-browserify"),
11-
os: require.resolve("os-browserify/browser"),
12-
buffer: require.resolve("buffer"),
13-
stream: require.resolve("stream-browserify"),
14-
string_decoder: require.resolve("string_decoder"),
15-
events: require.resolve("events"),
16-
};
17-
18-
config.plugins.push(
19-
new webpack.ProvidePlugin({
20-
process: "process/browser",
21-
})
22-
);
23-
config.plugins.push(
24-
new webpack.ProvidePlugin({
25-
Buffer: ["buffer", "Buffer"],
26-
})
27-
);
1+
const WorkerPlugin = require('worker-plugin');
282

3+
module.exports = function override(config, env) {
4+
config.plugins.push(new WorkerPlugin());
295
return config;
306
};

products/dev-wallet/nginx/default.conf

-20
This file was deleted.

0 commit comments

Comments
 (0)