Permalink
Browse files

Framer 3

  • Loading branch information...
koenbok committed May 13, 2014
2 parents 2205ba0 + eba3759 commit c16f69fc6cd4d4f3c6c633b0819fe8d7e890685b
Showing with 17,440 additions and 6,993 deletions.
  1. +2 −1 .gitignore
  2. +0 −29 LICENSE
  3. +68 −20 Makefile
  4. +0 −27 README.md
  5. +9,812 −4,281 build/framer.js
  6. +42 −0 coffeelint.json
  7. +38 −0 docs/Plan.md
  8. +7 −0 extras/CactusFramer/.gitignore
  9. 0 extras/{CactusFramerTest → CactusFramer}/config.json
  10. +3 −0 extras/CactusFramer/pages/index.html
  11. +22 −0 extras/CactusFramer/pages/test.html
  12. 0 extras/{CactusFramerTest → CactusFramer}/plugins/__init__.py
  13. +16 −0 extras/{CactusFramerTest → CactusFramer}/plugins/default.py
  14. +10 −0 extras/CactusFramer/static/app.coffee
  15. +243 −0 extras/CactusFramer/static/layers.json.js
  16. +2,362 −0 extras/CactusFramer/static/should.js
  17. +46 −0 extras/CactusFramer/static/tests/screenFrame.coffee
  18. +17 −0 extras/CactusFramer/static/tests/test.draggable.momentum.coffee
  19. +12 −0 extras/CactusFramer/static/tests/test.frameMerge.coffee
  20. +20 −0 extras/CactusFramer/static/tests/test.frameMerge.js
  21. +0 −3 extras/CactusFramerTest/.gitignore
  22. +0 −23 extras/CactusFramerTest/pages/error.html
  23. +0 −4 extras/CactusFramerTest/pages/index.html
  24. +0 −6 extras/CactusFramerTest/pages/robots.txt
  25. +0 −8 extras/CactusFramerTest/pages/sitemap.xml
  26. +0 −18 extras/CactusFramerTest/static/css/style.css
  27. +0 −1 extras/CactusFramerTest/static/framer/framer.js
  28. BIN extras/CactusFramerTest/static/images/checker-pattern.png
  29. BIN extras/CactusFramerTest/static/images/favicon.ico
  30. BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-114x114-precomposed.png
  31. BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-144x144-precomposed.png
  32. BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-72x72-precomposed.png
  33. BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-precomposed.png
  34. +0 −32 extras/CactusFramerTest/templates/base.html
  35. +27 −0 extras/builds.framerjs.com/index.html
  36. +7 −0 extras/builds.framerjs.com/static/css/style.css
  37. +186 −0 framer/Animation.coffee
  38. +96 −0 framer/AnimationLoop.coffee
  39. +28 −0 framer/Animator.coffee
  40. +114 −0 framer/Animators/BezierCurveAnimator.coffee
  41. +23 −0 framer/Animators/LinearAnimator.coffee
  42. +43 −0 framer/Animators/SpringDHOAnimator.coffee
  43. +96 −0 framer/Animators/SpringRK4Animator.coffee
  44. +94 −0 framer/BaseClass.coffee
  45. +3 −0 framer/Color.coffee
  46. +52 −0 framer/Compat.coffee
  47. +31 −0 framer/Config.coffee
  48. +80 −0 framer/Debug.coffee
  49. +36 −0 framer/Defaults.coffee
  50. +65 −0 framer/EventEmitter.coffee
  51. +12 −4 src/primitives/events.coffee → framer/Events.coffee
  52. +35 −0 framer/Frame.coffee
  53. +36 −0 framer/Framer.coffee
  54. +132 −0 framer/Importer.coffee
  55. +576 −0 framer/Layer.coffee
  56. +33 −18 src/ui/draggable.coffee → framer/LayerDraggable.coffee
  57. +139 −0 framer/LayerStates.coffee
  58. +118 −0 framer/LayerStyle.coffee
  59. +8 −0 framer/Underscore.coffee
  60. +418 −0 framer/Utils.coffee
  61. +0 −42 lint.config.json
  62. +40 −15 package.json
  63. +3 −4 scripts/banner.coffee
  64. +114 −0 scripts/site-deploy.coffee
  65. +10 −0 scripts/version.coffee
  66. +28 −28 scripts/watch.coffee
  67. +0 −445 src/animation.coffee
  68. +0 −11 src/config.coffee
  69. +0 −24 src/css.coffee
  70. +0 −95 src/curves/bezier.coffee
  71. +0 −127 src/curves/spring.coffee
  72. +0 −59 src/eventemitter.coffee
  73. +0 −9 src/filters.coffee
  74. +0 −85 src/gestures.coffee
  75. +0 −53 src/init.coffee
  76. +0 −96 src/primitives/frame.coffee
  77. +0 −142 src/primitives/matrix.coffee
  78. +0 −113 src/tools/facebook.coffee
  79. +0 −4 src/tools/init.coffee
  80. +0 −33 src/ui/gridview.coffee
  81. +0 −4 src/ui/init.coffee
  82. +0 −10 src/ui/pagingview.coffee
  83. +0 −131 src/ui/scrollview.coffee
  84. +0 −303 src/utils.coffee
  85. +0 −19 src/views/collectionview.coffee
  86. +0 −57 src/views/imageview.coffee
  87. +0 −67 src/views/scrollview.coffee
  88. +0 −46 src/views/textview.coffee
  89. +0 −38 template/app.js
  90. BIN template/checker-pattern.png
  91. BIN template/framer-logo.png
  92. BIN template/icon/apple-touch-icon-114x114-precomposed.png
  93. BIN template/icon/apple-touch-icon-144x144-precomposed.png
  94. BIN template/icon/apple-touch-icon-72x72-precomposed.png
  95. BIN template/icon/apple-touch-icon-precomposed.png
  96. +23 −0 templates/Project/app.js
  97. BIN templates/Project/images/Icon.png
  98. BIN templates/Project/images/background.png
  99. +2 −2 {template → templates/Project}/index.html
  100. +8 −5 test/index.html
  101. +11 −4 test/init.coffee
  102. +9 −0 test/mocha.opts
  103. +100 −0 test/static/ExternalDocument/Android.out.json
  104. BIN test/static/ExternalDocument/Android.psd
  105. +7 −0 test/static/ExternalDocument/Android/framerps.log
  106. BIN test/static/ExternalDocument/Android/images/Background.png
  107. BIN test/static/ExternalDocument/Android/images/Device.png
  108. BIN test/static/ExternalDocument/Android/images/Header.png
  109. BIN test/static/ExternalDocument/Android/images/Image.png
  110. BIN test/static/ExternalDocument/Android/images/LikesComments.png
  111. BIN test/static/ExternalDocument/Android/images/Nav Bar.png
  112. BIN test/static/ExternalDocument/Android/images/Text.png
  113. BIN test/static/ExternalDocument/Android/images/Top Bar.png
  114. BIN test/static/ExternalDocument/Android/images/UFI.png
  115. +242 −0 test/static/ExternalDocument/Android/layers.json
  116. +44 −0 test/static/ExternalDocument/Square.out.json
  117. BIN test/static/ExternalDocument/Square.psd
  118. +14 −0 test/static/ExternalDocument/Square/framerps.log
  119. BIN test/static/ExternalDocument/Square/images/Four.png
  120. BIN test/static/ExternalDocument/Square/images/One.png
  121. BIN test/static/ExternalDocument/Square/images/Three.png
  122. BIN test/static/ExternalDocument/Square/images/Two.png
  123. +99 −0 test/static/ExternalDocument/Square/layers.json
  124. +31 −0 test/static/ExternalDocument/Test.out.json
  125. BIN test/static/ExternalDocument/Test.psd
  126. +6 −0 test/static/ExternalDocument/Test/framerps.log
  127. BIN test/static/ExternalDocument/Test/images/Background.png
  128. BIN test/static/ExternalDocument/Test/images/Text.png
  129. BIN test/static/ExternalDocument/Test/images/Text2.png
  130. +76 −0 test/static/ExternalDocument/Test/layers.json
  131. BIN extras/CactusFramerTest/static/images/framer-logo.png → test/static/test.png
  132. +1 −0 test/static/test.txt
  133. +109 −0 test/tests/BaseClassTest.coffee
  134. +52 −0 test/tests/CompatTest.coffee
  135. 0 test/tests/EventEmitterTest.coffee
  136. +49 −0 test/tests/FrameTest.coffee
  137. +56 −0 test/tests/ImporterTest.coffee
  138. +301 −0 test/tests/LayerAnimationTest.coffee
  139. +29 −0 test/tests/LayerStatesTest.coffee
  140. +560 −0 test/tests/LayerTest.coffee
  141. +16 −0 test/tests/PropertyTest.coffee
  142. +174 −0 test/tests/UtilsTest.coffee
  143. +0 −165 test/tests/animation.coffee
  144. +0 −7 test/tests/debug.coffee
  145. +0 −10 test/tests/events.coffee
  146. +0 −238 test/tests/view.coffee
  147. +1 −1 test/vendor/mocha.css
  148. +2 −1 test/vendor/mocha.opts
  149. +0 −25 todo.txt
  150. +15 −0 wercker.yml
