forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
amp.js
executable file
·90 lines (87 loc) · 3.3 KB
/
amp.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
#!/usr/bin/env node
/**
* Copyright 2021 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.
*/
const {
createTask,
finalizeRunner,
} = require('./build-system/task-runner/amp-task-runner');
/**
* All the AMP tasks. Keep this list alphabetized.
*
* The three params used below are:
* 1. Name of the amp task to be invoked.
* E.g. amp default
* 2. Name of the function in the source file.
* E.g. defaultTask()
* If not specified, this is assumed to be the same as the task name.
* 3. Basename of the source file in build-system/tasks/.
* E.g. build-system/tasks/default-task.js
* If not specified, this is assumed to be the same as the task name.
*/
createTask('analytics-vendor-configs', 'analyticsVendorConfigs');
createTask('ava');
createTask('babel-plugin-tests', 'babelPluginTests');
createTask('build');
createTask('bundle-size', 'bundleSize');
createTask('caches-json', 'cachesJson');
createTask('check-analytics-vendors-list', 'checkAnalyticsVendorsList');
createTask('check-asserts', 'checkAsserts');
createTask('check-build-system', 'checkBuildSystem');
createTask('check-exact-versions', 'checkExactVersions');
createTask('check-invalid-whitespaces', 'checkInvalidWhitespaces');
createTask('check-links', 'checkLinks');
createTask('check-owners', 'checkOwners');
createTask('check-renovate-config', 'checkRenovateConfig');
createTask('check-sourcemaps', 'checkSourcemaps');
createTask('check-types', 'checkTypes');
createTask('check-video-interface-list', 'checkVideoInterfaceList');
createTask('cherry-pick', 'cherryPick');
createTask('clean');
createTask('codecov-upload', 'codecovUpload');
createTask('compile-jison', 'compileJison');
createTask('css');
createTask('default', 'defaultTask', 'default-task');
createTask('dep-check', 'depCheck');
createTask('dist');
createTask('e2e');
createTask('firebase');
createTask('get-zindex', 'getZindex');
createTask('integration');
createTask('lint');
createTask('make-extension', 'makeExtension');
createTask('markdown-toc', 'markdownToc');
createTask('performance');
createTask('performance-urls', 'performanceUrls');
createTask('pr-check', 'prCheck');
createTask('prepend-global', 'prependGlobal');
createTask('presubmit', 'presubmit');
createTask('prettify');
createTask('release');
createTask('serve');
createTask('server-tests', 'serverTests');
createTask('storybook');
createTask('sweep-experiments', 'sweepExperiments');
createTask('test-report-upload', 'testReportUpload');
createTask('unit');
createTask('validate-html-fixtures', 'validateHtmlFixtures');
createTask('validator');
createTask('validator-cpp', 'validatorCpp', 'validator');
createTask('validator-webui', 'validatorWebui', 'validator');
createTask('visual-diff', 'visualDiff');
/**
* Finalize the task runner after all tasks have been created.
*/
finalizeRunner();