Skip to content

Commit ca48f2d

Browse files
committed
Fixed template path defaults in options.md, updated Handlebars to v4.0.5, switched the default plugin styling from LESS to SASS
1 parent 9f978e6 commit ca48f2d

20 files changed

+5099
-3395
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
2+
.sass-cache/
23
node_modules/
34
cgi-bin/

Gruntfile.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ module.exports = function (grunt) {
1616
less : {
1717
dist: {
1818
files: {
19-
'dist/assets/css/storelocator.css' : 'src/css/storelocator.less',
2019
'dist/assets/css/bootstrap-example.css' : 'src/css/bootstrap-example.less'
2120
}
2221
}
2322
},
23+
sass : {
24+
dist: {
25+
files: {
26+
'dist/assets/css/storelocator.css' : 'src/css/storelocator.scss'
27+
}
28+
}
29+
},
2430
concat : {
2531
options: {
2632
stripBanners: true
@@ -86,14 +92,22 @@ module.exports = function (grunt) {
8692
}
8793
}
8894
},
95+
handlebars : {
96+
dist: {
97+
files: {
98+
'dist/assets/js/plugins/storeLocator/templates/compiled/standard-templates.js': 'src/templates/standard/*.html',
99+
'dist/assets/js/plugins/storeLocator/templates/compiled/kml-templates.js': 'src/templates/kml/*.html'
100+
}
101+
}
102+
},
89103
watch : {
90104
gruntfile: {
91105
files: '<%= jshint.gruntfile.src %>',
92106
tasks: ['jshint:gruntfile']
93107
},
94108
src : {
95109
files : ['src/**/*'],
96-
tasks : ['less', 'concat', 'uglify', 'usebanner', 'cssmin'],
110+
tasks : ['less', 'sass', 'concat', 'uglify', 'usebanner', 'cssmin', 'handlebars'],
97111
options: {
98112
spawn : false,
99113
livereload: true
@@ -109,18 +123,19 @@ module.exports = function (grunt) {
109123
// These plugins provide necessary tasks.
110124
grunt.loadNpmTasks('grunt-contrib-clean');
111125
grunt.loadNpmTasks('grunt-contrib-less');
126+
grunt.loadNpmTasks('grunt-contrib-sass');
112127
grunt.loadNpmTasks('grunt-contrib-concat');
113128
grunt.loadNpmTasks('grunt-contrib-uglify');
114129
grunt.loadNpmTasks('grunt-contrib-qunit');
115130
grunt.loadNpmTasks('grunt-contrib-jshint');
116131
grunt.loadNpmTasks('grunt-contrib-watch');
117132
grunt.loadNpmTasks('grunt-banner');
118133
grunt.loadNpmTasks('grunt-contrib-cssmin');
134+
grunt.loadNpmTasks('grunt-contrib-handlebars');
119135

120-
// Default task.
121-
//grunt.registerTask('default', ['jshint', 'qunit', 'less', 'concat', 'uglify', 'usebanner', 'cssmin']);
122136
// Build
123-
grunt.registerTask('build', ['less', 'concat', 'uglify', 'usebanner', 'cssmin']);
137+
grunt.registerTask('build', ['less', 'sass', 'concat', 'uglify', 'usebanner', 'cssmin', 'handlebars']);
138+
124139
//Watch src build
125140
grunt.registerTask('watchsrc', ['watch:src']);
126141

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)