Skip to content

Commit e899784

Browse files
chore: test build and platform updates
PR to get a sandbox that tests using design tokens versions of frontend-build and frontend-platform without changing this MFE to use design tokens this is to verify that it is safe to merge the design tokens support PRs to frontend-build and frontend-platform and that they do not contain any breaking changes
1 parent db883ca commit e899784

File tree

2 files changed

+103
-1
lines changed

2 files changed

+103
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"extends @edx/browserslist-config"
1111
],
1212
"scripts": {
13-
"build": "fedx-scripts webpack",
13+
"build": "sh run-build-for-gh-deps.sh",
1414
"i18n_extract": "fedx-scripts formatjs extract",
1515
"lint": "fedx-scripts eslint --ext .js --ext .jsx .",
1616
"lint:fix": "fedx-scripts eslint --ext .js --ext .jsx . --fix",

run-build-for-gh-deps.sh

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#!/bin/bash
2+
3+
# TODO: This file is temporary and will be removed after testing
4+
5+
log() {
6+
echo "=============================== $1 ==============================="
7+
}
8+
9+
run_command() {
10+
echo "\$ $1"
11+
eval $1
12+
}
13+
14+
log "Starting deployment script"
15+
run_command "pwd"
16+
17+
# frontend-platform
18+
log "Processing frontend-platform"
19+
run_command "cd node_modules/@edx/" || exit
20+
log "Current directory: $(pwd)"
21+
run_command "rm -rf frontend-platform"
22+
run_command "mkdir frontend-platform" || exit
23+
run_command "ls -l"
24+
run_command "git clone -b dcoa/design-tokens-support --single-branch https://github.com/eduNEXT/frontend-platform.git frontend-platform-temp"
25+
run_command "cd frontend-platform-temp" || exit
26+
log "Current directory: $(pwd)"
27+
run_command "cat package.json" || exit
28+
run_command "ls -l"
29+
run_command "cp -r dist/. ../frontend-platform/" || exit
30+
run_command "cd .." || exit
31+
run_command "ls -l"
32+
log "Current directory: $(pwd)"
33+
run_command "rm -rf frontend-platform-temp"
34+
run_command "cd frontend-platform" || exit
35+
run_command "ls -l"
36+
run_command "cd ../../.."
37+
log "Current directory: $(pwd)"
38+
39+
# frontend-build
40+
log "Processing frontend-build"
41+
run_command "cd node_modules/@openedx/" || exit
42+
log "Current directory: $(pwd)"
43+
run_command "rm -rf frontend-build"
44+
run_command "git clone -b dcoa/design-tokens-support --single-branch https://github.com/eduNEXT/frontend-build.git"
45+
run_command "cd frontend-build" || exit
46+
log "Current directory: $(pwd)"
47+
run_command "npm ci"
48+
run_command "cd ../../.." || exit
49+
log "Current directory: $(pwd)"
50+
51+
# # paragon
52+
# log "Processing paragon"
53+
# run_command "ls -l"
54+
# run_command "cd node_modules/@openedx/" || exit
55+
# log "Current directory: $(pwd)"
56+
# run_command "rm -rf paragon"
57+
# run_command "mkdir -p paragon"
58+
# run_command "cd paragon" || exit
59+
# log "Current directory: $(pwd)"
60+
# run_command "npm pack @openedx/paragon@23.0.0-alpha.2"
61+
# run_command "tar -xzf openedx-paragon-23.0.0-alpha.2.tgz --strip-components=1"
62+
# run_command "rm openedx-paragon-23.0.0-alpha.2.tgz"
63+
# run_command "cd ../../.." || exit
64+
# log "Current directory: $(pwd)"
65+
66+
# # frontend-component-header
67+
# log "Processing frontend-component-header"
68+
# run_command "cd node_modules/@edx/" || exit
69+
# log "Current directory: $(pwd)"
70+
# run_command "rm -rf frontend-component-header"
71+
# run_command "mkdir frontend-component-header" || exit
72+
# run_command "git clone -b Peter_Kulko/support-design-tokens --single-branch https://github.com/PKulkoRaccoonGang/frontend-component-header.git frontend-component-header-temp"
73+
# run_command "cd frontend-component-header-temp" || exit
74+
# log "Current directory: $(pwd)"
75+
# run_command "cp -r dist ../frontend-component-header/" || exit
76+
# run_command "cp -r package.json ../frontend-component-header/" || exit
77+
# run_command "cd .."
78+
# run_command "rm -rf frontend-component-header-temp"
79+
# run_command "cd ../.." || exit
80+
# log "Current directory: $(pwd)"
81+
82+
# # frontend-component-footer
83+
# log "Processing frontend-component-footer"
84+
# run_command "cd node_modules/@edx/" || exit
85+
# log "Current directory: $(pwd)"
86+
# run_command "rm -rf frontend-component-footer"
87+
# run_command "mkdir frontend-component-footer" || exit
88+
# run_command "git clone -b Peter_Kulko/support-design-tokens --single-branch https://github.com/PKulkoRaccoonGang/frontend-component-footer.git frontend-component-footer-temp"
89+
# run_command "cd frontend-component-footer-temp" || exit
90+
# log "Current directory: $(pwd)"
91+
# run_command "cp -r dist ../frontend-component-footer/" || exit
92+
# run_command "cp -r package.json ../frontend-component-footer/" || exit
93+
# run_command "cd .."
94+
# run_command "rm -rf frontend-component-footer-temp"
95+
# run_command "cd ../.." || exit
96+
# log "Current directory: $(pwd)"
97+
98+
# webpack
99+
log "Running webpack"
100+
run_command "fedx-scripts webpack"
101+
102+
log "Deployment script finished."

0 commit comments

Comments
 (0)