Permalink
Browse files

Huge cleanup for Makefile, Gulp

  • Loading branch information...
koenbok committed May 16, 2016
1 parent 417ae11 commit b33e4ecba06b1459c854bc9abb339e9cf127f6e3
Showing with 27,076 additions and 4,525 deletions.
  1. +33 −71 Makefile
  2. +0 −7 extras/CactusFramer/.gitignore
  3. +0 −1 extras/CactusFramer/config.json
  4. +0 −24 extras/CactusFramer/pages/index.html
  5. +0 −3 extras/CactusFramer/pages/perf.html
  6. +0 −22 extras/CactusFramer/pages/test.html
  7. 0 extras/CactusFramer/plugins/__init__.py
  8. +0 −45 extras/CactusFramer/plugins/default.py
  9. +0 −62 extras/CactusFramer/static/app.coffee
  10. +0 −1 extras/CactusFramer/static/framer.debug.js
  11. +0 −243 extras/CactusFramer/static/layers.json.js
  12. +0 −2,362 extras/CactusFramer/static/should.js
  13. +0 −163 extras/CactusFramer/static/test.draggable.coffee
  14. +0 −175 extras/CactusFramer/static/test.draggable.js
  15. +0 −46 extras/CactusFramer/static/tests/screenFrame.coffee
  16. +0 −17 extras/CactusFramer/static/tests/test.draggable.momentum.coffee
  17. +0 −12 extras/CactusFramer/static/tests/test.frameMerge.coffee
  18. +0 −20 extras/CactusFramer/static/tests/test.frameMerge.js
  19. +0 −38 extras/DevServer.framer/.gitignore
  20. 0 extras/DevServer.framer/Icon
  21. +0 −3 extras/DevServer.framer/framer/.bowerrc
  22. +0 −12 extras/DevServer.framer/framer/coffee-script.js
  23. +0 −126 extras/DevServer.framer/framer/framer.init.js
  24. +0 −196 extras/DevServer.framer/framer/mirror.css
  25. +0 −59 extras/DevServer.framer/framer/style.css
  26. +0 −1 extras/DevServer.framer/framer/version
  27. 0 extras/DevServer.framer/images/.gitkeep
  28. BIN extras/DevServer.framer/images/framer-icon.png
  29. +0 −92 extras/DevServer.framer/index.html
  30. +0 −1 extras/Perf.framer/framer/framer.debug.js
  31. +0 −1 extras/Perf.framer/framer/framer.debug.js.map
  32. +0 −1 extras/Perf.framer/framer/framer.js
  33. BIN extras/Studio.framer/NavComponent.sketch
  34. +0 −1 extras/Studio.framer/framer/framer.debug.js
  35. +26,871 −0 extras/Studio.framer/framer/framer.debug.js
  36. +0 −1 extras/Studio.framer/framer/framer.debug.js.map
  37. +1 −0 extras/Studio.framer/framer/framer.debug.js.map
  38. +52 −0 extras/Studio.framer/framer/manifest.txt
  39. BIN extras/Studio.framer/framer/preview.png
  40. +1 −1 extras/Studio.framer/framer/version
  41. +0 −10 extras/perf/index.html
  42. +0 −124 extras/perf/init.coffee
  43. +0 −153 extras/perf/init.js
  44. +0 −98 extras/perf/runner.js
  45. 0 extras/resources.framerjs.com/plugins/default.py
  46. +0 −1 extras/resources.framerjs.com/static/DeviceResources
  47. +83 −99 gulpfile.coffee
  48. +0 −1 scripts/autocomplete.blacklist.txt
  49. +0 −52 scripts/autocomplete.py
  50. +0 −9 scripts/banner.coffee
  51. +0 −54 scripts/devserver.coffee
  52. +21 −0 scripts/dist.sh
  53. +0 −8 scripts/fix-sourcemap.coffee
  54. 0 scripts/{optimize.py → resources-optimize.py}
  55. +13 −0 scripts/site-build.sh
  56. 0 scripts/{site-deploy.coffee → site.coffee}
  57. +0 −10 scripts/version.coffee
  58. +0 −39 scripts/watch.coffee
  59. +0 −7 test/static/ExternalDocument/Android/framerps.log
  60. +0 −14 test/static/ExternalDocument/Square/framerps.log
  61. +0 −6 test/static/ExternalDocument/Test/framerps.log
  62. +0 −1 test/studio/DraggableGestures.framer/framer/framer.js
  63. +0 −1 test/studio/LayerDraggableConstraints.framer/framer/framer.js
  64. +0 −1 test/studio/LayerDraggableCustomPhysics.framer/framer/framer.js
  65. +0 −1 test/studio/LayerDraggableDirection.framer/framer/framer.js
  66. +0 −1 test/studio/LayerDraggableEvents.framer/framer/framer.js
  67. +0 −1 test/studio/LayerDraggableSimple.framer/framer/framer.js
  68. +0 −1 test/studio/LayerScreenCanvasFrameScale.framer/framer/framer.js
  69. +0 −1 test/studio/PageComponentCurrentPage.framer/framer/framer.js
  70. +0 −1 test/studio/PageComponentEvents.framer/framer/framer.js
  71. +0 −1 test/studio/PageComponentGrid.framer/framer/framer.js
  72. +0 −1 test/studio/PageComponentHorizontal.framer/framer/framer.js
  73. +0 −1 test/studio/PageComponentLockDirection.framer/framer/framer.js
  74. +0 −1 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/framer.js
  75. +0 −1 test/studio/PageComponentVertical.framer/framer/framer.js
  76. +0 −1 test/studio/ScrollComponentBlockClick.framer/framer/framer.js
  77. +0 −1 test/studio/ScrollComponentClickDetection.framer/framer/framer.js
  78. +0 −1 test/studio/ScrollComponentClosestLayer.framer/framer/framer.js
  79. +0 −1 test/studio/ScrollComponentContentInset.framer/framer/framer.js
  80. +0 −1 test/studio/ScrollComponentContentInsetScrollPoint.framer/framer/framer.js
  81. +0 −1 test/studio/ScrollComponentCopy.framer/framer/framer.js
  82. +0 −1 test/studio/ScrollComponentCorrectForScreen.framer/framer/framer.js
  83. +0 −1 test/studio/ScrollComponentEvents.framer/framer/framer.js
  84. +0 −1 test/studio/ScrollComponentHorizontal.framer/framer/framer.js
  85. +0 −1 test/studio/ScrollComponentMouseWheel.framer/framer/framer.js
  86. +0 −1 test/studio/ScrollComponentOrigin.framer/framer/framer.js
  87. +0 −1 test/studio/ScrollComponentSketchImport.framer/framer/framer.js
  88. +0 −1 test/studio/ScrollComponentVertical.framer/framer/framer.js
  89. +0 −1 test/studio/SliderComponentMin.framer/framer/framer.js
  90. +0 −1 test/studio/SliderComponentValue.framer/framer/framer.js
  91. +0 −1 test/studio/SliderComponentVertical.framer/framer/framer.js
  92. +0 −1 test/studio/UtilsConctextFrame.framer/framer/framer.js
  93. +1 −2 wercker.yml
View
104 Makefile
@@ -1,12 +1,11 @@
pwd = $(CURDIR)
bin = $(pwd)/node_modules/.bin
coffee = "$(bin)/coffee"
githash = `git rev-parse --short HEAD`
gulp = "$(bin)/gulp"
generatorHost = http://framergenerator-update.s3-website-us-east-1.amazonaws.com/
latestGenerator = curl "$(generatorHost)latest.txt"
# Configuration
all: build
BIN = $(CURDIR)/node_modules/.bin
.DEFAULT_GOAL := watch
.PHONY: watch test debug release
# Utilities
bootstrap:
npm install
@@ -17,76 +16,39 @@ unbootstrap:
clean:
rm -rf build
build: bootstrap clean
mkdir -p build
$(gulp) build-release
debug: bootstrap clean
mkdir -p build
$(gulp) build-debug
# Building and testing
watch: bootstrap
$(gulp) watch
dev: bootstrap
$(gulp) version
open -a "Framer Beta" "extras/DevServer.framer"
$(coffee) scripts/devserver.coffee
$(BIN)/gulp watch
test: bootstrap
$(gulp) test
$(BIN)/gulp test
debug: bootstrap
$(BIN)/gulp webpack:debug
release: bootstrap
$(BIN)/gulp webpack:release
coverage: bootstrap
$(bin)/coffeeCoverage ./framer ./build/instrumented
$(gulp) coverage
cp ./test/coverage-template/* ./build/coverage
open ./build/coverage/jscoverage.html
# Framer Studio
studio:
open -a "Framer Studio" extras/Studio.framer
open -a "Framer Beta" extras/Studio.framer
make watch
perf: debug
open -a "Framer Studio" extras/Perf.framer
# Building and uploading the site
dist: build
mkdir -p build/Framer
cp -R extras/templates/Project build/Framer/Project
rm -Rf build/Framer/Project/framer
mkdir -p build/Framer/Project/framer
cp build/framer.js build/Framer/Project/framer/framer.js
cp build/framer.js.map build/Framer/Project/framer/framer.js.map
cd build/Framer; wget "$(generatorHost)`$(latestGenerator)`" -O "generator.tgz"; tar zxf "./generator.tgz"; rm "./generator.tgz"
find build/Framer -name ".DS_Store" -depth -exec rm {} \;
cd build; zip -r Framer.zip Framer
site%build:
mkdir -p build/builds.framerjs.com
$(coffee) scripts/site-deploy.coffee build
cp -R extras/builds.framerjs.com/static build/builds.framerjs.com/static
mkdir -p build/builds.framerjs.com/latest
cp build/*.js build/builds.framerjs.com/latest
cp build/*.map build/builds.framerjs.com/latest
cp build/*.zip build/builds.framerjs.com/latest
cp -R build/builds.framerjs.com/latest build/builds.framerjs.com/$(githash)
site%upload:
make site:build
$(coffee) scripts/site-deploy.coffee upload
deploy:
make site:build
make site:upload
resources%optimize:
python scripts/optimize.py
resources%upload:
cd extras/resources.framerjs.com; cactus deploy
lint:
$(bin)/coffeelint -f coffeelint.json -r framer
.PHONY: all build test clean perf watch
open -a "Framer Beta" extras/Perf.framer
# Distribution
dist: release
sh scripts/dist.sh
site-build: dist
sh scripts/site-build.sh
site-upload: bootstrap site-build
$(BIN)/coffee scripts/site.coffee upload

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
No changes.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit b33e4ec

Please sign in to comment.