|
|
@ -26,8 +26,8 @@ function remove_image() { |
|
|
|
function build_sdk(){ |
|
|
|
function build_sdk(){ |
|
|
|
# build nocodb-sdk |
|
|
|
# build nocodb-sdk |
|
|
|
cd ${SCRIPT_DIR}/packages/nocodb-sdk |
|
|
|
cd ${SCRIPT_DIR}/packages/nocodb-sdk |
|
|
|
npm ci || ERROR="sdk build failed" |
|
|
|
pnpm install --prod || ERROR="sdk build failed" |
|
|
|
npm run build || ERROR="sdk build failed" |
|
|
|
pnpm run build || ERROR="sdk build failed" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function build_gui(){ |
|
|
|
function build_gui(){ |
|
|
@ -35,8 +35,8 @@ function build_gui(){ |
|
|
|
export NODE_OPTIONS="--max_old_space_size=16384" |
|
|
|
export NODE_OPTIONS="--max_old_space_size=16384" |
|
|
|
# generate static build of nc-gui |
|
|
|
# generate static build of nc-gui |
|
|
|
cd ${SCRIPT_DIR}/packages/nc-gui |
|
|
|
cd ${SCRIPT_DIR}/packages/nc-gui |
|
|
|
npm ci || ERROR="gui build failed" |
|
|
|
pnpm install --prod || ERROR="gui build failed" |
|
|
|
npm run generate || ERROR="gui build failed" |
|
|
|
pnpm run generate || ERROR="gui build failed" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function copy_gui_artifacts(){ |
|
|
|
function copy_gui_artifacts(){ |
|
|
@ -48,7 +48,7 @@ function package_nocodb(){ |
|
|
|
#build nocodb |
|
|
|
#build nocodb |
|
|
|
# build nocodb ( pack nocodb-sdk and nc-gui ) |
|
|
|
# build nocodb ( pack nocodb-sdk and nc-gui ) |
|
|
|
cd ${SCRIPT_DIR}/packages/nocodb |
|
|
|
cd ${SCRIPT_DIR}/packages/nocodb |
|
|
|
npm install || ERROR="package_nocodb failed" |
|
|
|
pnpm install --prod || ERROR="package_nocodb failed" |
|
|
|
EE=true ./node_modules/.bin/webpack --config webpack.local.config.js || ERROR="package_nocodb failed" |
|
|
|
EE=true ./node_modules/.bin/webpack --config webpack.local.config.js || ERROR="package_nocodb failed" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|