Created
June 19, 2015 18:01
-
-
Save nheath/d947b54ef754bc6467a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| package: grunt.file.readJSON('package.json'), | |
| name: '<%= package.name %>', | |
| version: '<%= package.version %>', | |
| build: '<% return process.env.BUILD_NUMBER %>', | |
| artifact: '<%= name %>-<%= version %>', | |
| artifactBuild: '<%= name %>-<%= version %>-<%= build %>', | |
| }); | |
| grunt.registerTask('version', function() { | |
| grunt.log.writeln("version: " + grunt.config('version')); | |
| grunt.log.writeln("env: " + process.env.BUILD_NUMBER); | |
| grunt.log.writeln("build: " + grunt.config('build')); | |
| grunt.log.writeln("artifact: " + grunt.config('artifact')); | |
| grunt.log.writeln("artifactBuild: " + grunt.config('artifactBuild')); | |
| }); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "artifact", | |
| "version": "1.0.0", | |
| "description": "", | |
| "dependencies": { | |
| "grunt": "^0.4.5" | |
| }, | |
| "devDependencies": {}, | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "", | |
| "license": "ISC" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment