Skip to content

Commit

Permalink
Update Vue apps to vite 4 (#1649)
Browse files Browse the repository at this point in the history
* Update to vite 4. Can remove build-dev command as build type is now predicated on an ENV variable

* Update dependencies more generally, except for Vuex.
  • Loading branch information
lfarrell authored Jan 5, 2024
1 parent 7bed46d commit 5a7e7a0
Show file tree
Hide file tree
Showing 6 changed files with 3,945 additions and 18,175 deletions.
10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ endif
build-admin-npm:
# Build vue permissions application files
npm --prefix static/js/admin/vue-permissions-editor ci

ifeq ($(DEPLOY_TYPE), prod)
npm --prefix static/js/admin/vue-permissions-editor run build
else
npm --prefix static/js/admin/vue-permissions-editor run build-dev
endif

cp static/js/admin/vue-permissions-editor/dist/assets/vue-permissions-index.js static/js/vue-permissions-index.js

Expand Down Expand Up @@ -87,12 +82,7 @@ SUSPEND = "n"
build-access-npm:
# Build vue application(s) files
npm --prefix static/js/vue-cdr-access ci

ifeq ($(DEPLOY_TYPE), prod)
npm --prefix static/js/vue-cdr-access run build
else
npm --prefix static/js/vue-cdr-access run build-dev
endif

# Minify viewer.js file for pdf viewer (Uncomment the lines below if changes are made to the viewer.js file. Requires nodejs 15.x or higher)
# npm install minify -g
Expand Down
1 change: 1 addition & 0 deletions static/js/admin/vue-permissions-editor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ yarn-error.log*
*.njsproj
*.sln
*.sw?
.env
Loading

0 comments on commit 5a7e7a0

Please sign in to comment.