Skip to content

Commit d9bddb6

Browse files
committed
Add build script
1 parent 19d47fc commit d9bddb6

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
mkdir temp && cp -r ./README.md ./images/* temp
4+
perl -i -0777 -pe 's/(<!--toc-->).*(<!--endtoc-->)/'"$"'$2/s' ./temp/README.md
5+
mv ./temp/README.md ./temp/index.md
6+
./node_modules/.bin/generate-md --layout minko-book --input ./temp --output ../angularjs-in-patterns-gh-pages
7+
rm -rf temp

gulpfile.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
"gitHead": "2009434a6dfdbe5f06f81253fb853840af753b36",
1616
"readmeFilename": "README.md",
1717
"devDependencies": {
18-
"gulp": "^3.8.10",
19-
"markdown-styles": "https://github.com/mgechev/markdown-styles/tarball/master",
20-
"gulp-shell": "^0.2.11"
18+
"markdown-styles": "https://github.com/mgechev/markdown-styles/tarball/master"
2119
}
2220
}

0 commit comments

Comments
 (0)