Skip to content

Commit

Permalink
Merge branch 'ditch-typeahead-css' of git://github.com/jharding/typea…
Browse files Browse the repository at this point in the history
…head.js into integration-0.9.0

Conflicts:
	Gruntfile.js
	dist/typeahead.css
	dist/typeahead.min.css
	package.json
	src/dropdown_view.js
	src/typeahead.js
	test/dropdown_view_spec.js
	test/typeahead_view_spec.js
  • Loading branch information
Jake Harding committed Mar 4, 2013
2 parents 662156f + 1c095a0 commit f7b55de
Show file tree
Hide file tree
Showing 23 changed files with 506 additions and 584 deletions.
63 changes: 14 additions & 49 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
var semver = require('semver'),
f = require('util').format,
jsFiles = [
'src/js/version.js',
'src/js/utils.js',
'src/js/event_target.js',
'src/js/persistent_storage.js',
'src/js/request_cache.js',
'src/js/transport.js',
'src/js/dataset.js',
'src/js/input_view.js',
'src/js/dropdown_view.js',
'src/js/typeahead_view.js',
'src/js/typeahead.js'
'src/version.js',
'src/utils.js',
'src/event_target.js',
'src/persistent_storage.js',
'src/request_cache.js',
'src/transport.js',
'src/dataset.js',
'src/input_view.js',
'src/dropdown_view.js',
'src/typeahead_view.js',
'src/typeahead.js'
];

module.exports = function(grunt) {
Expand All @@ -28,41 +28,13 @@ module.exports = function(grunt) {
' */\n\n'
].join('\n'),

less: {
css: {
src: 'src/css/typeahead.css',
dest: '<%= buildDir %>/typeahead.css'
},
cssmin: {
options: { yuicompress: true },
src: 'src/css/typeahead.css',
dest: '<%= buildDir %>/typeahead.min.css'
}
},

concat: {
css: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
src: '<%= less.css.dest %>',
dest: '<%= less.css.dest %>'
},
cssmin: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
src: '<%= less.cssmin.dest %>',
dest: '<%= less.cssmin.dest %>'
},
js: {
src: ['src/js/intro.js', jsFiles, 'src/js/outro.js'],
src: ['src/intro.js', jsFiles, 'src/outro.js'],
dest: '<%= buildDir %>/typeahead.js'
},
jsmin: {
src: ['src/js/intro.js', jsFiles, 'src/js/outro.js'],
src: ['src/intro.js', jsFiles, 'src/outro.js'],
dest: '<%= buildDir %>/typeahead.min.js'
}
},
Expand Down Expand Up @@ -111,10 +83,6 @@ module.exports = function(grunt) {
js: {
files: jsFiles,
tasks: 'build:js'
},
css: {
files: '<%= less.css.src %>',
tasks: 'build:css'
}
},

Expand Down Expand Up @@ -252,9 +220,7 @@ module.exports = function(grunt) {
// -------

grunt.registerTask('default', 'build');
grunt.registerTask('build', ['build:js', 'build:css']);
grunt.registerTask('build:js', ['concat:js', 'concat:jsmin', 'sed:version', 'uglify']);
grunt.registerTask('build:css', ['less', 'concat:css', 'concat:cssmin']);
grunt.registerTask('build', ['concat:js', 'concat:jsmin', 'sed:version', 'uglify']);
grunt.registerTask('server', 'connect:server');
grunt.registerTask('lint', 'jshint');
grunt.registerTask('test', 'jasmine:js');
Expand All @@ -267,7 +233,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sed');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-parallel');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand Down
3 changes: 1 addition & 2 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "typeahead.js",
"version": "0.8.2",
"main": [
"dist/typeahead.css",
"dist/typeahead.js"
],
"dependencies": {
"jquery": "~1.9"
}
}
}
72 changes: 0 additions & 72 deletions dist/typeahead.css

This file was deleted.

7 changes: 0 additions & 7 deletions dist/typeahead.min.css

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"grunt": "~0.4",
"grunt-sed": "~0.1",
"grunt-exec": "~0.4",
"grunt-contrib-less": "~0.5",
"grunt-contrib-watch": "~0.2",
"grunt-contrib-jshint": "~0.1",
"grunt-contrib-uglify": "~0.1",
Expand All @@ -45,4 +44,4 @@
},
"private": true,
"version": "0.8.2"
}
}
79 changes: 0 additions & 79 deletions src/css/typeahead.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/js/dataset.js → src/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ var Dataset = (function() {
return Dataset;

function compileTemplate(template, engine) {
var wrapper = '<li class="tt-suggestion">%body</li>',
var wrapper = '<div class="tt-suggestion">%body</div>',
compiledTemplate;

if (template) {
Expand Down
Loading

0 comments on commit f7b55de

Please sign in to comment.