Skip to content

Commit c490d26

Browse files
author
dave thompson
committed
1 parent a9eafda commit c490d26

File tree

391 files changed

+761
-5106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+761
-5106
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist
2+
dev
23
node_modules
34
.DS_Store
45
*.keystore

README.md

Lines changed: 54 additions & 23 deletions

bin/build

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/bin/bash
22

3-
dist="$(dirname ${1})/dist/$(basename ${1})"
4-
zipDist="${dist}/$(basename ${1}).zip"
5-
echo "building presentation ${1} -> ${dist}"
6-
rm -rf ${dist}
7-
webpack --config="webpack.config.js" --entry="${1}/index.js" --output-path="${dist}" --output-filename="index.js" && \
8-
echo "zipping presentation ${dist}/* -> ${zipDist}" && \
9-
zip -r "${zipDist}" "${dist}/"
3+
if [[ ${1} =~ ^(./)?presentations ]]; then
4+
docs="docs/$(basename ${1})"
5+
else
6+
docs="$(dirname ${1})/docs/$(basename ${1})"
7+
fi
8+
zip="${docs}/$(basename ${1}).zip"
9+
echo "building presentation ${1} -> ${docs}"
10+
rm -rf ${docs}
11+
webpack --config="webpack.config.js" --entry="${1}/index.js" --output-path="${docs}" --output-filename="index.js" && \
12+
echo "zipping presentation ${docs}/* -> ${zip}" && \
13+
zip -r "${zip}" "${docs}/"

bin/build-dev

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22

3-
npm run build $1
4-
dist="$(dirname ${1})/dist/$(basename ${1})"
5-
webpack-dev-server --debug --entry=${1}/index.js --output-path=${dist} --output-filename=index.js --contentBase="${dist}/" --port 9001 --host 0.0.0.0 --inline true
3+
dev="$(dirname ${1})/dev/$(basename ${1})"
4+
webpack-dev-server --debug --entry=${1}/index.js --output-path=${dev} --output-filename=index.js --contentBase="${dev}/" --port 9001 --host 0.0.0.0 --inline true

docs/README.md

Lines changed: 1 addition & 0 deletions

docs/example/agile-central.png

-20.7 KB
Binary file not shown.

docs/example/agile.png

-16.7 KB
Binary file not shown.

docs/example/alignment.png

-28.2 KB
Binary file not shown.

docs/example/android-form.png

-40.9 KB
Binary file not shown.
-38.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)