Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/closure_compiler/closure_args.gni

Issue 2179033002: Strip comments and whitespace from javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix naming of GN variables, and rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP version: third_party/closure_compiler/closure_args.gypi 5 # GYP version: third_party/closure_compiler/closure_args.gypi
6 closure_args = [ 6
7 "compilation_level=SIMPLE_OPTIMIZATIONS", 7 # Args for all uses of the closure compiler
8 common_closure_args = [
8 9
9 "extra_annotation_name=attribute", 10 "extra_annotation_name=attribute",
10 "extra_annotation_name=demo", 11 "extra_annotation_name=demo",
11 "extra_annotation_name=element", 12 "extra_annotation_name=element",
12 "extra_annotation_name=group", 13 "extra_annotation_name=group",
13 "extra_annotation_name=hero", 14 "extra_annotation_name=hero",
14 "extra_annotation_name=homepage", 15 "extra_annotation_name=homepage",
15 "extra_annotation_name=status", 16 "extra_annotation_name=status",
16 "extra_annotation_name=submodule", 17 "extra_annotation_name=submodule",
17 18
19 "language_in=ECMASCRIPT6_STRICT",
20 "language_out=ECMASCRIPT5_STRICT",
21
22 "polymer_pass",
23
24 "source_map_format=V3",
25 ]
26
27 # Additional closure args for performing full checks.
28 checking_closure_args = [
29 "compilation_level=SIMPLE_OPTIMIZATIONS",
30
18 "jscomp_error=accessControls", 31 "jscomp_error=accessControls",
19 "jscomp_error=ambiguousFunctionDecl", 32 "jscomp_error=ambiguousFunctionDecl",
20 "jscomp_error=checkTypes", 33 "jscomp_error=checkTypes",
21 "jscomp_error=checkVars", 34 "jscomp_error=checkVars",
22 "jscomp_error=constantProperty", 35 "jscomp_error=constantProperty",
23 "jscomp_error=deprecated", 36 "jscomp_error=deprecated",
24 "jscomp_error=externsValidation", 37 "jscomp_error=externsValidation",
25 "jscomp_error=globalThis", 38 "jscomp_error=globalThis",
26 "jscomp_error=invalidCasts", 39 "jscomp_error=invalidCasts",
27 "jscomp_error=missingProperties", 40 "jscomp_error=missingProperties",
28 "jscomp_error=missingReturn", 41 "jscomp_error=missingReturn",
29 "jscomp_error=nonStandardJsDocs", 42 "jscomp_error=nonStandardJsDocs",
30 "jscomp_error=suspiciousCode", 43 "jscomp_error=suspiciousCode",
31 "jscomp_error=undefinedNames", 44 "jscomp_error=undefinedNames",
32 "jscomp_error=undefinedVars", 45 "jscomp_error=undefinedVars",
33 "jscomp_error=unknownDefines", 46 "jscomp_error=unknownDefines",
34 "jscomp_error=uselessCode", 47 "jscomp_error=uselessCode",
35 "jscomp_error=visibility", 48 "jscomp_error=visibility",
49 ]
36 50
37 "language_in=ECMASCRIPT6_STRICT", 51 # For compatibility with old uses.
38 "language_out=ECMASCRIPT5_STRICT", 52 closure_args = common_closure_args + checking_closure_args
39
40 "polymer_pass",
41
42 "source_map_format=V3",
43 ]
44 53
45 default_disabled_closure_args = [ 54 default_disabled_closure_args = [
46 "jscomp_off=duplicate", 55 "jscomp_off=duplicate",
47 "jscomp_off=misplacedTypeAnnotation", 56 "jscomp_off=misplacedTypeAnnotation",
48 ] 57 ]
OLDNEW
« no previous file with comments | « no previous file | third_party/closure_compiler/compile2.py » ('j') | third_party/closure_compiler/js_minify.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698