Skip to content

Commit

Permalink
refactor: changed run build command
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Jun 29, 2024
1 parent ac6ebf0 commit f2058fd
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 48 deletions.
91 changes: 46 additions & 45 deletions run-build-for-gh-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,56 @@ log "Starting deployment script"
run_command "pwd"

# frontend-platform
# log "Processing frontend-platform"
# run_command "cd node_modules/@edx/" || exit
# log "Current directory: $(pwd)"
# run_command "rm -rf frontend-platform"
# run_command "mkdir frontend-platform" || exit
# run_command "ls -l"
# run_command "git clone -b dcoa/design-tokens-support --single-branch https://github.com/eduNEXT/frontend-platform.git frontend-platform-temp"
# run_command "cd frontend-platform-temp" || exit
# log "Current directory: $(pwd)"
# run_command "npm ci"
# run_command "ls -l node_modules"
# run_command "npm run build"
# run_command "ls -l"
# run_command "cp -r dist/. ../frontend-platform/" || exit
# run_command "cd .." || exit
# run_command "ls -l"
# log "Current directory: $(pwd)"
# run_command "rm -rf frontend-platform-temp"
# run_command "cd frontend-platform" || exit
# run_command "ls -l"
# run_command "cd ../../.."
# log "Current directory: $(pwd)"
log "Processing frontend-platform"
run_command "cd node_modules/@edx/" || exit
log "Current directory: $(pwd)"
run_command "rm -rf frontend-platform"
run_command "mkdir frontend-platform" || exit
run_command "ls -l"
run_command "git clone -b Peter_Kulko/design-tokens-support --single-branch https://github.com/raccoongang/frontend-platform.git frontend-platform-temp"
run_command "cd frontend-platform-temp" || exit
log "Current directory: $(pwd)"
run_command "cat package.json" || exit
run_command "npm ci"
run_command "ls -l node_modules"
run_command "npm run build"
run_command "ls -l"
run_command "cp -r dist/. ../frontend-platform/" || exit
run_command "cd .." || exit
run_command "ls -l"
log "Current directory: $(pwd)"
run_command "rm -rf frontend-platform-temp"
run_command "cd frontend-platform" || exit
run_command "ls -l"
run_command "cd ../../.."
log "Current directory: $(pwd)"

# frontend-build
# log "Processing frontend-build"
# run_command "cd node_modules/@openedx/" || exit
# log "Current directory: $(pwd)"
# run_command "rm -rf frontend-build"
# run_command "git clone -b dcoa/design-tokens-support --single-branch https://github.com/eduNEXT/frontend-build.git"
# run_command "cd frontend-build" || exit
# log "Current directory: $(pwd)"
# run_command "npm ci"
# run_command "cd ../../.." || exit
# log "Current directory: $(pwd)"
log "Processing frontend-build"
run_command "cd node_modules/@openedx/" || exit
log "Current directory: $(pwd)"
run_command "rm -rf frontend-build"
run_command "git clone -b dcoa/design-tokens-support --single-branch https://github.com/eduNEXT/frontend-build.git"
run_command "cd frontend-build" || exit
log "Current directory: $(pwd)"
run_command "npm ci"
run_command "cd ../../.." || exit
log "Current directory: $(pwd)"

# paragon
# log "Processing paragon"
# run_command "ls -l"
# run_command "cd node_modules/@openedx/" || exit
# log "Current directory: $(pwd)"
# run_command "rm -rf paragon"
# run_command "mkdir -p paragon"
# run_command "cd paragon" || exit
# log "Current directory: $(pwd)"
# run_command "npm pack @openedx/[email protected]"
# run_command "tar -xzf openedx-paragon-23.0.0-alpha.2.tgz --strip-components=1"
# run_command "rm openedx-paragon-23.0.0-alpha.2.tgz"
# run_command "cd ../../.." || exit
# log "Current directory: $(pwd)"
log "Processing paragon"
run_command "ls -l"
run_command "cd node_modules/@openedx/" || exit
log "Current directory: $(pwd)"
run_command "rm -rf paragon"
run_command "mkdir -p paragon"
run_command "cd paragon" || exit
log "Current directory: $(pwd)"
run_command "npm pack @openedx/[email protected]"
run_command "tar -xzf openedx-paragon-23.0.0-alpha.2.tgz --strip-components=1"
run_command "rm openedx-paragon-23.0.0-alpha.2.tgz"
run_command "cd ../../.." || exit
log "Current directory: $(pwd)"

# frontend-component-header
# log "Processing frontend-component-header"
Expand Down
6 changes: 3 additions & 3 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use "@openedx/paragon/styles/css/core/custom-media-breakpoints.css" as paragonCustomMediaBreakpoints;
// @use "@openedx/paragon/styles/css/core/custom-media-breakpoints.css" as paragonCustomMediaBreakpoints;

@import "~@edx/frontend-component-footer/dist/footer";
@import "~@edx/frontend-component-header/dist/index";
// @import "~@edx/frontend-component-footer/dist/footer";
// @import "~@edx/frontend-component-header/dist/index";

$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome";
Expand Down

0 comments on commit f2058fd

Please sign in to comment.