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

Commit

Permalink
Fresco is now open-source!
Browse files Browse the repository at this point in the history
Licensed under the Creative Commons Attribution 4.0 License.
  • Loading branch information
staaky committed Oct 26, 2019
1 parent 2b302b2 commit 530f2ea
Show file tree
Hide file tree
Showing 50 changed files with 19,863 additions and 22 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
node_modules/
107 changes: 107 additions & 0 deletions Gruntfile.js
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"
]);
};
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

159 changes: 159 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion README.md
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.
Loading

0 comments on commit 530f2ea

Please sign in to comment.