mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Add 'make deps' rule to download vendor files.
This commit is contained in:
32
Makefile
32
Makefile
@@ -90,10 +90,42 @@ else
|
|||||||
npm run build
|
npm run build
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
deps:
|
||||||
|
wget http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v4.0.5.js
|
||||||
|
wget https://unpkg.com/isotope-layout@3/dist/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.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
|
||||||
|
|
||||||
|
depsmin:
|
||||||
|
wget http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v4.0.5.js
|
||||||
|
wget https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.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
|
||||||
|
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
|
||||||
|
|
||||||
# Removes the appstore build
|
# Removes the appstore build
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
rm -rf vendor/*
|
||||||
|
|
||||||
# Same as clean but also removes dependencies installed by composer, bower and
|
# Same as clean but also removes dependencies installed by composer, bower and
|
||||||
# npm
|
# npm
|
||||||
|
|||||||
Reference in New Issue
Block a user