From 6c5777241dc0a9939255eefcf19be1a7c66363cb Mon Sep 17 00:00:00 2001 From: Manh Hung Nguyen Date: Wed, 8 Nov 2023 13:49:35 +0700 Subject: [PATCH 1/2] Update readme.md --- README.md | Bin 66 -> 3130 bytes package-lock.json | 2 +- package.json | 7 +++++-- .../ManagementSite/Alloy.ManagementSite.csproj | 2 +- samples/ManagementSite/package.json | 4 +++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 93cb84c3d1dfb08a27bd4c50696185134d593238..2aa8b3cfb83214a1351d49142bde0f9e120a9ec1 100644 GIT binary patch literal 3130 zcmb_eZBG+H5T4H_{)aVuwNyb3@skyzpwSR&{4706d(gMsR*0s*9etje&g~uTAqBJP zb#HfOo@Zz0<^J4kNsvS7%c-2n2>%fy$OoB9A!E!wNf*zq9LQ&RDo^zHO@@-IoIOu( z$px9gUM81#4q!9L92%#12K@JdGgIvX^9gYKzzWz8a$e&0@E);qhSe#g0@(Cnfjnu6 z(tKX34QdvUBV%F_^R82Mu!uI`ikHJ#r;S``^KQjJI61sZ#(q%G=UM z3rHL*rweFi*bN&G+BkrAgnj|68LZ?>Z!}q3Cv$V{27A z8O}S#xtK-nC1cHe-ogm-5j%4Xx7)?sVwxG~c~4nNGiRbojNof#qxsq8_OWVc0diCL ztH7C=KjcE+k|i@gC}Oe|bhqgaEVEe)da#)Tg%;e>6;}Fkjg^SmTv4oYctz-e#}pE* zD+RLO`M%UjP-RVD(_=32LpUO;1XnEg28v?w=cgS4cMeTff;NW93^ii5_4H$`(l)CN zSzPI}t$U1MyP=lWuxd?il@Z*M3+Q_GY%ej$%UGsaoo}Yz;tf0mCt2l;zn!vvR`0J~ zKb!9}-J92QulR0%ozExm9BX_5k1`JE!#U|2L@yxDgF^@6uJ zMBK0ovmTm%bLg=LReSzdtkM78ofr59U{#K=!Y?Y;D-JSQtn}yA74PBRWinWguy}@l z*6Ib`?CYbD7r;2g-Zgsavl4^xz)G1I{Y%4or^|^Lr!Z0{bEngM0xhXZy7}*jZZVx8^yds<}n~GOup;3tC!@ z8<%$8>#CS{3F{H;l^JY}5Mxu^=Nu8Whuhpkg>C8;i~=Im^T8_e3AlO={vS5GV8hX_ GVEzSyc;T=B delta 11 Scmdlb;l%v^pYr7Qto8sNVFdmF diff --git a/package-lock.json b/package-lock.json index 488e987..8d14b8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23210,7 +23210,7 @@ "@optimizely/forms-sdk": { "version": "file:src/@optimizely/forms-sdk", "requires": { - "@types/jest": "*", + "@types/jest": "^29.5.6", "@typescript-eslint/eslint-plugin": "^6.7.0", "eslint": "^8.49.0", "eslint-config-prettier": "^9.0.0", diff --git a/package.json b/package.json index 86caf10..52f41bf 100644 --- a/package.json +++ b/package.json @@ -12,14 +12,17 @@ "license": "ISC", "private": true, "scripts": { + "setup-database": "setup.cmd", + "setup-backend":"npm run setup -w managementsite", "setup-react-app":"npm install -w sample-react-app", "setup-forms-sdk":"npm install -w @optimizely/forms-sdk", "setup-forms-react":"npm install -w @optimizely/forms-react", - "setup":"npm run setup-forms-sdk && npm run setup-forms-react && npm run setup-react-app", + "setup":"npm run setup-forms-sdk && npm run setup-forms-react && npm run setup-react-app && npm run setup-backend && npm run setup-database", + "build-backend":"npm run build -w managementsite", "build-forms-sdk":"npm run build -w @optimizely/forms-sdk", "build-forms-react":"npm run build -w @optimizely/forms-react", - "build": "npm run build-forms-sdk && npm run build-forms-react", + "build": "npm run build-forms-sdk && npm run build-forms-react && npm run build-backend", "test-forms-sdk":"npm run test -w @optimizely/forms-sdk", "test": "npm run test-forms-sdk", diff --git a/samples/ManagementSite/Alloy.ManagementSite.csproj b/samples/ManagementSite/Alloy.ManagementSite.csproj index 5df015f..196ddf7 100644 --- a/samples/ManagementSite/Alloy.ManagementSite.csproj +++ b/samples/ManagementSite/Alloy.ManagementSite.csproj @@ -19,7 +19,7 @@ - + diff --git a/samples/ManagementSite/package.json b/samples/ManagementSite/package.json index 550b2f8..7a54d21 100644 --- a/samples/ManagementSite/package.json +++ b/samples/ManagementSite/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "start": "dotnet run" + "start": "dotnet run", + "setup": "dotnet restore", + "build": "dotnet build" }, "keywords": [], "author": "", From 439039d1b3c0ce261cc39dc97859fad571dd008a Mon Sep 17 00:00:00 2001 From: Manh Hung Nguyen Date: Wed, 8 Nov 2023 14:07:44 +0700 Subject: [PATCH 2/2] remove build backend script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 52f41bf..957e43f 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build-backend":"npm run build -w managementsite", "build-forms-sdk":"npm run build -w @optimizely/forms-sdk", "build-forms-react":"npm run build -w @optimizely/forms-react", - "build": "npm run build-forms-sdk && npm run build-forms-react && npm run build-backend", + "build": "npm run build-forms-sdk && npm run build-forms-react", "test-forms-sdk":"npm run test -w @optimizely/forms-sdk", "test": "npm run test-forms-sdk",