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

Commit

Permalink
add jshint to grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Jul 15, 2013
1 parent 8f2b41c commit 6e2ec18
Show file tree
Hide file tree
Showing 6 changed files with 9,819 additions and 14 deletions.
31 changes: 24 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
hopscotch: {
src: ['js/hopscotch-<%= pkg.version %>.js'],
},
gruntfile: {
src: ['Gruntfile.js'],
},
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
jquery: true,
yui: true,
}
},
uglify: {
options: {
banner: bannerComment
Expand All @@ -30,28 +46,29 @@ module.exports = function(grunt) {
less: {
development: {
options: {
paths: ["less"]
paths: ['less']
},
files: {
"css/hopscotch-<%= pkg.version %>.css": "less/hopscotch.less"
'css/hopscotch-<%= pkg.version %>.css': 'less/hopscotch.less'
}
},
production: {
options: {
paths: ["less"],
paths: ['less'],
yuicompress: true,
banner: bannerComment
},
files: {
"css/hopscotch-<%= pkg.version %>.min.css": "less/hopscotch.less"
'css/hopscotch-<%= pkg.version %>.min.css': 'less/hopscotch.less'
}
}
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');

// Default task(s).
grunt.registerTask('default', ['uglify', 'less']);
}
grunt.registerTask('default', ['jshint', 'uglify', 'less']);
};
1 change: 0 additions & 1 deletion css/hopscotch-0.1.1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
*
* Copyright 2013 LinkedIn Corp. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion css/hopscotch-0.1.1.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/hopscotch-0.1.0.css" rel="stylesheet"></link>
<link href="../css/hopscotch-0.1.1.css" rel="stylesheet"></link>
<link href="css/bootstrap.css" rel="stylesheet"></link>
<link href="css/flat-ui.css" rel="stylesheet"></link>
<link href="css/demo.css" rel="stylesheet"></link>
Expand Down Expand Up @@ -458,8 +458,8 @@ <h1 id="hopscotch-callouts">Hopscotch Callouts</h1>

</div>
<p id="credits"><small>This page was built using <a href="https://github.com/designmodo/Flat-UI">Flat UI from designmodo</a>.</small></p>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="../js/hopscotch-0.1.0.js"></script>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="../js/hopscotch-0.1.1.js"></script>

This comment has been minimized.

Copy link
@jMatix

jMatix Oct 8, 2013

../js/hopscotch-0.1.2.js
new version

<script src="js/demo.js"></script>
</body>
</html>
Loading

0 comments on commit 6e2ec18

Please sign in to comment.