mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-27 11:52:46 +00:00
19 lines
376 B
Bash
Executable File
19 lines
376 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
|
|
|
|
if [[ "$GIT_BRANCH" =~ ^(version-12|version-11)$ ]]; then
|
|
nodeCleanUp
|
|
else
|
|
nodeCleanUp
|
|
# remove this when frappe framework moves this to dependencies from devDependencies
|
|
yarn add node-sass
|
|
fi
|