fix: post install also install billing dependencies
moved build command from esbuild.js to build.py
This commit is contained in:
parent
3cee6234d3
commit
61caa8324d
6 changed files with 1954 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -202,5 +202,4 @@ cypress/videos
|
|||
# frappecloud billing
|
||||
billing/node_modules
|
||||
frappe/public/billing
|
||||
billing/yarn.lock
|
||||
frappe/www/billing.html
|
||||
|
|
|
|||
|
|
@ -9,17 +9,17 @@
|
|||
"serve": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-vue": "^4.2.3",
|
||||
"@stripe/stripe-js": "^1.3.0",
|
||||
"@vueuse/core": "^11.2.0",
|
||||
"frappe-ui": "^v0.1.72",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"vite": "^4.4.9",
|
||||
"vue": "^3.4.12",
|
||||
"vue-router": "^4.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^4.2.3",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"postcss": "^8.4.5",
|
||||
"vite": "^4.4.9"
|
||||
"postcss": "^8.4.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1944
billing/yarn.lock
Normal file
1944
billing/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -503,12 +503,9 @@ function run_build_command_for_apps(apps) {
|
|||
let { execSync } = require("child_process");
|
||||
|
||||
for (let app of apps) {
|
||||
// if (app === "frappe") continue;
|
||||
if (app === "frappe") continue;
|
||||
|
||||
let root_app_path =
|
||||
app === "frappe"
|
||||
? path.resolve(apps_path, app, "billing")
|
||||
: path.resolve(apps_path, app);
|
||||
let root_app_path = path.resolve(apps_path, app);
|
||||
let package_json = path.resolve(root_app_path, "package.json");
|
||||
let node_modules = path.resolve(root_app_path, "node_modules");
|
||||
|
||||
|
|
|
|||
|
|
@ -252,6 +252,9 @@ def bundle(
|
|||
if save_metafiles:
|
||||
command += " --save-metafiles"
|
||||
|
||||
if not apps or apps == "frappe":
|
||||
command += " && cd billing && yarn build"
|
||||
|
||||
check_node_executable()
|
||||
frappe_app_path = frappe.get_app_source_path("frappe")
|
||||
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
"build": "node esbuild",
|
||||
"production": "node esbuild --production",
|
||||
"watch": "node esbuild --watch",
|
||||
"coverage:report": "npx nyc report --reporter=clover"
|
||||
"coverage:report": "npx nyc report --reporter=clover",
|
||||
"postinstall": "cd billing && yarn install"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue