Skip to content

Commit

Permalink
Unhardcode project name/repo, look up in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Oct 24, 2014
1 parent ecc44d9 commit 5e53035
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = ->
# Project configuration
pkg = @file.readJSON 'package.json'
repo = pkg.repository.url.replace 'git://', 'https://'+process.env.GH_TOKEN+'@'

@initConfig
pkg: @file.readJSON 'package.json'

Expand Down Expand Up @@ -31,15 +34,15 @@ module.exports = ->
# signalserver: 'http://localhost:8888'
# signalserver: 'http://api.flowhub.io'
files:
'browser/noflo-browser-app.js': ['component.json']
"browser/<%=pkg.name%>.js": ['component.json']

# JavaScript minification for the browser
uglify:
options:
report: 'min'
noflo:
files:
'./browser/noflo-browser-app.min.js': ['./browser/noflo-browser-app.js']
"./browser/<%=pkg.name%>.min.js": ["./browser/<%=pkg.name%>.js"]

# Automated recompilation and testing when developing
watch:
Expand Down Expand Up @@ -72,11 +75,11 @@ module.exports = ->
base: 'browser'
clone: 'gh-pages'
message: 'Updating'
repo: 'https://' + process.env.GH_TOKEN + '@github.com/noflo/noflo-browser-app.git'
repo: repo
user:
name: 'NoFlo bot'
email: '[email protected]'
silent: true
silent: false
src: '**/*'

# Grunt plugins used for building
Expand Down

0 comments on commit 5e53035

Please sign in to comment.