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:
parent
6692d2d6d9
commit
91ac2ce048
17 changed files with 36 additions and 24 deletions
27
Gruntfile.js
27
Gruntfile.js
|
@ -145,21 +145,32 @@ module.exports = function (grunt) {
|
||||||
port: 9000
|
port: 9000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// },
|
},
|
||||||
// version: {
|
version: {
|
||||||
// read version from pkg.version
|
VERSION: {
|
||||||
// write it out to:
|
options: {
|
||||||
// - bower.json
|
prefix: ''
|
||||||
// - manifest.appcache (once it exists again)
|
},
|
||||||
// - VERSION
|
src: ['VERSION']
|
||||||
|
},
|
||||||
|
bower: {
|
||||||
|
src: ['bower.json']
|
||||||
|
},
|
||||||
|
manifest: {
|
||||||
|
options: {
|
||||||
|
prefix: 'Version\\s+'
|
||||||
|
},
|
||||||
|
src: ['manifest.appcache']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
||||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
|
grunt.loadNpmTasks('grunt-version');
|
||||||
|
|
||||||
// Default task.
|
// 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('buildonly', ['clean', 'concat', 'uglify', 'cssmin']);
|
||||||
grunt.registerTask('server', function () {
|
grunt.registerTask('server', function () {
|
||||||
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
|
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
8.0.0-dev.0
|
8.0.0-dev.1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "uhr",
|
"name": "uhr",
|
||||||
"version": "8.0.0-dev.0",
|
"version": "8.0.0-dev.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "~2.1.3",
|
"jquery": "~2.1.3",
|
||||||
"jquery-ui": "~1.11.2",
|
"jquery-ui": "~1.11.2",
|
||||||
|
|
2
dist/jquery.uhr.base.js
vendored
2
dist/jquery.uhr.base.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
2
dist/jquery.uhr.base.min.js
vendored
2
dist/jquery.uhr.base.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/jquery.uhr.baselangs.js
vendored
2
dist/jquery.uhr.baselangs.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
2
dist/jquery.uhr.baselangs.min.js
vendored
2
dist/jquery.uhr.baselangs.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/jquery.uhr.complete.js
vendored
2
dist/jquery.uhr.complete.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
2
dist/jquery.uhr.complete.min.js
vendored
2
dist/jquery.uhr.complete.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/jquery.uhr.langs.js
vendored
2
dist/jquery.uhr.langs.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
2
dist/jquery.uhr.langs.min.js
vendored
2
dist/jquery.uhr.langs.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/jquery.uhr.main.js
vendored
2
dist/jquery.uhr.main.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
2
dist/jquery.uhr.main.min.js
vendored
2
dist/jquery.uhr.main.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/libs.js
vendored
2
dist/libs.js
vendored
|
@ -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/
|
* http://bärneruhr.ch/
|
||||||
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
* Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */
|
||||||
/*!
|
/*!
|
||||||
|
|
2
dist/libs.min.js
vendored
2
dist/libs.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# Version <%=VERSION_PLACEHOLDER=%>
|
# Version 8.0.0-dev.1
|
||||||
|
|
||||||
/
|
/
|
||||||
dist/jquery.uhr.base.min.js
|
dist/jquery.uhr.base.min.js
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "uhr",
|
"name": "uhr",
|
||||||
"version": "8.0.0-dev.0",
|
"version": "8.0.0-dev.1",
|
||||||
"description": "jQuery QLOCKTWO plugin",
|
"description": "jQuery QLOCKTWO plugin",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"jquery-plugin",
|
"jquery-plugin",
|
||||||
|
@ -34,6 +34,7 @@
|
||||||
"grunt-contrib-uglify": "~0.5.0",
|
"grunt-contrib-uglify": "~0.5.0",
|
||||||
"grunt-contrib-watch": "~0.6.1",
|
"grunt-contrib-watch": "~0.6.1",
|
||||||
"grunt-mocha-phantomjs": "^0.6.0",
|
"grunt-mocha-phantomjs": "^0.6.0",
|
||||||
|
"grunt-version": "^0.3.0",
|
||||||
"jshint-stylish": "~0.2.0",
|
"jshint-stylish": "~0.2.0",
|
||||||
"load-grunt-tasks": "~0.6.0",
|
"load-grunt-tasks": "~0.6.0",
|
||||||
"phantomjs": "^1.9.13",
|
"phantomjs": "^1.9.13",
|
||||||
|
|
Loading…
Reference in a new issue