mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-21 17:37:01 +01:00
48c02ef641
Validation has been added to the build script when the "prod" target is selected. We now ensure that all expected environment variables are set, and that no extra environment variables are present (which might indicate that the wrong configuration file is being used). The `prod` target uses a new `.metamaskprodrc` configuration file. Each required variable can be specified either via environment variable or via this config file. CI will continue set these via environment variable, but for local manual builds we can use the config file to simplify the build process and ensure consistency. A new "dist" target has been added to preserve the ability to build a "production-like" build without this validation. The config validation is invoked early in the script, in the CLI argument parsing step, so that it would fail more quickly. Otherwise we'd have to wait a few minutes longer for the validation to run. This required some refactoring, moving functions to the utility module and moving the config to a dedicated module. Additionally, support has been added for all environment variables to be set via the config file. Previously the values `PUBNUB_PUB_KEY`, `PUBNUB_SUB_KEY`, `SENTRY_DSN`, and `SWAPS_USE_DEV_APIS` could only be set via environment variable. Now, all of these variables can be set either way. Closes #15003
56 lines
598 B
Plaintext
56 lines
598 B
Plaintext
npm-debug.log
|
|
yarn-error.log
|
|
node_modules
|
|
package-lock.json
|
|
|
|
audit.json
|
|
|
|
app/bower_components
|
|
test/bower_components
|
|
package
|
|
.eslintcache
|
|
|
|
# IDEs
|
|
.idea
|
|
.vscode
|
|
.sublime-project
|
|
|
|
*.bak
|
|
|
|
# VIM
|
|
*.swp
|
|
*.swo
|
|
|
|
temp
|
|
.tmp
|
|
.sass-cache
|
|
.DS_Store
|
|
app/.DS_Store
|
|
|
|
storybook-build/
|
|
coverage/
|
|
jest-coverage/
|
|
dist
|
|
builds/
|
|
builds.zip
|
|
development/ts-migration-dashboard/build
|
|
development/ts-migration-dashboard/intermediate
|
|
|
|
test-artifacts
|
|
test-builds
|
|
build-artifacts
|
|
|
|
#ignore css output and sourcemaps
|
|
ui/css/output/
|
|
|
|
notes.txt
|
|
|
|
.nyc_output
|
|
|
|
# MetaMask configuration
|
|
.metamaskrc
|
|
.metamaskprodrc
|
|
|
|
# TypeScript
|
|
tsout/
|