Skip to content

Commit

Permalink
all: simplify config
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Jan 25, 2024
1 parent 224f28a commit 436cfd5
Show file tree
Hide file tree
Showing 15 changed files with 3,834 additions and 3,040 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT license

Copyright (C) 2020-2024 Hop Protocol
Copyright (C) 2020, Authereum Labs, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,32 @@

Install dependencies & link packages

npm install
npm run bootstrap
```bash
npm install
npm run build
```

Run frontend app in development
#### Guidelines for using NPM workspaces

cd packages/frontend
REACT_APP_NETWORK=mainnet npm run dev
All commands should be run from the root of the monorepo.

Visit [http://localhost:3000/](http://localhost:3000/)
```bash
# Install a single package
npm install -w <package_name>

# Build a single package
npm run build -w <package_name>

# Run an NPM script in all packages
npm run build --workspaces

```

**If you are developing on a single package only and need to ignore the rest of the packages**, you need to install with `--include-workspace-root`. This is because the installation of a single package does not install the root’s dependencies, which are usually needed for building and linting.

```bash
npm install -w @<package_name> --include-workspace-root
```

## Contributing

Expand Down
Loading

0 comments on commit 436cfd5

Please sign in to comment.