Skip to content

Commit

Permalink
chore: add netlify configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Jul 11, 2021
1 parent d278f1b commit 35677db
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .netlify/netlify-plugin-pnpm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm")
await run.command("pnpm install")
} catch (error) {
return build.failBuild(error)
}
}
}
2 changes: 2 additions & 0 deletions .netlify/netlify-plugin-pnpm/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: netlify-plugin-pnpm
inputs: []
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ docker-examples/
build/
.vscode/
.github/
.netlify/
7 changes: 7 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[build]
command = "pnpm run build"
publish = "dist"

[[plugins]]
package = "/.netlify/netlify-plugin-pnpm"

0 comments on commit 35677db

Please sign in to comment.