-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
config.js
115 lines (111 loc) · 3.3 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var commonTestPaths = [
'test/_init_tests.js',
'test/fixtures/*.html',
{
pattern: 'test/fixtures/served/*.html',
included: false,
nocache: false,
watched: true,
},
{
pattern: 'dist/**/*.js',
included: false,
nocache: false,
watched: true,
},
{
pattern: 'dist.tools/**/*.js',
included: false,
nocache: false,
watched: true,
},
{
pattern: 'examples/**/*',
included: false,
nocache: false,
watched: true,
},
{
pattern: 'dist.3p/**/*',
included: false,
nocache: false,
watched: true,
},
];
var testPaths = commonTestPaths.concat([
'test/**/*.js',
'ads/**/test/test-*.js',
'extensions/**/test/**/*.js',
]);
var integrationTestPaths = commonTestPaths.concat([
'test/integration/**/*.js',
'test/functional/test-error.js',
'extensions/**/test/integration/**/*.js',
]);
/** @const */
module.exports = {
commonTestPaths: commonTestPaths,
testPaths: testPaths,
integrationTestPaths: integrationTestPaths,
lintGlobs: [
'**/*.js',
'!**/*.extern.js',
'!{node_modules,build,dist,dist.3p,dist.tools,' +
'third_party,build-system}/**/*.*',
'!{testing,examples}/**/*.*',
// TODO: temporary, remove when validator is up to date
'!validator/**/*.*',
'!eslint-rules/**/*.*',
'!gulpfile.js',
'!karma.conf.js',
'!**/local-amp-chrome-extension/background.js',
'!extensions/amp-access/0.1/access-expr-impl.js',
'!extensions/amp-animation/0.1/css-expr-impl.js',
'!extensions/amp-bind/0.1/bind-expr-impl.js',
],
jsonGlobs: [
'**/*.json',
'!{node_modules,build,dist,dist.3p,dist.tools,' +
'third_party,build-system}/**/*.*',
],
presubmitGlobs: [
'**/*.{css,js,go}',
// This does match dist.3p/current, so we run presubmit checks on the
// built 3p binary. This is done, so we make sure our special 3p checks
// run against the entire transitive closure of deps.
'!{node_modules,build,dist,dist.tools,' +
'dist.3p/[0-9]*,dist.3p/current-min}/**/*.*',
'!dist.3p/current/**/ampcontext-lib.js',
'!dist.3p/current/**/iframe-transport-client.js',
'!validator/dist/**/*.*',
'!validator/node_modules/**/*.*',
'!validator/nodejs/node_modules/**/*.*',
'!build-system/tasks/presubmit-checks.js',
'!build/polyfills.js',
'!build/polyfills/*.js',
'!gulpfile.js',
'!third_party/**/*.*',
'!validator/chromeextension/*.*',
// Files in this testdata dir are machine-generated and are not part
// of the AMP runtime, so shouldn't be checked.
'!extensions/amp-a4a/*/test/testdata/*.js',
'!examples/*.js',
],
changelogIgnoreFileTypes: /\.md|\.json|\.yaml|LICENSE|CONTRIBUTORS$/
};