Skip to content

Instantly share code, notes, and snippets.

@ddewaele
Created March 29, 2014 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddewaele/9864106 to your computer and use it in GitHub Desktop.
Save ddewaele/9864106 to your computer and use it in GitHub Desktop.
Davys-MacBook-Air:com.ecs.vdm.web.grunt ddewaele$ grunt build
Running "clean:dist" (clean) task
Cleaning .tmp...OK
Cleaning dist/404.html...OK
Cleaning dist/bower_components...OK
Cleaning dist/favicon.ico...OK
Cleaning dist/fonts...OK
Cleaning dist/images...OK
Cleaning dist/index.html...OK
Cleaning dist/locales...OK
Cleaning dist/robots.txt...OK
Cleaning dist/scripts...OK
Cleaning dist/styles...OK
Running "coffee:dist" (coffee) task
Running "coffee:test" (coffee) task
Running "createDefaultTemplate" task
Running "jst:compile" (jst) task
File ".tmp/scripts/templates.js" created.
Running "compass:dist" (compass) task
Nothing to compile. If you're trying to start a new project, you have left off the directory argument.
Run "compass -h" to get help.
Running "useminPrepare:html" (useminPrepare) task
Going through app/index.html to update the config
Looking for build script HTML comment blocks
Found a block:
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
Updating config with the following assets:
- .tmp/styles/main.css
Found a block:
<!-- build:js scripts/vendor/modernizr.js -->
<script src="bower_components/modernizr/modernizr.js"></script>
<!-- endbuild -->
Updating config with the following assets:
- app/bower_components/modernizr/modernizr.js
Found a block:
<!-- build:css styles/modules.css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.css">
<link rel="stylesheet" href="bower_components/datatables/media/css/jquery.dataTables.css">
<link rel="stylesheet" href="bower_components/datatables-bootstrap3/BS3/assets/css/datatables.css">
<link rel="stylesheet" href="styles/navbar-fixed-top.css">
<link rel="stylesheet" href="styles/alert-blackgloss.css">
<link rel="stylesheet" href="styles/bootstrap-notify.css">
<link rel="stylesheet" href="styles/custom.css">
<!-- endbuild -->
Updating config with the following assets:
- app/bower_components/bootstrap/dist/css/bootstrap.css
- app/bower_components/bootstrap/dist/css/bootstrap-theme.css
- app/bower_components/datatables/media/css/jquery.dataTables.css
- app/bower_components/datatables-bootstrap3/BS3/assets/css/datatables.css
- app/styles/navbar-fixed-top.css
- app/styles/alert-blackgloss.css
- app/styles/bootstrap-notify.css
- app/styles/custom.css
Found a block:
<!-- build:js scripts/main.js -->
<script data-main="scripts/main" src="bower_components/requirejs/require.js"></script>
<!-- endbuild -->
Updating config with the following assets:
- dist/scripts/main.js
Configuration is now:
cssmin:
{ dist:
{ files:
{ '<%= yeoman.dist %>/styles/main.css':
[ '.tmp/styles/{,*/}*.css',
'app/styles/{,*/}*.css' ] } },
'dist/styles/main.css': 'dist/styles/main.css',
'dist/styles/modules.css': 'dist/styles/modules.css' }
concat:
{ 'dist/styles/main.css': [ '.tmp/styles/main.css' ],
'dist/scripts/vendor/modernizr.js': [ 'app/bower_components/modernizr/modernizr.js' ],
'dist/styles/modules.css':
[ 'app/bower_components/bootstrap/dist/css/bootstrap.css',
'app/bower_components/bootstrap/dist/css/bootstrap-theme.css',
'app/bower_components/datatables/media/css/jquery.dataTables.css',
'app/bower_components/datatables-bootstrap3/BS3/assets/css/datatables.css',
'app/styles/navbar-fixed-top.css',
'app/styles/alert-blackgloss.css',
'app/styles/bootstrap-notify.css',
'app/styles/custom.css' ],
'dist/scripts/main.js': [ 'dist/scripts/main.js' ] }
uglify:
{ 'dist/scripts/vendor/modernizr.js': 'dist/scripts/vendor/modernizr.js',
'dist/scripts/main.js': 'dist/scripts/main.js',
'dist/bower_components/requirejs/require.js': 'app/bower_components/requirejs/require.js' }
requirejs:
{ dist:
{ options:
{ baseUrl: 'app/scripts',
optimize: 'none',
paths:
{ templates: '../../.tmp/scripts/templates',
jquery: '../../app/bower_components/jquery/jquery',
underscore: '../../app/bower_components/underscore/underscore',
backbone: '../../app/bower_components/backbone/backbone' },
almond: true,
preserveLicenseComments: false,
useStrict: true,
wrap: true,
name: 'main',
out: 'dist/scripts/main.js',
mainConfigFile: 'app/scripts/main.js' } } }
Running "requirejs:dist" (requirejs) task
>> RequireJS optimizer finished
/Users/ddewaele/Projects/VDM/vehicle-diagnostic-manager/web/com.ecs.vdm.web.grunt/dist/scripts/main.js
Uncompressed size: 1331524 bytes.
Compressed size: 308007 bytes gzipped.
Running "imagemin:dist" (imagemin) task
✔ app/images/back_disabled.png (saved 6.06 kb)
✔ app/images/back_enabled.png (saved 6.20 kb)
✔ app/images/back_enabled_hover.png (saved 6.17 kb)
✔ app/images/forward_disabled.png (saved 6.29 kb)
✔ app/images/forward_enabled.png (saved 6.42 kb)
✔ app/images/forward_enabled_hover.png (saved 6.42 kb)
✔ app/images/interactions/CUSTOMER_CONTACT.png (saved 1.23 kB)
✔ app/images/interactions/DTC_FOUND.png (saved 1.17 kB)
✔ app/images/interactions/HEARTBEAT.png (saved 1.18 kB)
✔ app/images/interactions/MAINTANANCE_REQUIRED.png (saved -2 B)
✔ app/images/interactions/MILEAGE_UPDATE.png (saved 1.25 kB)
✔ app/images/interactions/NEW_VEHICLE.png (saved 2.72 kB)
✔ app/images/interactions/VEHICLE_DATA_UPDATE.png (saved 1.37 kB)
✔ app/images/interactions/VOLTAGE_LEVEL.png (saved -33 B)
✔ app/images/sort_asc.png (saved 6.93 kb)
✔ app/images/sort_asc_disabled.png (saved 6.38 kb)
✔ app/images/sort_both.png (saved 6.80 kb)
✔ app/images/sort_desc.png (saved 7.01 kb)
✔ app/images/sort_desc_disabled.png (saved 6.35 kb)
✔ app/images/status/car_dtcs_found.png (saved 3.33 kB)
✔ app/images/status/car_mileage_reached.png (saved 3.23 kB)
✔ app/images/status/car_mileage_warning.png (saved 3.23 kB)
✔ app/images/status/car_new.png (saved 1.82 kB)
✔ app/images/trashcan.png (saved 2.13 kb)
Minified 24 images (saved 29.63 kB)
Running "htmlmin:dist" (htmlmin) task
File dist/404.html created.
File dist/index.html created.
Running "concat:dist/styles/main.css" (concat) task
File "dist/styles/main.css" created.
Running "concat:dist/scripts/vendor/modernizr.js" (concat) task
File "dist/scripts/vendor/modernizr.js" created.
Running "concat:dist/styles/modules.css" (concat) task
File "dist/styles/modules.css" created.
Running "concat:dist/scripts/main.js" (concat) task
File "dist/scripts/main.js" created.
Running "cssmin:dist" (cssmin) task
File dist/styles/main.css created.
Running "cssmin:dist/styles/main.css" (cssmin) task
File dist/styles/main.css created.
Running "cssmin:dist/styles/modules.css" (cssmin) task
File dist/styles/modules.css created.
Running "uglify:dist/scripts/vendor/modernizr.js" (uglify) task
File "dist/scripts/vendor/modernizr.js" created.
Running "uglify:dist/scripts/main.js" (uglify) task
File "dist/scripts/main.js" created.
Running "uglify:dist/bower_components/requirejs/require.js" (uglify) task
File "dist/bower_components/requirejs/require.js" created.
Running "copy:dist" (copy) task
Copied 8 files
Running "rev:dist" (rev) task
dist/scripts/main.js >> bb581900.main.js
dist/scripts/vendor/modernizr.js >> d7100892.modernizr.js
dist/styles/main.css >> 0e785075.main.css
dist/styles/modules.css >> 3946e07d.modules.css
dist/images/back_disabled.png >> 2adca4be.back_disabled.png
dist/images/back_enabled.png >> 1bc974ae.back_enabled.png
dist/images/back_enabled_hover.png >> dc231993.back_enabled_hover.png
dist/images/forward_disabled.png >> 2067fcc9.forward_disabled.png
dist/images/forward_enabled.png >> 3d5a8d82.forward_enabled.png
dist/images/forward_enabled_hover.png >> d8d87351.forward_enabled_hover.png
dist/images/sort_asc.png >> e188e238.sort_asc.png
dist/images/sort_asc_disabled.png >> e188e238.sort_asc_disabled.png
dist/images/sort_both.png >> 79fa7022.sort_both.png
dist/images/sort_desc.png >> 6d3ab4ab.sort_desc.png
dist/images/sort_desc_disabled.png >> b3241176.sort_desc_disabled.png
dist/images/trashcan.png >> cae9f001.trashcan.png
Running "usemin:html" (usemin) task
Processing as HTML - dist/404.html
Update the HTML to reference our concat/min/revved script files
Update the HTML with the new css filenames
Update the HTML with the new img filenames
Update the HTML with data-main tags
Update the HTML with the data tags
Update the HTML with background imgs, case there is some inline style
Update the HTML with anchors images
Update the HTML with reference in input
Processing as HTML - dist/index.html
Update the HTML to reference our concat/min/revved script files
<script src="scripts/vendor/modernizr.js" changed to <script src="scripts/vendor/d7100892.modernizr.js"
Update the HTML with the new css filenames
<link rel="stylesheet" href="styles/main.css" changed to <link rel="stylesheet" href="styles/0e785075.main.css"
<link rel="stylesheet" href="styles/modules.css" changed to <link rel="stylesheet" href="styles/3946e07d.modules.css"
Update the HTML with the new img filenames
Update the HTML with data-main tags
data-main="scripts/main.js" changed to data-main="scripts/bb581900.main"
Update the HTML with the data tags
Update the HTML with background imgs, case there is some inline style
Update the HTML with anchors images
Update the HTML with reference in input
Running "usemin:css" (usemin) task
Processing as CSS - dist/styles/0e785075.main.css
Update the CSS with new img filenames
Processing as CSS - dist/styles/3946e07d.modules.css
Update the CSS with new img filenames
url(../images/back_enabled.png) changed to url(../images/1bc974ae.back_enabled.png)
url(../images/back_enabled_hover.png) changed to url(../images/dc231993.back_enabled_hover.png)
url(../images/back_disabled.png) changed to url(../images/2adca4be.back_disabled.png)
url(../images/forward_enabled.png) changed to url(../images/3d5a8d82.forward_enabled.png)
url(../images/forward_enabled_hover.png) changed to url(../images/d8d87351.forward_enabled_hover.png)
url(../images/forward_disabled.png) changed to url(../images/2067fcc9.forward_disabled.png)
url(../images/sort_both.png) changed to url(../images/79fa7022.sort_both.png)
url(../images/sort_asc.png) changed to url(../images/e188e238.sort_asc.png)
url(../images/sort_desc.png) changed to url(../images/6d3ab4ab.sort_desc.png)
url(../images/sort_asc_disabled.png) changed to url(../images/e188e238.sort_asc_disabled.png)
url(../images/sort_desc_disabled.png) changed to url(../images/b3241176.sort_desc_disabled.png)
url(../images/sort_both.png) changed to url(../images/79fa7022.sort_both.png)
url(../images/sort_asc.png) changed to url(../images/e188e238.sort_asc.png)
url(../images/sort_desc.png) changed to url(../images/6d3ab4ab.sort_desc.png)
url(../images/sort_asc_disabled.png) changed to url(../images/e188e238.sort_asc_disabled.png)
url(../images/sort_desc_disabled.png) changed to url(../images/b3241176.sort_desc_disabled.png)
Done, without errors.
Execution Time (2014-03-29 22:30:31 UTC)
loading tasks 2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 15%
compass:dist 398ms ▇▇▇▇▇ 3%
requirejs:dist 4.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 35%
uglify:dist/scripts/vendor/modernizr.js 241ms ▇▇▇ 2%
uglify:dist/scripts/main.js 5.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 39%
uglify:dist/bower_components/requirejs/require.js 253ms ▇▇▇▇ 2%
usemin:html 169ms ▇▇▇ 1%
usemin:css 144ms ▇▇ 1%
Total 13.4s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment