Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 2315b9b

Browse files
committed
chore(): update serve watch patterns to exclude map files
1 parent 4cf1c90 commit 2315b9b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/serve.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ Serve.loadSettings = function loadSettings(argv, project) {
192192

193193
options.browser = options.browser || options.defaultBrowser;
194194

195-
options.watchPatterns = project.get('watchPatterns') || ['www/**/*', '!www/lib/**/*'];
195+
options.watchPatterns = project.get('watchPatterns') || ['www/**/*', '!www/lib/**/*', '!www/**/*.map'];
196+
log.info("Watch patterns", options.watchPatterns);
196197
options.printConsoleLogs = argv.consolelogs || argv['console-logs'] || argv.c;
197198
options.printServerLogs = argv.serverlogs || argv['server-logs'] || argv.s;
198199
options.isAddressCmd = argv._[0].toLowerCase() === 'address';

lib/setup.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Setup.modifyIndexFile = function modifyIndexFile(appDirectory) {
6868
if(!hasWatch) gulpStartupTasks.push('watch');
6969
project.set('gulpStartupTasks', gulpStartupTasks);
7070
if(!project.get('watchPatterns')){
71-
project.set('watchPatterns', ['www/**/*', '!www/lib/**/*'])
71+
project.set('watchPatterns', ['www/**/*', '!www/lib/**/*', '!www/**/*.map'])
7272
}
7373
project.save();
7474

@@ -92,7 +92,7 @@ Setup.sassSetup = function sassSetup(appDirectory) {
9292
var q = Q.defer();
9393

9494
if (!Utils.gulpInstalledGlobally()) {
95-
var gulpMessage = ['You have specified Ionic CLI to set up sass.'.red, '\n', 'However, you do not have Gulp installed globally. Please run '.red, '`npm install -g gulp`'.green].join('');
95+
var gulpMessage = ['You have specified Ionic CLI to set up sass.'.red, '\n', 'However, you do not have Gulp installed globally. Please run '.red, '`npm install -g gulp`'.green].join('');
9696
logging.logger.info(gulpMessage);
9797
return Q(gulpMessage);
9898
}
@@ -227,7 +227,7 @@ Setup.setupFacebook = function setupFacebook(appDirectory) {
227227
var installMessage = ['The Facebook plugin will be setup.\nYou will now be prompted for your App ID and Name.\nGet these settings from:', facebookAppUrl].join(' ');
228228
logging.logger.info(installMessage.blue.bold);
229229
//This wont work by downloading a release.
230-
//We will need to git clone it some how-
230+
//We will need to git clone it some how-
231231
//http://stackoverflow.com/questions/24626729/facebooksdk-facebooksdk-h-file-not-found
232232
var downloadUrl = 'https://github.com/Wizcorp/phonegap-facebook-plugin/archive/master.zip';
233233
var zipOutPath = path.join(appDirectory, 'base');

spec/serve.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var defaultServeOptions = {
2626
proxies: [],
2727
runLivereload: true,
2828
useProxy: false,
29-
watchPatterns: ['www/**/*', '!www/lib/**/*'],
29+
watchPatterns: ['www/**/*', '!www/lib/**/*', '!www/**/*.map'],
3030
watchSass: false
3131
};
3232

0 commit comments

Comments
 (0)