Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
17,440 additions
and 6,993 deletions.
- +2 −1 .gitignore
- +0 −29 LICENSE
- +68 −20 Makefile
- +0 −27 README.md
- +9,812 −4,281 build/framer.js
- +42 −0 coffeelint.json
- +38 −0 docs/Plan.md
- +7 −0 extras/CactusFramer/.gitignore
- 0 extras/{CactusFramerTest → CactusFramer}/config.json
- +3 −0 extras/CactusFramer/pages/index.html
- +22 −0 extras/CactusFramer/pages/test.html
- 0 extras/{CactusFramerTest → CactusFramer}/plugins/__init__.py
- +16 −0 extras/{CactusFramerTest → CactusFramer}/plugins/default.py
- +10 −0 extras/CactusFramer/static/app.coffee
- +243 −0 extras/CactusFramer/static/layers.json.js
- +2,362 −0 extras/CactusFramer/static/should.js
- +46 −0 extras/CactusFramer/static/tests/screenFrame.coffee
- +17 −0 extras/CactusFramer/static/tests/test.draggable.momentum.coffee
- +12 −0 extras/CactusFramer/static/tests/test.frameMerge.coffee
- +20 −0 extras/CactusFramer/static/tests/test.frameMerge.js
- +0 −3 extras/CactusFramerTest/.gitignore
- +0 −23 extras/CactusFramerTest/pages/error.html
- +0 −4 extras/CactusFramerTest/pages/index.html
- +0 −6 extras/CactusFramerTest/pages/robots.txt
- +0 −8 extras/CactusFramerTest/pages/sitemap.xml
- +0 −18 extras/CactusFramerTest/static/css/style.css
- +0 −1 extras/CactusFramerTest/static/framer/framer.js
- BIN extras/CactusFramerTest/static/images/checker-pattern.png
- BIN extras/CactusFramerTest/static/images/favicon.ico
- BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-114x114-precomposed.png
- BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-144x144-precomposed.png
- BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-72x72-precomposed.png
- BIN extras/CactusFramerTest/static/images/icon/apple-touch-icon-precomposed.png
- +0 −32 extras/CactusFramerTest/templates/base.html
- +27 −0 extras/builds.framerjs.com/index.html
- +7 −0 extras/builds.framerjs.com/static/css/style.css
- +186 −0 framer/Animation.coffee
- +96 −0 framer/AnimationLoop.coffee
- +28 −0 framer/Animator.coffee
- +114 −0 framer/Animators/BezierCurveAnimator.coffee
- +23 −0 framer/Animators/LinearAnimator.coffee
- +43 −0 framer/Animators/SpringDHOAnimator.coffee
- +96 −0 framer/Animators/SpringRK4Animator.coffee
- +94 −0 framer/BaseClass.coffee
- +3 −0 framer/Color.coffee
- +52 −0 framer/Compat.coffee
- +31 −0 framer/Config.coffee
- +80 −0 framer/Debug.coffee
- +36 −0 framer/Defaults.coffee
- +65 −0 framer/EventEmitter.coffee
- +12 −4 src/primitives/events.coffee → framer/Events.coffee
- +35 −0 framer/Frame.coffee
- +36 −0 framer/Framer.coffee
- +132 −0 framer/Importer.coffee
- +576 −0 framer/Layer.coffee
- +33 −18 src/ui/draggable.coffee → framer/LayerDraggable.coffee
- +139 −0 framer/LayerStates.coffee
- +118 −0 framer/LayerStyle.coffee
- +8 −0 framer/Underscore.coffee
- +418 −0 framer/Utils.coffee
- +0 −42 lint.config.json
- +40 −15 package.json
- +3 −4 scripts/banner.coffee
- +114 −0 scripts/site-deploy.coffee
- +10 −0 scripts/version.coffee
- +28 −28 scripts/watch.coffee
- +0 −445 src/animation.coffee
- +0 −11 src/config.coffee
- +0 −24 src/css.coffee
- +0 −95 src/curves/bezier.coffee
- +0 −127 src/curves/spring.coffee
- +0 −59 src/eventemitter.coffee
- +0 −9 src/filters.coffee
- +0 −85 src/gestures.coffee
- +0 −53 src/init.coffee
- +0 −96 src/primitives/frame.coffee
- +0 −142 src/primitives/matrix.coffee
- +0 −113 src/tools/facebook.coffee
- +0 −4 src/tools/init.coffee
- +0 −33 src/ui/gridview.coffee
- +0 −4 src/ui/init.coffee
- +0 −10 src/ui/pagingview.coffee
- +0 −131 src/ui/scrollview.coffee
- +0 −303 src/utils.coffee
- +0 −19 src/views/collectionview.coffee
- +0 −57 src/views/imageview.coffee
- +0 −67 src/views/scrollview.coffee
- +0 −46 src/views/textview.coffee
- +0 −38 template/app.js
- BIN template/checker-pattern.png
- BIN template/framer-logo.png
- BIN template/icon/apple-touch-icon-114x114-precomposed.png
- BIN template/icon/apple-touch-icon-144x144-precomposed.png
- BIN template/icon/apple-touch-icon-72x72-precomposed.png
- BIN template/icon/apple-touch-icon-precomposed.png
- +23 −0 templates/Project/app.js
- BIN templates/Project/images/Icon.png
- BIN templates/Project/images/background.png
- +2 −2 {template → templates/Project}/index.html
- +8 −5 test/index.html
- +11 −4 test/init.coffee
- +9 −0 test/mocha.opts
- +100 −0 test/static/ExternalDocument/Android.out.json
- BIN test/static/ExternalDocument/Android.psd
- +7 −0 test/static/ExternalDocument/Android/framerps.log
- BIN test/static/ExternalDocument/Android/images/Background.png
- BIN test/static/ExternalDocument/Android/images/Device.png
- BIN test/static/ExternalDocument/Android/images/Header.png
- BIN test/static/ExternalDocument/Android/images/Image.png
- BIN test/static/ExternalDocument/Android/images/LikesComments.png
- BIN test/static/ExternalDocument/Android/images/Nav Bar.png
- BIN test/static/ExternalDocument/Android/images/Text.png
- BIN test/static/ExternalDocument/Android/images/Top Bar.png
- BIN test/static/ExternalDocument/Android/images/UFI.png
- +242 −0 test/static/ExternalDocument/Android/layers.json
- +44 −0 test/static/ExternalDocument/Square.out.json
- BIN test/static/ExternalDocument/Square.psd
- +14 −0 test/static/ExternalDocument/Square/framerps.log
- BIN test/static/ExternalDocument/Square/images/Four.png
- BIN test/static/ExternalDocument/Square/images/One.png
- BIN test/static/ExternalDocument/Square/images/Three.png
- BIN test/static/ExternalDocument/Square/images/Two.png
- +99 −0 test/static/ExternalDocument/Square/layers.json
- +31 −0 test/static/ExternalDocument/Test.out.json
- BIN test/static/ExternalDocument/Test.psd
- +6 −0 test/static/ExternalDocument/Test/framerps.log
- BIN test/static/ExternalDocument/Test/images/Background.png
- BIN test/static/ExternalDocument/Test/images/Text.png
- BIN test/static/ExternalDocument/Test/images/Text2.png
- +76 −0 test/static/ExternalDocument/Test/layers.json
- BIN extras/CactusFramerTest/static/images/framer-logo.png → test/static/test.png
- +1 −0 test/static/test.txt
- +109 −0 test/tests/BaseClassTest.coffee
- +52 −0 test/tests/CompatTest.coffee
- 0 test/tests/EventEmitterTest.coffee
- +49 −0 test/tests/FrameTest.coffee
- +56 −0 test/tests/ImporterTest.coffee
- +301 −0 test/tests/LayerAnimationTest.coffee
- +29 −0 test/tests/LayerStatesTest.coffee
- +560 −0 test/tests/LayerTest.coffee
- +16 −0 test/tests/PropertyTest.coffee
- +174 −0 test/tests/UtilsTest.coffee
- +0 −165 test/tests/animation.coffee
- +0 −7 test/tests/debug.coffee
- +0 −10 test/tests/events.coffee
- +0 −238 test/tests/view.coffee
- +1 −1 test/vendor/mocha.css
- +2 −1 test/vendor/mocha.opts
- +0 −25 todo.txt
- +15 −0 wercker.yml
@@ -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 |
Oops, something went wrong.