mirror of
https://github.com/placeholder-soft/web.git
synced 2026-01-12 17:02:57 +08:00
b6df0ab1cb265d2d13f04a6b1d2f2bff17adc3f9
* Added Amplitude Experiments Initialization to initCCA * create useVariant hook to pull experimental variants * refactored useVariant to create simpler interface * linted * automated defaultDeploymentKey logic * added defaultDeploymentKey for prod env * Created ExperimentsContext for web app * added more specificity to amplitude domains for CSP * additional properties on eventData * added amplitude deployment keys to constants * deleted unused useVariant hook * refactored experiment initialization in initCCA * refactored Experiments context * refactored usage of Experiments provider * refactored ampDeploymentKey logic * removed experiment initialization from initCCA * restored index page to prior state * refactored initCCA to pull constants into dedicated file * created Experiments context in base-docs * implemented experiments context in base-docs Root * moved Experiments context to libs * updated Experiments context integration in base-web * fixed import statement * deleted unused context in favor of shared version in libs * implemented shared experiments context * moved Experiments context to be innermost context provider in base-web * removed unused imports from initCCA * refactored Amplitude Experiments package into libs * fixed yarn issue * added type declaration for * refactored window type declaration
chore: runs yarn dedupe and enforces a consistent version resolution for coinbase cookie manager (#644)
Base Web
Base is a secure, low-cost, developer-friendly Ethereum L2 built to bring the next billion users onchain. It's built on Optimism’s open-source OP Stack.
Setup
- Ensure
nvmis installed. - Clone the repository.
- If
nvmdoesn't auto-load the Node.js environment when changing to the repo directory, runnvm use. - Enable Yarn by running
corepack enable.
Getting started
After cloning the repository begin by installing dependencies at the root.
yarn
yarn build
Local development
To start a development server on localhost, run yarn workspace @app/<project> dev.
For example, to start the web app locally, you would run yarn workspace @app/web dev.
Projects
There are three projects which can be run individually.
Web
yarn workspace @app/web dev
Docs
yarn workspace @app/base-docs dev
Bridge
yarn workspace @app/bridge dev
Contribution
We welcome contributions to Base! To contribute, please see CONTRIBUTING.md.
Description
Languages
TypeScript
81.5%
JavaScript
14.2%
CSS
3.7%
MDX
0.3%
Shell
0.2%
