mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-09 12:15:56 +00:00
8ed0585bb6
Summary: This re-packages the build for the internal APIs exposed under #1526 to be more browser-friendly. Removing `target: "node"` (and adding an explicit `globalObject: "this"` for best-effort cross-compatibility) is the biggest change from the backend build; removing all the extra loaders and static site generation is the biggest change from the frontend build. This build configuration is forked from `webpack.config.backend.js`. Test Plan: Run `yarn api`, then upload the contents of `dist/api.js` to an Observable notebook and require it as an ES module. Verify that the SourceCred APIs are exposed: e.g., `sourcecred.core.graph.Graph` should be a valid constructor. wchargin-branch: api-build
29 lines
317 B
Plaintext
29 lines
317 B
Plaintext
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# production
|
|
/build
|
|
|
|
# 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*
|