mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-17 23:16:23 +00:00
The cli2 ("instance") system has a foundationally different assumption about how the frontend works: rather than having a unified frontend that abstracts over many separate SourceCred projects, we'll have a single frontend entry per instance. This means we no longer need (for example) to make project IDs available at build time. Our frontend setup and server side rendering is pretty complex, so rather than rebuild it from scratch, I'm going to fork it into an independent copy and then change it to suit our needs. To start here, I've duplicated the `src/homepage` directory into `src/homepage2`, duplicated the webpack config to `config/webpack.config.web2.js`, and duplicated the paths and package.json scripts. Test plan: Run `yarn start2` and it will start an identical frontend, using the duplicated directory. Run `yarn build2` and it will build a viable frontend into the `build2` directory. `build2` is gitignored.
30 lines
325 B
Plaintext
30 lines
325 B
Plaintext
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# production
|
|
/build
|
|
/build2
|
|
|
|
# backend
|
|
/bin
|
|
|
|
# api
|
|
/dist
|
|
|
|
# misc
|
|
data/
|
|
.token
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|