Skip to content

Commit

Permalink
Merge pull request #194 from wizeline/netlify-setup
Browse files Browse the repository at this point in the history
Add netlify setup
  • Loading branch information
charliesbot authored Nov 20, 2018
2 parents 3bcca75 + 51531ac commit 472a132
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 50 deletions.
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: build-tea build-site clean

build-tea:
cd design-system/; \
yarn; \
yarn build

build-site: build-tea
cd site/; \
yarn; \
yarn build

clean:
rm -rf design-system/node_modules

11 changes: 11 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Global settings applied to the whole site.
#
# ?publish? is the directory to publish (relative to root of your repo),
# ?command? is your build command,
# ?base? is directory to change to before starting build. if you set base:
# that is where we will look for package.json/.nvmrc/etc not repo root!

[build]
base = ""
publish = "site/catalog/build"
command = "npm i -g [email protected] && make build-site"
3 changes: 1 addition & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"start": "catalog start",
"build": "catalog build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"deploy": "yarn build && surge --project ./catalog/build --domain wizeline-tea.surge.sh"
"eject": "react-scripts eject"
}
}

0 comments on commit 472a132

Please sign in to comment.