Skip to content

Commit ee9162c

Browse files
committed
more work
1 parent 9823513 commit ee9162c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

Makefile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
PROJECT_NAME=jquery-qrcode
2+
3+
all:
4+
5+
6+
build: minify homepage_build
7+
8+
minify:
9+
closurec --js src/jquery.qrcode.js --js_output_file jquery.qrcode.min.js
10+
11+
homepage_build:
12+
pandoc -A ~/.pandoc.header.html -s README.md -o index.html
13+
sed -i "s/github.com\/you/github.com\/jeromeetienne\/$(PROJECT_NAME)/g" index.html
14+
15+
#################################################################################
16+
# deploy #
17+
#################################################################################
18+
19+
deploy: build deployGhPage
20+
21+
deployGhPage:
22+
rm -rf /tmp/$(PROJECT_NAME)GhPages
23+
(cd /tmp && git clone git@github.com:jeromeetienne/$(PROJECT_NAME).git $(PROJECT_NAME)GhPages)
24+
(cd /tmp/$(PROJECT_NAME)GhPages && git checkout gh-pages)
25+
cp -a examples src Makefile README.md /tmp/$(PROJECT_NAME)GhPages
26+
(cd /tmp/$(PROJECT_NAME)GhPages && git add . && git commit -a -m "Another deployement" && git push origin gh-pages)
27+
#rm -rf /tmp/$(PROJECT_NAME)GhPages

src/jquery.qrcode.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
(function( $ ){
22
$.fn.qrcode = function(options) {
33

4-
// <% console.log(""); %>
5-
64
// if options is string,
75
if( typeof options === 'string' ){
86
options = { text: options };

0 commit comments

Comments
 (0)