Skip to content

Commit

Permalink
DEVOPS-1160: remove bazel from dev-wallet (#343)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
pavlops and Zilliqa GHA - Idb Updater authored Jan 3, 2024
1 parent 513dc8d commit 32eff21
Show file tree
Hide file tree
Showing 80 changed files with 14,480 additions and 1,180 deletions.
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ lint:
paths:
- needing-organisation/**/*
- products/devex/public/*.js
- products/dev-wallet/**
- products/governance-api/**
- products/governance-snapshot/**
- products/multisig/**
Expand Down
23 changes: 23 additions & 0 deletions products/dev-wallet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
12 changes: 12 additions & 0 deletions products/dev-wallet/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Build folder and files #
##########################
build/

# Development folders and files #
#################################
.tmp/
dist/
node_modules/
*.compiled.*
coverage
public
14 changes: 14 additions & 0 deletions products/dev-wallet/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parser": "typescript",
"printWidth": 100,
"singleQuote": true,
"arrowParens": "always",
"overrides": [
{
"files": "*.css",
"options": {
"parser": "css"
}
}
]
}
207 changes: 0 additions & 207 deletions products/dev-wallet/BUILD

This file was deleted.

12 changes: 12 additions & 0 deletions products/dev-wallet/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:16 as build-stage

WORKDIR /app
COPY . ./
RUN yarn install
RUN yarn ci
RUN yarn build

FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/build /usr/share/nginx/html
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]
4 changes: 3 additions & 1 deletion products/dev-wallet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ SHELL := /bin/bash

ENVIRONMENT ?= dev
VALID_ENVIRONMENTS := dev stg prd
IMAGE_TAG ?= localhost:5001/dev-wallet:latest

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

## Build and push the Docker image
image/build-and-push:
bazelisk run --test_output=all --keep_going //products/dev-wallet:push_image_${ENVIRONMENT}
docker build -t "${IMAGE_TAG}" .
docker push "${IMAGE_TAG}"
30 changes: 3 additions & 27 deletions products/dev-wallet/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
/* eslint-disable */
const webpack = require("webpack");

module.exports = function override(config) {
config.resolve.fallback = {
url: require.resolve("url"),
assert: require.resolve("assert"),
crypto: require.resolve("crypto-browserify"),
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
os: require.resolve("os-browserify/browser"),
buffer: require.resolve("buffer"),
stream: require.resolve("stream-browserify"),
string_decoder: require.resolve("string_decoder"),
events: require.resolve("events"),
};

config.plugins.push(
new webpack.ProvidePlugin({
process: "process/browser",
})
);
config.plugins.push(
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
})
);
const WorkerPlugin = require('worker-plugin');

module.exports = function override(config, env) {
config.plugins.push(new WorkerPlugin());
return config;
};
20 changes: 0 additions & 20 deletions products/dev-wallet/nginx/default.conf

This file was deleted.

Loading

0 comments on commit 32eff21

Please sign in to comment.