Move version to pkg.meta

This commit is contained in:
Zixaphir 2015-01-14 21:15:47 -07:00
parent 4c071abe62
commit f19c950efc
6 changed files with 10 additions and 9 deletions

View File

@ -136,9 +136,9 @@ module.exports = (grunt) ->
command: 'git checkout <%= pkg.meta.mainBranch %>'
commit:
command: [
'git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>."'
'git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>."'
'git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>."'
'git commit -am "Release <%= pkg.meta.name %> v<%= pkg.meta.version %>."'
'git tag -a <%= pkg.meta.version %> -m "<%= pkg.meta.name %> v<%= pkg.meta.version %>."'
'git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.meta.version %>."'
].join " && "
push:
command: 'git push origin --tags -f && git push origin --all'
@ -249,7 +249,8 @@ module.exports = (grunt) ->
grunt.registerTask 'updcl', 'Update the changelog', (headerLevel) ->
headerPrefix = new Array(+headerLevel + 1).join '#'
{version} = grunt.config 'pkg'
{meta} = grunt.config 'pkg'
{version} = meta
today = grunt.template.today 'yyyy-mm-dd'
changelog = grunt.file.read 'CHANGELOG.md'

View File

@ -502,7 +502,7 @@
doc = d.documentElement;
g = {
VERSION: '',
VERSION: '2.10.2',
NAMESPACE: 'appchan_x.',
NAME: 'appchan x',
FAQ: 'https://github.com/zixaphir/appchan-x/wiki/Frequently-Asked-Questions',

View File

@ -474,7 +474,7 @@
doc = d.documentElement;
g = {
VERSION: '',
VERSION: '2.10.2',
NAMESPACE: 'appchan_x.',
NAME: 'appchan x',
FAQ: 'https://github.com/zixaphir/appchan-x/wiki/Frequently-Asked-Questions',

View File

@ -1,5 +1,5 @@
/*
* <%= meta.name %> - Version <%= version %> - <%= grunt.template.today('yyyy-mm-dd') %>
* <%= meta.name %> - Version <%= meta.version %> - <%= grunt.template.today('yyyy-mm-dd') %>
*
* Licensed under the MIT license.
* <%= meta.repo %>blob/master/LICENSE

View File

@ -1,6 +1,6 @@
{
"name": "<%= meta.name %>",
"version": "<%= version %>",
"version": "<%= meta.version %>",
"manifest_version": 2,
"description": "<%= description %>",
"icons": {

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name <%= meta.name %>
// @version <%= version %>
// @version <%= meta.version %>
// @minGMVer <%= meta.min.greasemonkey %>
// @minFFVer <%= meta.min.firefox %>
// @namespace <%= meta.namespace %>