Skip to content

Commit

Permalink
Add site
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenkiss committed Feb 22, 2018
1 parent 6221420 commit 6ae7019
Show file tree
Hide file tree
Showing 26 changed files with 14,048 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ local.properties
.texlipse

### Intellij
**/.idea/workspace.xml
**/.idea/tasks.xml
.idea

### Scala/sbt
.cache/
Expand Down
3 changes: 3 additions & 0 deletions site/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-static/.babelrc"
}
15 changes: 15 additions & 0 deletions site/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# top-most EditorConfig file
root = true

[Makefile]
indent_style = tab

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

[*.{js,jsx,ts,tsx,css,json,sh,yml,html,md}]
charset = utf-8
indent_style = space
indent_size = 2
19 changes: 19 additions & 0 deletions site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# dependencies
/node_modules

# testing
/coverage

# production
/dist

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
27 changes: 27 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
react-static=./node_modules/react-static/bin/react-static
serve=./node_modules/serve/bin/serve.js

# Smart install: Only executes if package.json's
# modification date is later than node_module's
install: node_modules

node_modules: package.json
npm install
@touch -m node_modules

run: node_modules
$(react-static) start

build: node_modules public src .babelrc static.config.js
$(react-static) build

serve:
$(react-static) build

publish: build
rm -rf gh-pages
git clone -b gh-pages --single-branch --depth 1 git@github.com:eugenkiss/7guis.git gh-pages
rm -rf gh-pages/*
cp -r dist/* gh-pages/
cd gh-pages && git add . && git commit --amend -m "Update site" && git push -f
rm -rf gh-pages
Loading

0 comments on commit 6ae7019

Please sign in to comment.