Skip to content

Commit d68870e

Browse files
committedDec 26, 2021
feat(website): init support for netlify
1 parent f39dc01 commit d68870e

File tree

5 files changed

+2608
-129
lines changed

5 files changed

+2608
-129
lines changed
 

‎.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ build
1515
*.lerna_backup
1616

1717
/stats
18-
/api/app.js
18+
/api/app.js
19+
# Local Netlify folder
20+
.netlify

‎Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ deploy-all: ##@0 global deploy website & storybook
8080
@$(MAKE) website-deploy
8181
@$(MAKE) storybook-deploy
8282

83+
netlify-build: website-build storybook-build ##@0 Build the website and storybook to netlify
84+
@cp -a storybook-static website/public/storybook
85+
8386
clean-all: ##@0 global uninstall node modules, remove transpiled code & lock files
8487
@rm -rf node_modules
8588
@rm -rf package-lock.json

‎netlify.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[build]
2+
base = "/"
3+
publish = "website/public/"
4+
command = "make netlify-build"

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"jsdom": "^19.0.0",
6161
"lerna": "^3.22.1",
6262
"lodash": "^4.17.21",
63+
"netlify-cli": "^8.4.2",
6364
"npm-normalize-package-bin": "^1.0.1",
6465
"prettier": "^2.5.1",
6566
"prop-types": "^15.7.2",

‎yarn.lock

+2,597-128
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.