version in dist files

This commit is contained in:
Adam Bradley
2013-12-07 14:30:57 -06:00
parent 9cb7826329
commit bad322d2da
11 changed files with 64 additions and 39 deletions

View File

@@ -87,6 +87,24 @@ module.exports = function(grunt) {
}
}
},
'string-replace': {
version: {
files: {
'dist/css/ionic.css': 'dist/css/ionic.css',
'dist/css/ionic.min.css': 'dist/css/ionic.min.css',
'dist/js/ionic.js': 'dist/js/ionic.js',
'dist/js/ionic.min.js': 'dist/js/ionic.min.js',
'dist/js/ionic-angular.js': 'dist/js/ionic-angular.js',
'dist/js/ionic-angular.min.js': 'dist/js/ionic-angular.min.js'
},
options: {
replacements: [{
pattern: /{{ VERSION }}/g,
replacement: '<%= pkg.version %>'
}]
}
}
},
watch: {
scripts: {
files: ['js/**/*.js', 'ext/**/*.js'],
@@ -102,7 +120,8 @@ module.exports = function(grunt) {
spawn: false
}
}
}
},
pkg: grunt.file.readJSON('package.json')
});
require('load-grunt-tasks')(grunt);
@@ -112,6 +131,7 @@ module.exports = function(grunt) {
'sass',
'cssmin',
'concat',
'uglify'
'uglify',
'string-replace'
]);
};

6
dist/css/ionic.css vendored
View File

@@ -1,10 +1,10 @@
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
* Ionic - a powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* Ionic, v0.9.14
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,16 +1,16 @@
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
* Ionic - a powerful HTML5 mobile app framework.
*
* Ionic, v0.9.14
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
*/;
/**
* Create a wrapping module to ease having to include too many
* modules.

View File

File diff suppressed because one or more lines are too long

14
dist/js/ionic.js vendored
View File

@@ -1,23 +1,23 @@
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
* Ionic - a powerful HTML5 mobile app framework.
*
* Ionic, v0.9.14
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
*/;
// Create namespaces
window.ionic = {
controllers: {},
views: {}
};
;
views: {},
version: '0.9.14'
};;
(function(ionic) {
var bezierCoord = function (x,y) {

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,12 +1,13 @@
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
* Ionic - a powerful HTML5 mobile app framework.
*
* Ionic, v{{ VERSION }}
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
*/

View File

@@ -2,5 +2,6 @@
// Create namespaces
window.ionic = {
controllers: {},
views: {}
};
views: {},
version: '{{ VERSION }}'
};

View File

@@ -1,7 +1,7 @@
{
"name": "ionic",
"private": false,
"version": "0.9.04",
"version": "0.9.14",
"devDependencies": {
"karma": "~0.10",
"grunt": "~0.4.1",
@@ -12,6 +12,7 @@
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-sass": "~0.5.0",
"grunt-string-replace": "~0.2.7",
"karma-jasmine": "~0.1.3",
"karma-chrome-launcher": "~0.1.0",
"load-grunt-tasks": "~0.2.0"
@@ -24,4 +25,4 @@
"type": "MIT"
}
]
}
}

View File

@@ -3,10 +3,10 @@
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
* Ionic - a powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* Ionic, v{{ VERSION }}
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*