mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-10 15:20:55 +00:00
27 lines
809 B
Bash
Executable File
27 lines
809 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function nodeCleanUp() {
|
|
rm -fr node_modules
|
|
yarn install --production=true
|
|
}
|
|
|
|
cd /home/frappe/frappe-bench/apps/frappe
|
|
yarn
|
|
yarn run production
|
|
# Remove this after python container starts using node command
|
|
yarn add nunjucks -D
|
|
|
|
if [[ "$GIT_BRANCH" =~ ^(version-12|version-11)$ ]]; then
|
|
nodeCleanUp
|
|
else
|
|
node generate_standard_style_css.js \
|
|
frappe/website/doctype/website_theme/website_theme_template.scss > \
|
|
/home/frappe/standard_templates_string
|
|
node generate_bootstrap_theme.js \
|
|
/home/frappe/frappe-bench/sites/assets/css/standard_style.css \
|
|
"$(cat /home/frappe/standard_templates_string)"
|
|
nodeCleanUp
|
|
# remove this when frappe framework moves this to dependencies from devDependencies
|
|
yarn add node-sass
|
|
fi
|