This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Licensed under the Creative Commons Attribution 4.0 License.
- Loading branch information
Showing
50 changed files
with
19,863 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
node_modules/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON("package.json"), | ||
dirs: { | ||
dest: "dist" | ||
}, | ||
|
||
vars: {}, | ||
|
||
concat: { | ||
options: { process: true }, | ||
dist: { | ||
src: [ | ||
"src/js/umd-head.js", | ||
"src/js/setup.js", | ||
"src/js/skins.js", | ||
|
||
// helpers | ||
"src/js/helpers/bounds.js", | ||
"src/js/helpers/browser.js", | ||
"src/js/helpers/helpers.js", | ||
"src/js/helpers/support.js", | ||
"src/js/helpers/imageready.js", | ||
"src/js/helpers/timers.js", | ||
"src/js/helpers/url.js", | ||
"src/js/helpers/vimeothumbnail.js", | ||
"src/js/helpers/vimeoready.js", | ||
|
||
"src/js/options.js", | ||
"src/js/loading.js", | ||
"src/js/overlay.js", | ||
"src/js/window.js", | ||
"src/js/keyboard.js", | ||
"src/js/page.js", | ||
"src/js/pages.js", | ||
"src/js/view.js", | ||
"src/js/spinner.js", | ||
|
||
"src/js/api.js", | ||
|
||
"src/js/thumbnails.js", | ||
"src/js/thumbnail.js", | ||
"src/js/ui.js", | ||
"src/js/ui-fullclick.js", | ||
"src/js/ui-inside.js", | ||
"src/js/ui-outside.js", | ||
|
||
"src/js/umd-tail.js" | ||
], | ||
dest: "<%= dirs.dest %>/js/fresco.js" | ||
} | ||
}, | ||
|
||
copy: { | ||
dist: { | ||
files: [ | ||
{ | ||
expand: true, | ||
cwd: "src/css/", | ||
src: ["**"], | ||
dest: "<%= dirs.dest %>/css/" | ||
} | ||
] | ||
} | ||
}, | ||
|
||
uglify: { | ||
dist: { | ||
options: { | ||
output: { | ||
comments: "some" | ||
} | ||
}, | ||
src: ["<%= dirs.dest %>/js/fresco.js"], | ||
dest: "<%= dirs.dest %>/js/fresco.min.js" | ||
} | ||
}, | ||
|
||
clean: { | ||
dist: "dist/" | ||
}, | ||
|
||
watch: { | ||
scripts: { | ||
files: ["src/**/*.js", "src/**/*.css"], | ||
tasks: ["default"], | ||
options: { | ||
spawn: false | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// 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-contrib-watch"); | ||
|
||
grunt.registerTask("default", [ | ||
"clean:dist", | ||
"concat:dist", | ||
"copy:dist", | ||
"uglify:dist" | ||
]); | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# fresco | ||
# Fresco | ||
A Beautiful Responsive Lightbox | ||
|
||
https://www.frescojs.com | ||
|
||
--- | ||
|
||
Fresco has been open-sourced under the [Creative Commons BY 4.0 license](https://creativecommons.org/licenses/by/4.0) as of oct. 26 2019. |
Oops, something went wrong.