Skip to content

Commit 015dc96

Browse files
authored
Merge pull request #26 from RallyTechServices/debugDevEnv
Debug dev env
2 parents 5a70155 + adf26ca commit 015dc96

File tree

8 files changed

+3343
-1380
lines changed

8 files changed

+3343
-1380
lines changed

Gruntfile.js

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ module.exports = function(grunt) {
5151
grunt.log.writeln("");
5252
grunt.log.writeln("WARNING: Slow tests won't run without an auth.json file");
5353
}
54+
55+
pkg = grunt.file.readJSON('package.json')
56+
config.pkg = pkg
5457

5558
grunt.initConfig({
56-
pkg: grunt.file.readJSON('package.json'),
59+
pkg: pkg,
5760
uglify: {
5861
options: {
5962
mangle: true
@@ -70,6 +73,13 @@ module.exports = function(grunt) {
7073
variables: config
7174
},
7275

76+
debugsdk: {
77+
src: 'templates/App-debugsdk-tpl.html',
78+
dest: 'deploy/App.txt',
79+
engine: 'underscore',
80+
variables: config
81+
},
82+
7383
prod: {
7484
src: 'templates/App-tpl.html',
7585
dest: 'deploy/App.txt',
@@ -221,8 +231,7 @@ module.exports = function(grunt) {
221231
request.defaults({jar: j});
222232

223233
var installApp = function(page_oid,panel_oid) {
224-
// DEFAULT TO ugly for deploying
225-
var html = grunt.file.read('deploy/Ugly.txt');
234+
var html = grunt.file.read(deploy_file_name);
226235

227236
var uri = config.auth.server + "/slm/dashboard/changepanelsettings.sp";
228237
grunt.log.writeln('URI:', uri);
@@ -403,9 +412,11 @@ module.exports = function(grunt) {
403412
grunt.registerTask('test-fast', "Run tests that don't need to connect to Rally", ['jasmine:fast']);
404413
grunt.registerTask('test-slow', "Run tests that need to connect to Rally", ['jasmine:slow']);
405414

406-
grunt.registerTask('test-and-deploy', 'Build and deploy app to the location in auth.json',['test-fast','ugly','install']);
415+
grunt.registerTask('test-and-deploy', 'Build and deploy app to the location in auth.json',['test-fast','ugly','install:deploy/Ugly.txt']);
416+
417+
grunt.registerTask('deploy', 'Build and deploy app to the location in auth.json',['ugly','install:deploy/Ugly.txt']);
407418

408-
grunt.registerTask('deploy', 'Build and deploy app to the location in auth.json',['ugly','install']);
419+
grunt.registerTask('deploy-pretty', 'Build and deploy app to the location in auth.json',['pretty','install:deploy/App.txt']);
409420

410-
grunt.registerTask('deploy-pretty', 'Build and deploy app to the location in auth.json',['pretty','install']);
411-
};
421+
grunt.registerTask('deploy-debugsdk', 'Build and deploy app to the location in auth.json',['template:debugsdk', 'setPostBuildInfo:deploy/App.txt', 'install:deploy/App.txt']);
422+
};

0 commit comments

Comments
 (0)