Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 37a6b90

Browse files
Matt PileggiMatt Pileggi
authored andcommitted
clean up default and rebase with latest
1 parent 1b23728 commit 37a6b90

File tree

4 files changed

+12
-44
lines changed

4 files changed

+12
-44
lines changed

app/templates/gulpfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ gulp.task('optimize', ['inject', 'test'], function() {
344344

345345
// Rename the recorded file names in the steam, and in the html to append rev numbers
346346
.pipe($.revReplace())
347-
347+
348348
// copy result to dist/, and print some logging..
349349
.pipe(gulp.dest(config.build))
350350
.pipe($.if(args.verbose, $.print()));
@@ -451,6 +451,12 @@ gulp.task('serve-dev', ['build'], function() {
451451
return serve('dev' /*env*/);
452452
});
453453

454+
gulp.task('develop', ['inject','styles','less-watcher'], function() {
455+
//skip the build and the browser sync
456+
var nodeOptions = getNodeOptions('local');
457+
$.nodemon(nodeOptions);
458+
});
459+
454460
/**
455461
* serve the prod environment
456462
* --debug-brk or --debug
File renamed without changes.

app/themes/default/ui/index.html

Lines changed: 0 additions & 41 deletions
This file was deleted.

slushfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ gulp.task('init', ['checkForUpdates'], function (done) {
323323
'you will be asked to enter it at appropriate commands.\n? MarkLogic Admin Password?', default: ''},
324324
{type: 'input', name: 'nodePort', message: 'Node app port?', default: 9070},
325325
{type: 'input', name: 'appPort', message: 'MarkLogic App/Rest port?', default: 8040},
326-
{type: 'input', name: 'xccPort', message: 'XCC port?', default:8041, when: function(answers){return answers.mlVersion < 8;},
326+
{type: 'input', name: 'xccPort', message: 'XCC port?', default:8041, when: function(answers){return answers.mlVersion < 8;} },
327327
{type:'list', name: 'template', message: 'Select Template', choices: [
328328
{ name: 'default', value: 'default' },
329329
{ name: '3-columns', value: '3column' },
@@ -363,7 +363,10 @@ gulp.task('init', ['checkForUpdates'], function (done) {
363363
.then(runRoxy)
364364
.then(function() {
365365
// Copy over the Angular files
366-
var files = [__dirname + '/app/templates/**', __dirname + '/app/themes/' + (answers.theme || answers.template) + '/**'];
366+
var files = [__dirname + '/app/templates/**'];
367+
if (answers.theme !== 'default') { // overlay the theme if not the default theme chosen
368+
files.push( __dirname + '/app/themes/' + (answers.theme || answers.template) + '/**');
369+
}
367370

368371
process.chdir('./' + answers.nameDashed);
369372

0 commit comments

Comments
 (0)