more work
This commit is contained in:
parent
982351341a
commit
ee9162c3bc
2 changed files with 27 additions and 2 deletions
27
Makefile
27
Makefile
|
|
@ -0,0 +1,27 @@
|
|||
PROJECT_NAME=jquery-qrcode
|
||||
|
||||
all:
|
||||
|
||||
|
||||
build: minify homepage_build
|
||||
|
||||
minify:
|
||||
closurec --js src/jquery.qrcode.js --js_output_file jquery.qrcode.min.js
|
||||
|
||||
homepage_build:
|
||||
pandoc -A ~/.pandoc.header.html -s README.md -o index.html
|
||||
sed -i "s/github.com\/you/github.com\/jeromeetienne\/$(PROJECT_NAME)/g" index.html
|
||||
|
||||
#################################################################################
|
||||
# deploy #
|
||||
#################################################################################
|
||||
|
||||
deploy: build deployGhPage
|
||||
|
||||
deployGhPage:
|
||||
rm -rf /tmp/$(PROJECT_NAME)GhPages
|
||||
(cd /tmp && git clone git@github.com:jeromeetienne/$(PROJECT_NAME).git $(PROJECT_NAME)GhPages)
|
||||
(cd /tmp/$(PROJECT_NAME)GhPages && git checkout gh-pages)
|
||||
cp -a examples src Makefile README.md /tmp/$(PROJECT_NAME)GhPages
|
||||
(cd /tmp/$(PROJECT_NAME)GhPages && git add . && git commit -a -m "Another deployement" && git push origin gh-pages)
|
||||
#rm -rf /tmp/$(PROJECT_NAME)GhPages
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
(function( $ ){
|
||||
$.fn.qrcode = function(options) {
|
||||
|
||||
// <% console.log(""); %>
|
||||
|
||||
// if options is string,
|
||||
if( typeof options === 'string' ){
|
||||
options = { text: options };
|
||||
|
|
|
|||
Loading…
Reference in a new issue