Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Strip is now free for commercial use!
Browse files Browse the repository at this point in the history
Licensed under the Creative Commons Attribution License.
  • Loading branch information
staaky committed Oct 26, 2019
1 parent 23dc8d1 commit bc9cfcb
Show file tree
Hide file tree
Showing 25 changed files with 6,534 additions and 3,781 deletions.
115 changes: 60 additions & 55 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
module.exports = function(grunt) {

// Config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: grunt.file.readJSON("package.json"),
dirs: {
dest: 'dist'
dest: "dist"
},

vars: { },
vars: {},

concat: {
js: {
options: {
process: true
},
src: [
'src/js/umd-head.js',
'src/js/setup.js',
'src/js/skins.js',
"src/js/umd-head.js",
"src/js/setup.js",
"src/js/skins.js",

// helpers
'src/js/helpers/browser.js',
'src/js/helpers/helpers.js',
'src/js/helpers/support.js',
'src/js/helpers/bounds.js',
'src/js/helpers/imageready.js',
'src/js/helpers/spinner.js',
'src/js/helpers/timers.js',
'src/js/helpers/url.js',
'src/js/helpers/vimeoready.js',
// helpers
"src/js/helpers/browser.js",
"src/js/helpers/helpers.js",
"src/js/helpers/support.js",
"src/js/helpers/bounds.js",
"src/js/helpers/imageready.js",
"src/js/helpers/spinner.js",
"src/js/helpers/timers.js",
"src/js/helpers/url.js",
"src/js/helpers/vimeoready.js",

// core
'src/js/options.js',
'src/js/view.js',
'src/js/pages.js',
'src/js/page.js',
'src/js/window.js',
'src/js/keyboard.js',
// core
"src/js/options.js",
"src/js/view.js",
"src/js/pages.js",
"src/js/page.js",
"src/js/window.js",
"src/js/keyboard.js",

'src/js/api.js',
"src/js/api.js",

'src/js/umd-tail.js'
"src/js/umd-tail.js"
],
dest: '<%= dirs.dest %>/js/strip.pkgd.js'
dest: "<%= dirs.dest %>/js/strip.pkgd.js"
},
css: {
options: {
process: true
},
src: ['src/css/strip.css'],
dest: '<%= dirs.dest %>/css/strip.css'
src: ["src/css/strip.css"],
dest: "<%= dirs.dest %>/css/strip.css"
}
},

copy: {
'css': {
css: {
files: [
{
expand: true,
cwd: 'src/css/strip-skins/',
src: ['**'],
dest: '<%= dirs.dest %>/css/strip-skins/'
cwd: "src/css/strip-skins/",
src: ["**"],
dest: "<%= dirs.dest %>/css/strip-skins/"
}
]
}
Expand All @@ -69,10 +68,12 @@ module.exports = function(grunt) {
uglify: {
js: {
options: {
preserveComments: 'some'
output: {
comments: "some"
}
},
'src': ['<%= dirs.dest %>/js/strip.pkgd.js'],
'dest': '<%= dirs.dest %>/js/strip.pkgd.min.js'
src: ["<%= dirs.dest %>/js/strip.pkgd.js"],
dest: "<%= dirs.dest %>/js/strip.pkgd.min.js"
}
},

Expand All @@ -85,34 +86,38 @@ module.exports = function(grunt) {
]
},
dist: {
files: [{
expand: true,
cwd: 'src/css/',
src: ['**/*.svg'],
dest: 'src/css/'
}]
files: [
{
expand: true,
cwd: "src/css/",
src: ["**/*.svg"],
dest: "src/css/"
}
]
}
},

clean: {
dest: '<%= dirs.dest %>/*'
dest: "<%= dirs.dest %>/*"
}
});

// Load plugins
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-svgmin');
grunt.loadNpmTasks('grunt-sync');
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-svgmin");
grunt.loadNpmTasks("grunt-sync");

// Tasks
grunt.registerTask('default', [
'clean:dest',
'concat:js', 'uglify:js',
'concat:css', 'copy:css'
grunt.registerTask("default", [
"clean:dest",
"concat:js",
"uglify:js",
"concat:css",
"copy:css"
]);

grunt.registerTask('svg', ['svgmin']);
};
grunt.registerTask("svg", ["svgmin"]);
};
31 changes: 0 additions & 31 deletions bower.json

This file was deleted.

4 changes: 2 additions & 2 deletions dist/css/strip.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Strip - An Unobtrusive Responsive Lightbox - v1.6.5
* (c) 2014-2018 Nick Stakenburg
* Strip - An Unobtrusive Responsive Lightbox - v1.7.0
* (c) 2014-2019 Nick Stakenburg
*
* http://www.stripjs.com
*
Expand Down
Loading

0 comments on commit bc9cfcb

Please sign in to comment.