Skip to content

Commit da002b6

Browse files
committed
move source files to src directory
1 parent 113f57c commit da002b6

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
stack.css
33
index.html
4+
dist

scripts/build

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
2-
sed -e 's/href/target="_blank" rel="noopener" href/g' stack.html > index.html
3-
node-sass stack.scss > stack.css
2+
sed -e 's/href/target="_blank" rel="noopener" href/g' src/stack.html > dist/index.html
3+
node-sass src/stack.scss > dist/stack.css

scripts/deploy

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/usr/bin/env sh
2-
git push origin master &&
3-
(git branch -D gh-pages || echo "no gh-pages branch to delete: passing") &&
4-
git checkout -b gh-pages &&
5-
npm run build &&
6-
git add index.html stack.css -f &&
7-
git commit -m 'update build' &&
8-
git push origin --force gh-pages &&
2+
3+
set -eu
4+
5+
git push origin master
6+
(git branch -D gh-pages || echo "no gh-pages branch to delete: passing")
7+
git checkout -b gh-pages
8+
npm run build
9+
cp dist/index.html dist/stack.css .
10+
git add index.html stack.css -f
11+
git commit -m 'update build'
12+
git push origin --force gh-pages
913
git checkout master
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)