Skip to content

Commit

Permalink
fix: added production build code
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Aug 1, 2023
1 parent f95d17d commit c8597eb
Show file tree
Hide file tree
Showing 5 changed files with 1,743 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
*.pyc
*.egg-info
*.swp
__pycache__
tags
node_modules
node_modules
crm/public/frontend
crm/www/crm.html
build
8 changes: 8 additions & 0 deletions crm/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
app_description = "Kick-ass Open Source CRM"
app_email = "[email protected]"
app_license = "AGPLv3"
app_icon_url = ""
app_icon_title = "CRM"
app_icon_route = "/crm"

# required_apps = []

# Includes in <head>
Expand Down Expand Up @@ -44,6 +48,10 @@
# "Role": "home_page"
# }

website_route_rules = [
{"from_route": "/crm/<path:app_path>", "to_route": "crm"},
]

# Generators
# ----------

Expand Down
7 changes: 4 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry",
"copy-html-entry": "cp ../crm/public/frontend/index.html ../crm/www/crm.html",
"serve": "vite preview"
},
"dependencies": {
"feather-icons": "^4.28.0",
"frappe-ui": "^0.1.0-alpha.9",
"frappe-ui": "^0.1.0-alpha.11",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
"pinia": "^2.0.33"
Expand Down
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"private": true,
"workspaces": ["frappe-ui", "frontend"],
"scripts": {
"postinstall": "cd frontend && yarn install",
"dev": "cd frontend && yarn dev",
"build": "cd frontend && yarn build"
}
}
Loading

0 comments on commit c8597eb

Please sign in to comment.