Last active
August 29, 2015 14:06
-
-
Save firewalker06/1f185854dd461096cdba to your computer and use it in GitHub Desktop.
ZeptoJS in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require zeptojs/src/zepto | |
#= require zeptojs/src/ajax | |
#= require zeptojs/src/form | |
#= require zeptojs/src/event | |
Zepto ($) -> | |
console.log("success!") | |
return | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lib": { | |
"name": "bower-rails generated lib assets", | |
"dependencies": { | |
} | |
}, | |
"vendor": { | |
"name": "bower-rails generated vendor assets", | |
"dependencies": { | |
"zeptojs" : "~1.1.4" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in config/initializers/bower_rails.rb | |
BowerRails.configure do |bower_rails| | |
# Invoke `rake bower:install` automatically before the `rake assets:precompile` task. | |
bower_rails.install_before_precompile = true | |
# Invoke `rake bower:resolve` automatically before the `rake assets:precompile` task. | |
bower_rails.resolve_before_precompile = true | |
# Don't invoke `rake bower:clean` task because it will deletes other files except described in `main` directives | |
# bower_rails.clean_before_precompile = true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "bower-rails", "~> 0.8.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To generate bower_rails config and bower.json files | |
$ rails g bower_rails:initialize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment