-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
25 lines (25 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
all:
rm -rf blocklyide
mkdir -p blocklyide/blockly
rsync -aR blockly/demos/interpreter/acorn_interpreter.js blocklyide
rsync -aR blockly/demos/code/msg/ blocklyide
rsync -aR blockly/blockly_compressed.js blocklyide
rsync -aR blockly/blocks_compressed.js blocklyide
rsync -aR blockly/javascript_compressed.js blocklyide
rsync -aR blockly/media blocklyide
rsync -aR blockly/msg/js blocklyide
rsync -aR js blocklyide
rsync -aR css blocklyide
rsync -aR index.html blocklyide
compress:
npm install
find blocklyide/ -name "*.js" -exec node_modules/uglifyjs/bin/uglifyjs {} -m -o {} \;
install: all
cp -r blocklyide ../Arduinojs/page/
clean:
rm -rf blocklyide
@echo "clean ready"
format: clean
find . -name "*.js" -exec js-beautify -r {} \;
find . -name "*.html" -exec html-beautify -r {} \;
find . -name "*.css" -exec css-beautify -r {} \;