diff options
author | Tomi Virkki <virkki@vaadin.com> | 2015-09-09 15:39:06 +0300 |
---|---|---|
committer | Tomi Virkki <virkki@vaadin.com> | 2015-09-09 15:39:06 +0300 |
commit | c393e9ce28a354dc6fe526193e016cdd3c016cad (patch) | |
tree | 49004e2704d4d7b6b6d5da9b308e856fead92b9e /tasks/config.js | |
parent | 08d870e3efdb05d9350aee714155be7b2b7eb6eb (diff) | |
download | vaadin-core-c393e9ce28a354dc6fe526193e016cdd3c016cad.tar.gz vaadin-core-c393e9ce28a354dc6fe526193e016cdd3c016cad.zip |
Added the tasks for publishing
Diffstat (limited to 'tasks/config.js')
-rw-r--r-- | tasks/config.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tasks/config.js b/tasks/config.js new file mode 100644 index 0000000..bfbf19f --- /dev/null +++ b/tasks/config.js @@ -0,0 +1,25 @@ +var args = require('yargs').argv; +var fs = require('fs'); + +var userhome = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE; + +module.exports = { + components: ['vaadin-grid'], + snapshotVersion: '0.3.0-snapshot', + version: args.version || '0.3.0-snapshot', + paths: { + staging: { + bower: 'target/bower', + cdn: 'target/cdn', + zip: 'target/zip' + }, + userhome: userhome, + privateKey: function() { + try { + return fs.readFileSync(userhome + '/.ssh/id_rsa'); + } catch(error) { + return fs.readFileSync(userhome + '/.ssh/id_dsa'); + } + } + } +}; |