Skip to content

Commit

Permalink
Rename plugin to create dist/demo
Browse files Browse the repository at this point in the history
  • Loading branch information
psychowood committed Dec 16, 2014
1 parent 0e4dbb4 commit a35e5c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ module.exports = function (grunt) {
// ProcessHtml for demo build
grunt.loadNpmTasks('grunt-processhtml');

// Rename to move dist/app to dist/demo
grunt.loadNpmTasks('grunt-contrib-rename');

// Configurable paths for the application
var appConfig = {
app: require('./bower.json').appPath || 'app',
version: require('./bower.json').version || require('./package.json').version || 'version missing',
distRoot: 'dist',
dist: 'dist/app',
distUtorrent: 'dist/utorrent',
distDemo: 'dist/demo',
utorrentClassicWebUIArchive: 'resources/utorrent-webui.2013052820184444.zip'
};

Expand Down Expand Up @@ -107,6 +111,14 @@ module.exports = function (grunt) {
}
},

rename: {
demo: {
files: [
{src: ['<%= yeoman.dist %>'], dest: '<%= yeoman.distDemo %>'}
]
}
},

// The actual grunt server settings
connect: {
options: {
Expand Down Expand Up @@ -554,7 +566,8 @@ module.exports = function (grunt) {
'uglify',
'filerev',
'usemin',
'htmlmin'
'htmlmin',
'rename:demo'
]);

};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"grunt-contrib-htmlmin": "^0.3.0",
"grunt-contrib-imagemin": "^0.8.1",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-rename": "0.0.3",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-filerev": "^0.2.1",
Expand Down

0 comments on commit a35e5c9

Please sign in to comment.