Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Langfeld <ben@langfeld.me>2015-08-11 17:15:49 +0300
committerBen Langfeld <ben@langfeld.me>2015-08-11 17:15:49 +0300
commitc9df023df66222bee35463e591053ebc8694fc14 (patch)
tree0eb12390fe81309db18129ac5557ec0c31bc476c
parent845493e00e41194bad8f439f59324591ced25a51 (diff)
Read Github credentials from disk for releasev2.1.0
Need to use a token rather than a password. I'll never remember the token. Trim down the release package to make sure it doesn't include these creds, and also remove other stuff only necessary for development.
-rw-r--r--.gitignore1
-rw-r--r--Gruntfile.js30
2 files changed, 20 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 05fa461..778a5ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ libs.min.*
*.log
lcov.info
candy.zip
+github-credentials.json
diff --git a/Gruntfile.js b/Gruntfile.js
index c51de78..3663775 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -193,16 +193,6 @@ module.exports = function(grunt) {
config: 'github-release.options.release.body',
type: 'input',
message: 'GitHub release body:'
- },
- {
- config: 'github-release.options.auth.user',
- type: 'input',
- message: 'GitHub username:'
- },
- {
- config: 'github-release.options.auth.password',
- type: 'password',
- message: 'GitHub password:'
}
]
}
@@ -215,7 +205,24 @@ module.exports = function(grunt) {
},
files: [
{
- src: ['**'],
+ src: [
+ 'example/**',
+ 'res/**',
+ 'bower.json',
+ 'candy.bundle.js',
+ 'candy.bundle.map',
+ 'candy.min.js',
+ 'candy.min.map',
+ 'CONTRIBUTING.md',
+ 'CREDITS.md',
+ 'libs.bundle.js',
+ 'libs.bundle.map',
+ 'libs.min.js',
+ 'LICENSE',
+ 'package.json',
+ 'README.md',
+ 'res/**',
+ ],
dest: './'
},
]
@@ -224,6 +231,7 @@ module.exports = function(grunt) {
'github-release': {
options: {
repository: 'candy-chat/candy',
+ auth: grunt.file.readJSON('github-credentials.json'),
release: {
tag_name: 'v' + grunt.file.readJSON('package.json').version,
name: 'v' + grunt.file.readJSON('package.json').version