forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
195 lines (164 loc) · 5.65 KB
/
app.yaml
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
application: polymer-project
version: 2014-12-11
runtime: python27
api_version: 1
threadsafe: yes
#default_expiration: "0s"
libraries:
- name: PIL
version: latest
#inbound_services:
#- warmup
handlers:
# Top-level URLs ---------------------------------------------------------------
- url: /$
static_files: _site/index.html
upload: _site/index\.html
secure: always
- url: /build/$
static_files: _site/build/index.html
upload: _site/build/index\.html
- url: /build/(.*)
script: build.application
# Short URLs -------------------------------------------------------------------
# backward compatibility
- url: /platform(\.min)?\.js
static_files: components/platform/platform.js
upload: components/platform/platform\.js
http_headers:
Access-Control-Allow-Origin: "*"
- url: /platform(\.min)?\.js.map
static_files: components/platform/platform.js.map
upload: components/platform/platform\.js.\map
http_headers:
Access-Control-Allow-Origin: "*"
# For webcomponents.js, serve both minified and non-minifed versions
# Workaround for https://github.com/Polymer/docs/issues/823 -- always serve minified
- url: /webcomponents(\.min|)?\.js
static_files: components/webcomponentsjs/webcomponents.min.js
upload: components/webcomponentsjs/webcomponents(\.min|)?.js
http_headers:
Access-Control-Allow-Origin: "*"
- url: /webcomponents(\.min|)\.js.map
static_files: components/webcomponentsjs/webcomponents\1.js.map
upload: components/webcomponentsjs/webcomponents(\.min)?\.js.\map
http_headers:
Access-Control-Allow-Origin: "*"
- url: /polymer(\.min)?\.html
static_files: components/polymer/polymer.html
upload: components/polymer/polymer\.html
http_headers:
Access-Control-Allow-Origin: "*"
- url: /polymer(\.min)?\.js
static_files: components/polymer/polymer.min.js
upload: components/polymer/polymer\.js
http_headers:
Access-Control-Allow-Origin: "*"
- url: /polymer(\.min)?\.js\.map
static_files: components/polymer/polymer.js.map
upload: components/polymer/polymer\.js\.map
http_headers:
Access-Control-Allow-Origin: "*"
# /tools -----------------------------------------------------------------------
- url: /tools/designer/$
static_files: polymer-all/projects/designer/index.html
upload: polymer-all/projects/designer/index.html
secure: always
- url: /tools/designer/components/webcomponentsjs/webcomponents.js
static_files: components/webcomponentsjs/webcomponents.min.js
upload: components/webcomponentsjs/webcomponents.min.js
- url: /tools/designer/components/polymer/polymer.html
static_files: components/polymer/polymer.html
upload: /tools/designer/components/polymer/polymer.html
- url: /tools/designer/components/polymer/polymer.js
static_files: components/polymer/polymer.min.js
upload: /tools/designer/components/polymer/polymer.js
- url: /tools/designer/(.*)
static_files: polymer-all/projects/designer/\1
upload: polymer-all/projects/designer/(.*)
# -------------------
# Topeka and other apps --------------------------------------------------------
# /apps/topeka/...
- url: /apps/(.+)/components/(.*)
static_files: components/\2
upload: components/(.+)
# e.g. /apps/topeka/
- url: /apps/(.+)/$
static_files: polymer-all/projects/\1/build.html
upload: polymer-all\/projects\/(.+)\/build.html
secure: always
- url: /apps/(.+)/(.*)
static_files: polymer-all/projects/\1/\2
upload: polymer-all\/projects\/(core-sampler|paper-sampler|topeka)\/(.*)
secure: always
# -------------------
# tutorial ---------------------------------------------------------------------
- url: /samples/tutorial/components/
static_dir: components
# -------------------
# Map raw paths with trailing "/" to an index.html file.
- url: /(.*)/$
static_files: _site/\1/index.html
upload: _site/(.*)/index.html
secure: always
- url: /polymer-all
static_dir: polymer-all
http_headers:
Access-Control-Allow-Origin: "*"
- url: /samples
static_dir: samples
http_headers:
Access-Control-Allow-Origin: "*"
# New mappings for Bower
- url: /components/(marked|highlightjs)/(.*)
static_files: js/bower_components/\1/\2
upload: js/bower_components/(marked|highlightjs)/(.*)
- url: /components
static_dir: components
http_headers:
Access-Control-Allow-Origin: "*"
# All other URLs map directly to their path in _site/.
- url: /
static_dir: _site
http_headers:
Access-Control-Allow-Origin: "*"
secure: always
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?.*\.bak$
- ^(.*/)?node_modules/.*
- ^(.*/)?third_party/closure/.*
- ^scripts/.*
- ^.*.md|markdown
- ^.*.LICENSE
# few extras to reduce number of files uploaded.
- ^(.*/)?Makefile$
- ^(.*/)?.*\.sublime-project
- ^(.*/)?.*\.sublime-workspace
- ^(.*/)?platform-dev/workbench/.*
- ^(.*/)?(AUTHORS|LICENSE|PATENTS|COPYING|CONTRIBUTING|README)$
- ^(.*/)?polymer-all/labs/dfreedm/core-icon-study/.*
- ^(.*/)?polymer-all/labs/.* # don't upload all of labs
- ^(.*/)?polymer-all/tools/doc/.*
- ^(.*/)?polymer-all/tools/bind/.*
- ^(.*/)?components/tools/.* # tool is already in /polymer-all
- ^(.*/)?components/firebase-simple-login/firebase-simple-login-(java|objc)/.*
- ^(.*/)?components/firebase-simple-login/lib/.*
- ^(.*/)?components/code-mirror/codemirror-4.0/bin/.*
- ^(.*/)?components/web-component-tester/.*
- ^(.*/)?components/web-animations-(js|next)/test/.*
- ^(.*/)?components/extern-generator/.*
- ^(.*/)?components/polymer-expressions/third_party/.*
- ^(.*/)?codereview.setting
- ^(.*/)?doc_themes/.*
- ^(.*/)?bower_components/.*/manifest.webapp
- ^(.*/)?bower_components/font-awesome/less/.*
- ^(.*/)?bower_components/.*/test/.*