Skip to content

Commit

Permalink
feat(website): init support for netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Dec 26, 2021
1 parent f39dc01 commit d68870e
Show file tree
Hide file tree
Showing 5 changed files with 2,608 additions and 129 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,6 @@ build
*.lerna_backup

/stats
/api/app.js
/api/app.js
# Local Netlify folder
.netlify
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -80,6 +80,9 @@ deploy-all: ##@0 global deploy website & storybook
@$(MAKE) website-deploy
@$(MAKE) storybook-deploy

netlify-build: website-build storybook-build ##@0 Build the website and storybook to netlify
@cp -a storybook-static website/public/storybook

clean-all: ##@0 global uninstall node modules, remove transpiled code & lock files
@rm -rf node_modules
@rm -rf package-lock.json
Expand Down
4 changes: 4 additions & 0 deletions netlify.toml
@@ -0,0 +1,4 @@
[build]
base = "/"
publish = "website/public/"
command = "make netlify-build"
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -60,6 +60,7 @@
"jsdom": "^19.0.0",
"lerna": "^3.22.1",
"lodash": "^4.17.21",
"netlify-cli": "^8.4.2",
"npm-normalize-package-bin": "^1.0.1",
"prettier": "^2.5.1",
"prop-types": "^15.7.2",
Expand Down

0 comments on commit d68870e

Please sign in to comment.