Skip to content

Commit

Permalink
Update plugin build process to use NPM.
Browse files Browse the repository at this point in the history
  • Loading branch information
bswatson committed Dec 8, 2022
1 parent 8683ef0 commit 0fcac92
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 16,023 deletions.
10 changes: 5 additions & 5 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ if [[ -z $( which rsync ) ]]; then
exit 1
fi

# Make sure we have pnpm available.
if [[ -z $( which pnpm ) ]]; then
error "Exiting: Could not find pnpm, please install it and try again."
# Make sure we have npm available.
if [[ -z $( which npm ) ]]; then
error "Exiting: Could not find npm, please install it and try again."
exit 1
fi

Expand Down Expand Up @@ -87,8 +87,8 @@ export MIX_BUILD_DIR="./dist/wme-sitebuilder/assets"

# Build production-ready assets with Laravel Mix.
step "Building production assets"
pnpm install
pnpm run production
npm install
npm run production

# Finally, create the output zip file.
#
Expand Down
Loading

0 comments on commit 0fcac92

Please sign in to comment.