Skip to content

Commit

Permalink
revert: Vite (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Jan 19, 2024
1 parent 42e2756 commit 24b39f7
Show file tree
Hide file tree
Showing 101 changed files with 23,350 additions and 16,003 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
working-directory: ./webapp
steps:
- uses: actions/checkout@master
- name: Use Node.js 18.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 16.x
- name: Install
run: npm ci --legacy-peer-deps
- name: Audit signatures
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Publish
uses: menduz/oddish-action@master
with:
cwd: ./webapp/dist
cwd: ./webapp/build
deterministic-snapshot: true
registry-url: "https://registry.npmjs.org"
access: public
Expand All @@ -55,6 +55,6 @@ jobs:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
sourcemaps: ${{ github.workspace }}/webapp/dist
sourcemaps: ${{ github.workspace }}/webapp/build
version: "${{ vars.SENTRY_RELEASE_PREFIX }}@${{ github.event.release.tag_name }}"
url_prefix: "~"
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
working-directory: ./webapp
steps:
- uses: actions/checkout@master
- name: Use Node.js 18.x
uses: actions/setup-node@v4.0.1
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 18.x
cache: "npm"
cache-dependency-path: webapp/package-lock.json
node-version: 16.x
- name: Install
run: npm install --legacy-peer-deps
run: npm ci --legacy-peer-deps
- name: Test
run: npm run test:coverage
- name: report coverage
Expand Down
4 changes: 0 additions & 4 deletions webapp/.env.default

This file was deleted.

3 changes: 3 additions & 0 deletions webapp/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_DCL_DEFAULT_ENV=dev
GEN_STATIC_LOCAL=true
PUBLIC_URL=/
37 changes: 37 additions & 0 deletions webapp/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const { override, babelInclude } = require('customize-cra')
const path = require('path')

const overridedConfig = override(
babelInclude([
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules/react-virtualized-auto-sizer'),
path.resolve(
__dirname,
'node_modules/decentraland-connect/node_modules/@walletconnect'
),
path.resolve('node_modules/@metamask/utils/node_modules/superstruct'),
path.resolve(__dirname, 'node_modules/@walletconnect'),
path.resolve(__dirname, 'node_modules/@dcl/single-sign-on-client'),
path.resolve(__dirname, 'node_modules/@0xsquid/sdk'),
path.resolve(__dirname, 'node_modules/@cosmjs'),
path.resolve(__dirname, 'node_modules/cosmjs-types'),
path.resolve(__dirname, 'node_modules/ethers-multicall-provide'),
path.resolve(__dirname, 'node_modules/@noble'),
path.resolve(__dirname, 'node_modules/decentraland-connect/node_modules/ethers')
])
)

const jestConfig = config => {
config.transformIgnorePatterns = [
'node_modules/?!@0xsquid|eccrypto|libsodium-wrappers-sumo'
]
config.moduleNameMapper = {
...config.moduleNameMapper,
'@dcl/single-sign-on-client': 'identity-obj-proxy',
}
return config
}

overridedConfig.jest = jestConfig // looks counter-intuitive, but it works

module.exports = overridedConfig
31 changes: 0 additions & 31 deletions webapp/index.html

This file was deleted.

32 changes: 0 additions & 32 deletions webapp/jest.config.ts

This file was deleted.

Loading

0 comments on commit 24b39f7

Please sign in to comment.