View
@@ -3,4 +3,5 @@ node_modules
test/init.js
test/lib/framer.js
*.swp
build/template
build/template
build
View
29 LICENSE

This file was deleted.

Oops, something went wrong.
View
@@ -1,38 +1,86 @@
bin = ./node_modules/.bin
coffee = $(bin)/coffee
browserify = $(bin)/browserify -t coffeeify -d --extension=".coffee"
watch = $(coffee) scripts/watch.coffee framer,test/tests
githash = `git rev-parse --short HEAD`
all: build
build:
make lint
# make clean
make clean
mkdir -p build
./node_modules/coffee-script/bin/coffee scripts/banner.coffee > build/framer.js
./node_modules/browserify/bin/cmd.js src/init.coffee >> build/framer.js
# $(coffee) scripts/banner.coffee > build/framer.debug.js
$(browserify) framer/Framer.coffee >> build/framer.debug.js
cat build/framer.debug.js | $(bin)/exorcist build/framer.js.map > build/framer.js
$(bin)/uglifyjs \
--in-source-map build/framer.js.map \
--source-map build/framer.min.js.map build/framer.js \
> build/framer.min.js
# Copy the file over to the cactus project
cp build/framer.js extras/CactusFramer/static/framer.js
cp build/framer.js.map extras/CactusFramer/static/framer.js.map
buildw:
./node_modules/coffee-script/bin/coffee scripts/watch.coffee . make build
$(watch) make build
clean:
rm -rf build
# Testing
test:
make
make lint
make build
mkdir -p test/lib
cp build/framer.js test/lib/framer.js
./node_modules/browserify/bin/cmd.js test/init.coffee -o test/init.js
./node_modules/mocha-phantomjs/bin/mocha-phantomjs test/index.html
$(browserify) test/init.coffee -o test/init.js
$(bin)/mocha-phantomjs test/index.html
testw:
./node_modules/coffee-script/bin/coffee scripts/watch.coffee . make test
$(watch) make test
clean:
rm -rf build
safari:
make build
mkdir -p test/lib
$(browserify) test/init.coffee -o test/init.js
# $(bin)/mocha-phantomjs test/index.html
open -g -a Safari test/index.html
safariw:
$(watch) make safari
lint:
./node_modules/coffeelint/bin/coffeelint -f lint.config.json -r src
# Building and uploading the site
dist:
make clean
make build
cp -R template build/Framer
cp build/framer.js build/Framer/framer.js
mkdir -p build/Framer
cp -R 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
find build/Framer -name ".DS_Store" -depth -exec rm {} \;
cd build; zip -r Framer.zip Framer
cactus:
cd extras/CactusFramerTest; cactus serve
site%build:
make dist
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
.PHONY: build clean lint test
deploy:
make site:build
make site:upload
lint:
./node_modules/.bin/coffeelint -f coffeelint.json -r framer
.PHONY: all build test clean
View

This file was deleted.

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

0 comments on commit c16f69f

Please sign in to comment.