Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #209 from ashleydw/v4_0_1_jquery3_bootstrap4
Browse files Browse the repository at this point in the history
jquery3 bootstrap4
  • Loading branch information
ashleydw committed Sep 26, 2016
2 parents ecdb79e + 57a2d4a commit 8206149
Show file tree
Hide file tree
Showing 18 changed files with 1,758 additions and 1,414 deletions.
115 changes: 58 additions & 57 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,81 +4,82 @@ module.exports = function (grunt) {
grunt.initConfig({
banner:
'/*!\n' +
' * Lightbox for Bootstrap 3 by @ashleydw\n' +
' * Lightbox for Bootstrap by @ashleydw\n' +
' * https://github.com/ashleydw/lightbox\n' +
' *\n' +
' * License: https://github.com/ashleydw/lightbox/blob/master/LICENSE\n' +
' */',

coffee: {
compile: {
files: {
'dist/ekko-lightbox.js': 'ekko-lightbox.coffee'
}
}
},
recess: {
options: {
compile: true
},
css: {
files: {
'dist/ekko-lightbox.css': 'ekko-lightbox.less'
}
},
css_min: {
options: {
compress: true
},
files: {
'dist/ekko-lightbox.min.css': 'ekko-lightbox.less'
}
}
},
less: {
dist: {
files: {
'dist/ekko-lightbox.css': 'ekko-lightbox.less'
}
}
},
babel: {
options: {
sourceMap: true,
modules: 'ignore'
},
dist: {
files: {
'dist/ekko-lightbox.js': 'ekko-lightbox.js',
}
}
},
uglify: {
options: {
sourceMap: true,
},
js: {
files: {
'dist/ekko-lightbox.min.js': 'dist/ekko-lightbox.js'
}
}
},
usebanner: {
dist: {
options: {
banner: '<%= banner %>'
},
files: {
src: ['dist/ekko-lightbox.min.js']
}
}
},
postcss: {
options: {
map: true,
processors: [
require('autoprefixer')({
browsers: ['last 2 versions']
}),
require('cssnano')()
]
},
dist: {
src: 'dist/*.css'
}
},
stamp: {
options: {
banner: '<%= banner %>\n+function ($) {\n',
footer: '\n}(jQuery);'
},
lightbox: {
files: {
src: ['dist/ekko-lightbox.js', 'dist/ekko-lightbox.min.js']
}
}
},
watch: {
coffee: {
files: ['ekko-lightbox.coffee'],
tasks: ['dist']
babel: {
files: ['ekko-lightbox.js', 'ekko-lightbox.less'],
tasks: ['dev']
}
},
bump: {
options: {
files: ['bower.json', 'package.json'],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['bower.json'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false
}
}
}
});

grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-stamp');
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-postcss');

grunt.registerTask('dist', ['coffee', 'uglify', 'recess', 'usebanner']);
grunt.registerTask('dev', ['babel', 'less']);
grunt.registerTask('dist', ['babel', 'less', 'stamp', 'postcss:dist', 'uglify']);
grunt.registerTask('default', ['dist']);
};
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ A lightbox module for Bootstrap that supports images, YouTube videos, and galler

See the github page for docs: http://ashleydw.github.io/lightbox

## Install

CDN-JS: https://cdnjs.com/libraries/ekko-lightbox

Install with Bower:
ChangeLog
----
From version 4.1.0:

```
$ bower install ekko-lightbox --save
```
navigate_left and navigate_right functions are camelCased
gallery_parent_selector has been deprecated - document.body is default

Contributing
----
Instead of modifying the JavaScript files directly, you should instead modify the coffeescript file and run the grunt task.
Instead of modifying the /dist/*.js JavaScript files directly, you should instead modify the ekko-lightbox.js file and run the grunt task.

Copyright and license
----
Expand Down
14 changes: 3 additions & 11 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ekko-lightbox",
"version": "4.0.2",
"version": "4.1.0",
"main": "./dist/ekko-lightbox.min.js",
"ignore": [
"**/.*",
Expand All @@ -11,21 +11,13 @@
"tests"
],
"dependencies": {
"bootstrap": ">= 3.0.0"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-banner": "~0.2.0",
"grunt-contrib-coffee": "~0.8.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-watch": "~0.5.1",
"grunt-recess": "~0.3.3"
"bootstrap": ">= 4.0.0-alpha.3"
},
"homepage": "https://github.com/ashleydw/lightbox",
"authors": [
"ashleydw <[email protected]>"
],
"description": "A lightbox gallery plugin for Bootstrap 3 based on the modal plugin",
"description": "A lightbox gallery plugin for Bootstrap based on the modal plugin",
"keywords": [
"lightbox",
"gallery",
Expand Down
64 changes: 2 additions & 62 deletions dist/ekko-lightbox.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8206149

Please sign in to comment.