File tree Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ start().catch((error) => {
1111
1212async function start ( ) {
1313 const {
14- argv : { buildTypes, parallel } ,
14+ argv : { buildTypes, parallel, devMode } ,
1515 } = yargs ( hideBin ( process . argv ) ) . usage (
1616 '$0 [options]' ,
1717 'Generate the LavaMoat policy file for one more more build types.' ,
@@ -31,13 +31,22 @@ async function start() {
3131 description : 'Whether to generate policies in parallel.' ,
3232 type : 'boolean' ,
3333 } )
34+ . option ( 'devMode' , {
35+ alias : [ 'd' ] ,
36+ default : false ,
37+ demandOption : true ,
38+ description :
39+ 'Whether to run the process under lavamoat (devMode=false) or node (devMode=true)' ,
40+ type : 'boolean' ,
41+ } )
3442 . strict ( ) ,
3543 ) ;
3644
45+ const buildCommand = devMode ? 'build:dev' : 'build' ;
3746 await concurrently (
3847 ( Array . isArray ( buildTypes ) ? buildTypes : [ buildTypes ] ) . map (
3948 ( buildType ) => ( {
40- command : `yarn build scripts:dist --policy-only --build-type=${ buildType } ` ,
49+ command : `yarn ${ buildCommand } scripts:dist --policy-only --lint-fence-files=false --build-type=${ buildType } ` ,
4150 env : {
4251 WRITE_AUTO_POLICY : 1 ,
4352 } ,
Original file line number Diff line number Diff line change 7373 "lavamoat:build" : " lavamoat development/build/index.js --policy lavamoat/build-system/policy.json --policyOverride lavamoat/build-system/policy-override.json" ,
7474 "lavamoat:build:auto" : " yarn lavamoat:build --writeAutoPolicy" ,
7575 "lavamoat:debug:build" : " yarn lavamoat:build --writeAutoPolicyDebug --policydebug lavamoat/build-system/policy-debug.json" ,
76- "lavamoat:background :auto" : " node ./development/generate-lavamoat-policies.js" ,
77- "lavamoat:background :auto:ci" : " node ./development/generate-lavamoat-policies.js --parallel=false" ,
78- "lavamoat:auto" : " yarn lavamoat:build:auto && yarn lavamoat:background :auto" ,
79- "lavamoat:auto:ci" : " yarn lavamoat:build:auto && yarn lavamoat:background :auto:ci" ,
76+ "lavamoat:webapp :auto" : " node ./development/generate-lavamoat-policies.js --devMode=true " ,
77+ "lavamoat:webapp :auto:ci" : " node ./development/generate-lavamoat-policies.js --parallel=false" ,
78+ "lavamoat:auto" : " yarn lavamoat:build:auto && yarn lavamoat:webapp :auto" ,
79+ "lavamoat:auto:ci" : " yarn lavamoat:build:auto && yarn lavamoat:webapp :auto:ci" ,
8080 "ts-migration:enumerate" : " ts-node development/ts-migration-dashboard/scripts/write-list-of-files-to-convert.ts" ,
8181 "ts-migration:dashboard:watch" : " ts-node development/ts-migration-dashboard/scripts/build.ts --watch" ,
8282 "ts-migration:dashboard:build" : " ts-node development/ts-migration-dashboard/scripts/build.ts" ,
Original file line number Diff line number Diff line change @@ -58,9 +58,6 @@ import BetaHomeFooter from './beta/beta-home-footer.component';
5858import FlaskHomeFooter from './flask/flask-home-footer.component' ;
5959///: END:ONLY_INCLUDE_IN
6060
61- const LEARN_MORE_URL =
62- 'https://metamask.zendesk.com/hc/en-us/articles/360045129011-Intro-to-MetaMask-v8-extension' ;
63-
6461function shouldCloseNotificationPopup ( {
6562 isNotification,
6663 totalUnapprovedCount,
@@ -526,8 +523,12 @@ export default class Home extends PureComponent {
526523 } }
527524 footer = {
528525 < >
529- < a href = { LEARN_MORE_URL } target = "_blank" rel = "noopener noreferrer" >
530- { t ( 'learnMore' ) }
526+ < a
527+ href = { ZENDESK_URLS . USER_GUIDE_DAPPS }
528+ target = "_blank"
529+ rel = "noopener noreferrer"
530+ >
531+ { t ( 'learnMoreUpperCase' ) }
531532 </ a >
532533 < Button
533534 type = "primary"
You can’t perform that action at this time.
0 commit comments