From 279e74603ead9976152f029080b76a48319ecd03 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 26 Jun 2019 21:19:42 +0300 Subject: [PATCH] refactor: move negative glob patterns of files to format close to their positive counterparts (#31295) This makes it easier to identify which files in directory will be included and which will be ignored. PR Close #31295 --- tools/gulp-tasks/format.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/gulp-tasks/format.js b/tools/gulp-tasks/format.js index c8bbe342f8..20b0ce77d1 100644 --- a/tools/gulp-tasks/format.js +++ b/tools/gulp-tasks/format.js @@ -11,22 +11,22 @@ const {I18N_FOLDER, I18N_DATA_FOLDER} = require('./cldr/extract'); // clang-format entry points const srcsToFmt = [ 'packages/**/*.{js,ts}', + `!${I18N_DATA_FOLDER}/**/*.{js,ts}`, + `!${I18N_FOLDER}/available_locales.ts`, + `!${I18N_FOLDER}/currencies.ts`, + `!${I18N_FOLDER}/locale_en.ts`, 'modules/benchmarks/**/*.{js,ts}', 'modules/e2e_util/**/*.{js,ts}', 'modules/playground/**/*.{js,ts}', 'tools/**/*.{js,ts}', + '!tools/gulp-tasks/cldr/extract.js', '!tools/public_api_guard/**/*.d.ts', + '!tools/ts-api-guardian/test/fixtures/**', './*.{js,ts}', '!**/node_modules/**', '!**/dist/**', '!**/built/**', '!shims_for_IE.js', - `!${I18N_DATA_FOLDER}/**/*.{js,ts}`, - `!${I18N_FOLDER}/available_locales.ts`, - `!${I18N_FOLDER}/currencies.ts`, - `!${I18N_FOLDER}/locale_en.ts`, - '!tools/gulp-tasks/cldr/extract.js', - '!tools/ts-api-guardian/test/fixtures/**', ]; /**