Skip to content

Commit c7d4a4d

Browse files
committed
browserify and babelify added
1 parent 8edc47f commit c7d4a4d

3 files changed

Lines changed: 21 additions & 8 deletions

File tree

.jshintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"browser": true,
33
"jquery": true,
44
"node": true,
5-
"esnext": false,
5+
"esnext": true,
66
"globals": {
77
"hljs":true,
88
"twttr":true
@@ -14,6 +14,5 @@
1414
"indent": 2,
1515
"undef": true,
1616
"unused": true,
17-
1817
"predef": ["define"]
1918
}

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ module.exports = function(grunt) {
7979
src:'src/jquery.embed.css',
8080
dest:'dist/jquery.embed.css'
8181
}
82+
},
83+
84+
babel:{
85+
options:{
86+
sourceMap:true
87+
},
88+
dist:{
89+
'dist/jquery.embed.js':'src/jquery.embed.es6'
90+
}
8291
}
8392

8493
});
@@ -89,6 +98,7 @@ module.exports = function(grunt) {
8998
grunt.loadNpmTasks("grunt-contrib-watch");
9099
grunt.loadNpmTasks("grunt-contrib-cssmin");
91100
grunt.loadNpmTasks("grunt-contrib-copy");
101+
grunt.loadNpmTasks("grunt-babel");
92102

93103
grunt.registerTask("build", ["concat", "uglify","cssmin","copy"]);
94104
grunt.registerTask("default", ["jshint", "build"]);

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@
2525
"url": "https://github.com/ritz078"
2626
},
2727
"homepage": "http://rkritesh.in/embed.js",
28-
"contributors": [{
29-
"name":"Jesús Pérez",
30-
"email":"jesusprubio@gmail.com",
31-
"url":"https://github.com/jesusprubio"
32-
}],
28+
"contributors": [
29+
{
30+
"name": "Jesús Pérez",
31+
"email": "jesusprubio@gmail.com",
32+
"url": "https://github.com/jesusprubio"
33+
}
34+
],
3335
"license": "MIT",
3436
"devDependencies": {
37+
"babelify": "^6.2.0",
3538
"grunt": "~0.4.5",
39+
"grunt-browserify": "^4.0.0",
3640
"grunt-cli": "~0.1.13",
3741
"grunt-contrib-concat": "^0.5.1",
3842
"grunt-contrib-copy": "^0.8.0",
@@ -45,6 +49,6 @@
4549
"test": "grunt travis --verbose"
4650
},
4751
"dependencies": {
48-
"jquery": ">=1.2.x"
52+
"jquery": "^2.1.4"
4953
}
5054
}

0 commit comments

Comments
 (0)