commitall
This commit is contained in:
72
account/theme/plugins/raphael/Gruntfile.js
Normal file
72
account/theme/plugins/raphael/Gruntfile.js
Normal file
@@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var pkg = grunt.file.readJSON("package.json");
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
// Metadata.
|
||||
pkg: pkg,
|
||||
banner: grunt.file.read("dev/copy.js").replace(/@VERSION/, pkg.version),
|
||||
// Task configuration.
|
||||
uglify: {
|
||||
options: {
|
||||
banner: "<%= banner %>"
|
||||
},
|
||||
dist: {
|
||||
src: "<%= concat.dist.dest %>",
|
||||
dest: "<%= pkg.name %>-min.js"
|
||||
},
|
||||
nodeps: {
|
||||
src: "<%= concat.nodeps.dest %>",
|
||||
dest: "<%= pkg.name %>-nodeps-min.js"
|
||||
}
|
||||
},
|
||||
replace: {
|
||||
dist: {
|
||||
options: {
|
||||
patterns: [{
|
||||
match: "VERSION",
|
||||
replacement: "<%= pkg.version %>"
|
||||
}]
|
||||
},
|
||||
files: [{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: ["<%= concat.dist.dest %>", "<%= concat.nodeps.dest %>"],
|
||||
dest: "./"
|
||||
}]
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
dist: {
|
||||
dest: "<%= pkg.name %>.js",
|
||||
src: [
|
||||
"dev/eve.js",
|
||||
"dev/raphael.core.js",
|
||||
"dev/raphael.svg.js",
|
||||
"dev/raphael.vml.js",
|
||||
"dev/raphael.amd.js"
|
||||
]
|
||||
},
|
||||
nodeps: {
|
||||
dest: "<%= pkg.name %>-nodeps.js",
|
||||
src: [
|
||||
"dev/raphael.core.js",
|
||||
"dev/raphael.svg.js",
|
||||
"dev/raphael.vml.js",
|
||||
"dev/raphael.amd.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// These plugins provide necessary tasks.
|
||||
grunt.loadNpmTasks("grunt-contrib-concat");
|
||||
grunt.loadNpmTasks("grunt-contrib-uglify");
|
||||
grunt.loadNpmTasks("grunt-replace");
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask("default", ["concat", "replace", "uglify"]);
|
||||
};
|
21
account/theme/plugins/raphael/license.txt
Normal file
21
account/theme/plugins/raphael/license.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2008-2010 Dmitry Baranovskiy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
8438
account/theme/plugins/raphael/raphael.js
Normal file
8438
account/theme/plugins/raphael/raphael.js
Normal file
File diff suppressed because it is too large
Load Diff
1
account/theme/plugins/raphael/raphael.min.js
vendored
Normal file
1
account/theme/plugins/raphael/raphael.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8011
account/theme/plugins/raphael/raphael.no-deps.js
Normal file
8011
account/theme/plugins/raphael/raphael.no-deps.js
Normal file
File diff suppressed because it is too large
Load Diff
1
account/theme/plugins/raphael/raphael.no-deps.min.js
vendored
Normal file
1
account/theme/plugins/raphael/raphael.no-deps.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user