Commit c319c8d6 by 陈雨佳

Initial commit

parents
# rails-assets-swiper
> The Bower package inside a gem
This gem was automatically generated. You can visit [rails-assets.org](https://rails-assets.org) for more information.
## Usage
Add rails-assets source block to your `Gemfile`:
```ruby
source "https://rails-assets.org" do
gem "rails-assets-swiper"
end
```
Then, import the asset using Sprockets’ `require` directive:
```js
//= require "swiper"
```
require 'bundler/gem_tasks'
{
"core_intro": {
"js": [
"src/js/wrap-start.js",
"src/js/swiper-intro.js",
"src/js/core.js"
],
"less": [
"src/less/mixins.less",
"src/less/core.less",
"src/less/navigation.less",
"src/less/preloader.less"
]
},
"core_outro": {
"js": [
"src/js/plugins.js",
"src/js/emitter.js",
"src/js/init.js",
"src/js/swiper-outro.js",
"src/js/swiper-proto.js",
"src/js/dom.js",
"src/js/get-dom-lib.js",
"src/js/dom-plugins.js",
"src/js/wrap-end.js",
"src/js/amd.js"
],
"less": []
},
"effects": {
"js": ["src/js/effects.js"],
"less": ["src/less/effects.less"]
},
"lazy-load": {
"js": ["src/js/lazy-load.js"],
"less": []
},
"scrollbar": {
"js": ["src/js/scrollbar.js"],
"less": ["src/less/scrollbar.less"]
},
"controller": {
"js": ["src/js/controller.js"],
"less": []
},
"hashnav": {
"js": ["src/js/controller.js"],
"less": []
},
"history": {
"js": ["src/js/history.js"],
"less": []
},
"keyboard": {
"js": ["src/js/keyboard.js"],
"less": []
},
"mousewheel": {
"js": ["src/js/mousewheel.js"],
"less": []
},
"parallax": {
"js": ["src/js/parallax.js"],
"less": []
},
"zoom": {
"js": ["src/js/zoom.js"],
"less": ["src/less/zoom.less"]
},
"a11y": {
"js": ["src/js/a11y.js"],
"less": []
}
}
\ No newline at end of file
//= require swiper/swiper.js
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
@import 'swiper/swiper.scss';
require "rails-assets-swiper/version"
module RailsAssetsSwiper
def self.gem_path
Pathname(File.realpath(__FILE__)).join('../..')
end
def self.gem_spec
Gem::Specification::load(
gem_path.join("rails-assets-swiper.gemspec").to_s
)
end
def self.load_paths
gem_path.join('app/assets').each_child.to_a
end
def self.dependencies
[
]
end
if defined?(Rails)
class Engine < ::Rails::Engine
# Rails -> use app/assets directory.
end
end
end
class RailsAssets
@components ||= []
class << self
attr_accessor :components
def load_paths
components.flat_map(&:load_paths)
end
end
end
RailsAssets.components << RailsAssetsSwiper
module RailsAssetsSwiper
VERSION = "3.4.2"
end
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rails-assets-swiper/version'
Gem::Specification.new do |spec|
spec.name = "rails-assets-swiper"
spec.version = RailsAssetsSwiper::VERSION
spec.authors = ["rails-assets.org"]
spec.description = "Most modern mobile touch slider and framework with hardware accelerated transitions"
spec.summary = "Most modern mobile touch slider and framework with hardware accelerated transitions"
spec.homepage = "http://www.idangero.us/swiper"
spec.licenses = ["MIT"]
spec.files = `find ./* -type f | cut -b 3-`.split($/)
spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
end
{
"name": "rails-assets-swiper",
"downloads": null,
"version": "3.4.2",
"version_downloads": null,
"platform": "ruby",
"authors": "rails-assets.org",
"info": "Most modern mobile touch slider and framework with hardware accelerated transitions",
"licenses": "[\"MIT\"]",
"metadata": {
},
"sha": null,
"project_uri": "http://www.idangero.us/swiper",
"gem_uri": null,
"homepage_uri": "http://www.idangero.us/swiper",
"wiki_uri": null,
"documentation_uri": null,
"mailing_list_uri": null,
"source_code_uri": "http://www.idangero.us/swiper",
"bug_tracker_uri": null,
"dependencies": {
"development": [
],
"runtime": [
]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment