Skip to content

Commit

Permalink
Remove select2 deps and reorder make deps rules
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Apr 14, 2018
1 parent cfbe855 commit ed754a0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
34 changes: 22 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,36 +91,46 @@ else
endif

deps:
mkdir -p vendor
rm vendor/*

wget http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v4.0.5.js
mv handlebars-v4.0.5.js vendor/handlebars.js

wget https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js
mv isotope.pkgd.js vendor/

wget https://github.com/yabwe/medium-editor/archive/master.zip -O medium-editor.zip
wget https://github.com/varun-raj/medium-editor-autolist/raw/master/dist/autolist.js
mkdir -p vendor
unzip medium-editor.zip
mv handlebars-v4.0.5.js vendor/handlebars.js
mv isotope.pkgd.js vendor/
mv autolist.js vendor/
mv medium-editor-master/dist/js/medium-editor.js vendor/
mv medium-editor-master/dist/css/medium-editor.css vendor/
mv medium-editor-master/dist/css/themes/beagle.css vendor/
rm medium-editor.zip
rm -R medium-editor-master
rm medium-editor.zip

wget https://github.com/varun-raj/medium-editor-autolist/raw/master/dist/autolist.js
mv autolist.js vendor/

depsmin:
mkdir -p vendor
rm vendor/*

wget http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v4.0.5.js
mv handlebars-v4.0.5.js vendor/handlebars.js

wget https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js
mv isotope.pkgd.min.js vendor/isotope.pkgd.js

wget https://github.com/yabwe/medium-editor/archive/master.zip -O medium-editor.zip
wget https://github.com/varun-raj/medium-editor-autolist/raw/master/dist/autolist.min.js
mkdir -p vendor
unzip medium-editor.zip
mv handlebars-v4.0.5.js vendor/handlebars.js
mv isotope.pkgd.min.js vendor/isotope.pkgd.js
mv autolist.min.js vendor/autolist.js
mv medium-editor-master/dist/js/medium-editor.min.js vendor/medium-editor.js
mv medium-editor-master/dist/css/medium-editor.min.css vendor/medium-editor.css
mv medium-editor-master/dist/css/themes/beagle.min.css vendor/beagle.css
rm medium-editor.zip
rm -R medium-editor-master
rm medium-editor.zip

wget https://github.com/varun-raj/medium-editor-autolist/raw/master/dist/autolist.min.js
mv autolist.min.js vendor/autolist.js

# Removes the appstore build
.PHONY: clean
Expand Down
2 changes: 0 additions & 2 deletions templates/main.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
vendor_script('quicknotes', 'handlebars');
vendor_script('quicknotes', 'isotope.pkgd');
vendor_script('core', 'select2/select2');
vendor_style('core', 'select2/select2');
vendor_script('quicknotes', 'medium-editor');
vendor_style('quicknotes', 'medium-editor');
vendor_style('quicknotes', 'beagle');
Expand Down

0 comments on commit ed754a0

Please sign in to comment.