Skip to content

Commit c84932e

Browse files
committed
Remove old minified file, implement build system
1 parent ee80678 commit c84932e

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.min.js

Gruntfile.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use strict';
2+
3+
module.exports = function(grunt) {
4+
5+
// Project configuration.
6+
grunt.initConfig({
7+
pkg: grunt.file.readJSON('package.json'),
8+
uglify: {
9+
options: {
10+
banner: '/*! <%= pkg.name %> built on <%= grunt.template.today("yyyy-mm-dd") %> : Based on https://github.com/simsalabim/sisyphus */\n'
11+
},
12+
build: {
13+
src: 'js/sisyphus.js',
14+
dest: 'js/sisyphus.min.js'
15+
}
16+
}
17+
});
18+
19+
// Load the plugin that provides the "uglify" task.
20+
grunt.loadNpmTasks('grunt-contrib-uglify');
21+
22+
// Default task(s).
23+
grunt.registerTask('default', ['uglify']);
24+
25+
};

js/sisyphus.min.js

-1
This file was deleted.

package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "gravity-forms-sisyphus",
3+
"version": "1.0",
4+
"description": "Allow for saving your Gravity Forms data with local storage using Sisyphus",
5+
"dependencies": {},
6+
"devDependencies": {
7+
"grunt": "~0.4.2",
8+
"grunt-contrib-uglify": "~0.2.7"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "[email protected]:Swingline0/gravity-forms-sisyphus.git"
13+
},
14+
"keywords": [
15+
"gravity",
16+
"forms",
17+
"sisyphus"
18+
],
19+
"author": "@bhays, @Swingline0",
20+
"license": "GNUv2",
21+
"bugs": {
22+
"url": "https://github.com/Swingline0/gravity-forms-sisyphus/issues"
23+
}
24+
}

0 commit comments

Comments
 (0)