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

Commit

Permalink
- replaced deprecated jQuery functions ($.proxy and $.type)
Browse files Browse the repository at this point in the history
- updated README with documentation so we no longer need the website
- updated dependencies
  • Loading branch information
staaky committed Sep 6, 2021
1 parent 646e2f2 commit 38d64b5
Show file tree
Hide file tree
Showing 53 changed files with 9,005 additions and 5,439 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
strip-*.zip
*.log
.idea
.history
51 changes: 25 additions & 26 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = function(grunt) {
module.exports = function (grunt) {
// Config
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
dirs: {
dest: "dist"
dest: "dist",
},

vars: {},

concat: {
js: {
options: {
process: true
process: true,
},
src: [
"src/js/umd-head.js",
Expand Down Expand Up @@ -39,17 +39,17 @@ module.exports = function(grunt) {

"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
process: true,
},
src: ["src/css/strip.css"],
dest: "<%= dirs.dest %>/css/strip.css"
}
dest: "<%= dirs.dest %>/css/strip.css",
},
},

copy: {
Expand All @@ -59,47 +59,47 @@ module.exports = function(grunt) {
expand: true,
cwd: "src/css/strip-skins/",
src: ["**"],
dest: "<%= dirs.dest %>/css/strip-skins/"
}
]
}
dest: "<%= dirs.dest %>/css/strip-skins/",
},
],
},
},

uglify: {
js: {
options: {
output: {
comments: "some"
}
comments: "some",
},
},
src: ["<%= dirs.dest %>/js/strip.pkgd.js"],
dest: "<%= dirs.dest %>/js/strip.pkgd.min.js"
}
dest: "<%= dirs.dest %>/js/strip.pkgd.min.js",
},
},

svgmin: {
options: {
plugins: [
{ removeViewBox: false },
{ removeUselessStrokeAndFill: false },
{ removeEmptyAttrs: false }
]
{ removeEmptyAttrs: false },
],
},
dist: {
files: [
{
expand: true,
cwd: "src/css/",
src: ["**/*.svg"],
dest: "src/css/"
}
]
}
dest: "src/css/",
},
],
},
},

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

// Load plugins
Expand All @@ -108,15 +108,14 @@ module.exports = function(grunt) {
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"
"copy:css",
]);

grunt.registerTask("svg", ["svgmin"]);
Expand Down
Loading

0 comments on commit 38d64b5

Please sign in to comment.