added grunt-version. what's now left to do is automatic/semi-automatic

incrementation of version numbers.
i'm not so sure anymore whether the files in dist/ should contain the
version number in their filename. i'll ponder on that and decide later.
This commit is contained in:
Manuel Friedli 2015-01-19 01:01:06 +01:00
parent 6692d2d6d9
commit 91ac2ce048
17 changed files with 36 additions and 24 deletions

View file

@ -145,21 +145,32 @@ module.exports = function (grunt) {
port: 9000
}
}
// },
// version: {
// read version from pkg.version
// write it out to:
// - bower.json
// - manifest.appcache (once it exists again)
// - VERSION
},
version: {
VERSION: {
options: {
prefix: ''
},
src: ['VERSION']
},
bower: {
src: ['bower.json']
},
manifest: {
options: {
prefix: 'Version\\s+'
},
src: ['manifest.appcache']
}
}
});
grunt.loadNpmTasks('grunt-mocha-phantomjs');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-version');
// Default task.
grunt.registerTask('default', ['jshint', 'clean', /*'version',*/ 'concat', 'connect', 'mocha_phantomjs', 'uglify', 'cssmin']);
grunt.registerTask('default', ['jshint', 'clean', 'version', 'concat', 'connect', 'mocha_phantomjs', 'uglify', 'cssmin']);
grunt.registerTask('buildonly', ['clean', 'concat', 'uglify', 'cssmin']);
grunt.registerTask('server', function () {
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');

View file

@ -1 +1 @@
8.0.0-dev.0
8.0.0-dev.1

View file

@ -1,6 +1,6 @@
{
"name": "uhr",
"version": "8.0.0-dev.0",
"version": "8.0.0-dev.1",
"dependencies": {
"jquery": "~2.1.3",
"jquery-ui": "~1.11.2",

View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
(function($) {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
(function($) {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
(function($) {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
(function($) {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
(function($) {

File diff suppressed because one or more lines are too long

2
dist/libs.js vendored
View file

@ -1,4 +1,4 @@
/*! uhr - v8.0.0-dev.0 - 2015-01-19
/*! uhr - v8.0.0-dev.1 - 2015-01-19
* http://bärneruhr.ch/
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
/*!

2
dist/libs.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
CACHE MANIFEST
# Version <%=VERSION_PLACEHOLDER=%>
# Version 8.0.0-dev.1
/
dist/jquery.uhr.base.min.js

View file

@ -1,6 +1,6 @@
{
"name": "uhr",
"version": "8.0.0-dev.0",
"version": "8.0.0-dev.1",
"description": "jQuery QLOCKTWO plugin",
"keywords": [
"jquery-plugin",
@ -34,6 +34,7 @@
"grunt-contrib-uglify": "~0.5.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-mocha-phantomjs": "^0.6.0",
"grunt-version": "^0.3.0",
"jshint-stylish": "~0.2.0",
"load-grunt-tasks": "~0.6.0",
"phantomjs": "^1.9.13",