From d019ebeb1f0d6c1826f1a25c5bef1683cf19b8ca Mon Sep 17 00:00:00 2001 From: paschdan Date: Sat, 15 Feb 2014 17:43:54 +0100 Subject: [PATCH 01/12] fixing jquery path in common js --- assets/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/common.js b/assets/js/common.js index 1219451..7d849a3 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -18,7 +18,7 @@ requirejs.config({ * AMD, you will likely need a paths entry and also an entry in * shim (beyond what you see for the bootstrap shim). */ - jquery: '../vendor/jquery/jquery.min', + jquery: '../vendor/jquery/dist/jquery.min', bootstrap: '../vendor/bootstrap/dist/js/bootstrap.min' }, shim: { From e3545ce11d5a401b0c216cef5514750e1fef7cf2 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 25 Feb 2014 10:35:00 -0600 Subject: [PATCH 02/12] Fixing a bug where "grunt default" sass didn't work The issue was that default ran copy:assets, which ran clean:sass. So later, when default ran compass:dev, the web/assets/sass files had already been removed --- Gruntfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index e6791a9..a5727e8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -186,11 +186,11 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-clean'); // sub-task that copies assets to web/assets, and also cleans some things - grunt.registerTask('copy:assets', ['clean:build', 'copy', 'clean:sass']); + grunt.registerTask('copy:assets', ['clean:build', 'copy']); // the "default" task (e.g. simply "Grunt") runs tasks for development - grunt.registerTask('default', ['copy:assets', 'jshint', 'compass:dev']); + grunt.registerTask('default', ['copy:assets', 'jshint', 'compass:dev', 'clean:sass']); // register a "production" task that sets everything up before deployment - grunt.registerTask('production', ['copy:assets', 'jshint', 'requirejs', 'uglify', 'compass:dist']); + grunt.registerTask('production', ['copy:assets', 'jshint', 'requirejs', 'uglify', 'compass:dist', 'clean:sass']); }; \ No newline at end of file From afad62a1b53b93968716bde68a2f1c4f4459893b Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 25 Feb 2014 10:36:32 -0600 Subject: [PATCH 03/12] Using the asset function See https://github.com/knpuniversity/symfonycon-frontend/commit/fe37dc1e8e198f73869052a817b9cab9a998d3d5#commitcomment-5364899 --- src/Yoda/EventBundle/Resources/views/_requirejs.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yoda/EventBundle/Resources/views/_requirejs.html.twig b/src/Yoda/EventBundle/Resources/views/_requirejs.html.twig index 3988392..ff81fbe 100644 --- a/src/Yoda/EventBundle/Resources/views/_requirejs.html.twig +++ b/src/Yoda/EventBundle/Resources/views/_requirejs.html.twig @@ -1,7 +1,7 @@