Permalink
Browse files

Upgraded to easy-bake. Removed dependencies on backbonejs.

  • Loading branch information...
1 parent 3c80bc3 commit f8d7de9f7aeaf8a1a613bc3eaae553e162d746a1 Kevin Malakoff committed Jun 2, 2012
Showing 749 changed files with 44,634 additions and 15,868 deletions.
View
@@ -1,2 +0,0 @@
-rvm use 1.8.7
-rvm gemset create mixin_js
View
@@ -0,0 +1,12 @@
+language: node_js
+node_js:
+ - 0.7 # development version of 0.8, may be unstable
+
+notifications:
+ email:
+ on_success: always # [always|never|change] default: change
+ on_failure: always # [always|never|change] default: always
+
+before_script:
+ - "export DISPLAY=:99.0"
+ - "sh -e /etc/init.d/xvfb start"
View
@@ -0,0 +1 @@
+require('easy-bake')('easy-bake-config.yaml')
View
@@ -1,8 +0,0 @@
-source 'http://rubygems.org'
-
-group :development do
- gem "jammit"
- gem "rake"
- gem "directory_watcher"
- gem "event_machine"
-end
View
@@ -1,50 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- POpen4 (0.1.4)
- Platform (>= 0.4.0)
- open4
- Platform (0.4.0)
- childprocess (0.2.2)
- ffi (~> 1.0.6)
- diff-lcs (1.1.2)
- directory_watcher (1.4.0)
- event_machine (0.2.0)
- ffi (1.0.9)
- jammit (0.6.3)
- yui-compressor (>= 0.9.3)
- jasmine (1.0.2.1)
- json_pure (>= 1.4.3)
- rack (>= 1.1)
- rspec (>= 1.3.1)
- selenium-webdriver (>= 0.1.3)
- json_pure (1.5.3)
- open4 (1.1.0)
- rack (1.3.2)
- rake (0.9.2)
- rspec (2.6.0)
- rspec-core (~> 2.6.0)
- rspec-expectations (~> 2.6.0)
- rspec-mocks (~> 2.6.0)
- rspec-core (2.6.4)
- rspec-expectations (2.6.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.6.0)
- rubyzip (0.9.4)
- selenium-webdriver (2.5.0)
- childprocess (>= 0.2.1)
- ffi (>= 1.0.7)
- json_pure
- rubyzip
- yui-compressor (0.9.6)
- POpen4 (>= 0.1.4)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- directory_watcher
- event_machine
- jammit
- jasmine
- rake
View
@@ -1,4 +1,4 @@
-Copyright (c) 2011 Kevin Malakoff
+Copyright (c) 2011, 2012 Kevin Malakoff
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
View
@@ -1,3 +1,5 @@
+[![Build Status](https://secure.travis-ci.org/kmalakoff/mixin.png)](http://travis-ci.org/kmalakoff/mixin)
+
````
_ _ _
/\/\ (_)__ __(_)_ __ (_)___
@@ -103,13 +105,6 @@ The library is composed of the following mixins:
## AutoMemory
Provides ways to clean up your objects when they are destroyed (for example, breaking DOM reference cycles, calling cleanup methods, etc).
-## Backbone.Events
-Provides a way to mixin Backbone.Events to any instance plus it provides a way to mark the native classes as having the Backbone.Events mixin.
- -> With the Mixin.UNMIX_ON_BACKBONE_DESTROY setting enabled, it will automatically cleanup all instances with Backbone.Events when they receive a instance.trigger('destroy').
-
-## Backbone.LocalCollection
-It just assigns the cid to the id and throw exceptions if you try to use server-related functionality.
-
## Flags
Provides ways to manage flags and to get a callback when they change.
@@ -124,25 +119,24 @@ Provides a way to publish subscriptions (publishSubscription) and notify subscri
Provides named timeout management and automatically cleaning them up when an instance is destroyed.
-# My Hope
-I can imagine there being a community of mixin-oriented Javascript nano-libraries that can create the building blocks for more inter-operable and reusable micro-frameworks and libraries. Play with the mixins I've packaged, make some of your own (maybe refactoring some of your existing code - no matter how big or small), and share your stories!
-
-I'll be publishing some of my mixin stories and cool examples on my blog: http://braincode.tumblr.com/
-
-# Interested in contributing?
-Current version: 0.1.0
-Target version: 1.0.0
-
-I'm looking for volunteers to help make get Mixin to the 1.0.0 release and beyond! If you can spare some time and talent please do!
+Building the library
+-----------------------
-If you are more designer-inclined, I'm looking for some help with branding and setting up some example pages.
+###Installing:
-If you are more technical, there's documentation and tests (including for CommonJS), setting up testing for on multiple browsers (I've run the tests on the latest Chrome, Firefox, Safari, Internet Explorer, and Opera but I need an automated process), memory and performance analysis and optimizations, making the build and packaging extensible (using a yaml file?), and of course writing samples and more mixins!
+1. install node.js: http://nodejs.org
+2. install node packages: (sudo) 'npm install'
-Or let me know if you have any other ideas for improvements and contributions!
+###Commands:
+1. 'cake clean' - cleans the project of all compiled files
+2. 'cake build' - performs a single build
+3. 'cake watch' - automatically scans for and builds the project when changes are detected
+4. 'cake test' - cleans, builds, and runs tests. Note: the tests require installing phantomjs: ('brew install phantomjs' or http://phantomjs.org/)
-Enjoy!
+Options:
-Kevin
-xmann-intl@gmail.com
+1. '-c' or '--clean' - cleans the project before running a new command
+2. '-w' or '--watch' - watches for changes
+3. '-s' or '--silent' - does not output messages to the console (unless errors occur)
+4. '-p' or '--preview' - preview the action
View
@@ -1,54 +0,0 @@
-require 'rubygems'
-require 'yaml'
-PROJECT_ROOT = File.expand_path('..', __FILE__)
-
-desc "build mixin.js, all the mixins, and all the tests"
-task :build do
- begin
- exec "cd #{PROJECT_ROOT}; ruby script/build.rb"
- rescue LoadError
- puts "build failed: ensure you have coffee-script ('npm install coffee-script -g') and jammit ('(sudo) gem install jammit') installed"
- exit
- end
-end
-
-desc "watch for file changes, and rebuild all src and spec files when they do"
-task :watch do
- begin
- exec "cd #{PROJECT_ROOT}; ruby script/watch.rb"
- rescue LoadError
- puts "build failed: ensure you have coffee-script ('npm install coffee-script -g') and jammit ('(sudo) gem install jammit') installed"
- exit
- end
-end
-
-desc "clean all the temporary files in mixin.js"
-task :clean do
- begin
- exec "cd #{PROJECT_ROOT}; ruby script/clean.rb"
- end
-end
-
-def transfer_header(source_filename, destination_filename)
- source = File.read(source_filename)
- comment_block = source.split('*/')
- return if not comment_block
- destination = File.read(destination_filename)
- header = (comment_block[0] + "*/\n").squeeze(' ')
- File.open(destination_filename, 'w+') do |file|
- file.write header + destination
- end
-end
-
-desc "clean, build, and minimize"
-task :package do
- begin
- fork { exec "cd #{PROJECT_ROOT} ruby script/clean.rb; ruby script/build.rb; jammit -c config/assets_min.yaml -o #{PROJECT_ROOT}" }
- Process.waitall
- config = YAML::load( File.open( 'config/assets_min.yaml' ) )
- config['javascripts'].each{|key, value| transfer_header(key.chomp('.min')+'.js', key+'.js')}
- rescue LoadError
- puts "build failed: ensure you have coffee-script ('npm install coffee-script -g') and jammit ('(sudo) gem install jammit') installed"
- exit
- end
-end
Oops, something went wrong. Retry.

0 comments on commit f8d7de9

Please sign in to comment.