Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gae): convert to python 3.7 runtime, resolve preload dups #64

Merged
merged 1 commit into from Sep 19, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

feat(gae): convert to python 3.7 runtime, resolve preload dups

  • Loading branch information
justinribeiro committed Sep 19, 2019
commit 5c64dedd03fc7dcd8f6caa4c3121e23faf73a20e
@@ -1,6 +1,4 @@
app/push_manifest.json
app/data/
app/bower_components/
app/build/
app/node_modules/
ship/
@@ -8,6 +8,7 @@
<meta name="theme-color" content="#f1f1f1">

<link rel="icon" href="/images/manifest/me-2018-150.jpg">
<link rel="apple-touch-icon" href="/images/manifest/me-2018-192.png">
<link rel="manifest" href="/manifest.json">
<base href="/">

@@ -19,6 +20,8 @@

<link rel="preconnect" href="https://storage.googleapis.com/" crossorigin>
<link rel="preconnect" href="https://www.google-analytics.com/" crossorigin>
<link rel="preconnect" href="https://firebaseinstallations.googleapis.com" crossorigin>
{% raw %}
<style>
html {
--page-background: #ffffff;
@@ -247,6 +250,7 @@
}
}
</style>
{% endraw %}

<link href="/data/chronicle/index.xml" rel="alternate" type="application/rss+xml" title="Justin Ribeiro" />
<link href="/data/chronicle/index.xml" rel="feed" type="application/rss+xml" title="Justin Ribeiro" />
@@ -301,7 +305,6 @@ <h2>Meta Things</h2>
</footer>
</blog-pwa>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"Person","name":"Justin Ribeiro","url":"https://justinribeiro.com/","email":"justin@justinribeiro.com","image":"https://storage.googleapis.com/jdr-public-imgs/me/justinribeiro-headshot-2018-512.jpg","sameAs":["https://twitter.com/justinribeiro","https://www.linkedin.com/in/justinribeiro","https://plus.google.com/+justinribeiro","https://github.com/justinribeiro","https://facebook.com/justinribeiro","https://ribeiro.social/@justin","https://hub.docker.com/r/justinribeiro/","https://developers.google.com/experts/people/justin-ribeiro"]}</script>
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="./src/app.js"></script>
<script>
(function(sa,fbc){function load(f,c){var a=document.createElement('script');
@@ -0,0 +1,18 @@
{
"/src/blog-pwa.js": {
"weight": 1,
"type": "script"
},
"/src/blog-static.js": {
"weight": 1,
"type": "script"
},
"/src/blog-entry.js": {
"weight": 1,
"type": "script"
},
"/src/lazy-resources.js": {
"weight": 1,
"type": "script"
}
}
@@ -10,21 +10,21 @@ export default {
'src/blog-chronicle.js',
'src/lazy-resources.js',
'src/3d-utils.js',
'src/code-block.js'
'src/code-block.js',
],
output: {
dir: 'build/default/src',
format: 'es',
sourcemap: true
sourcemap: true,
},
plugins: [
resolve(),
minify({
mangle: {
exclude: { "__import": true }
exclude: {'__import': true},
},
comments: false,
plugins: ['transform-remove-console']
})
]
};
plugins: ['transform-remove-console'],
}),
],
};
@@ -1,26 +1,33 @@
// Very few things actually require this now
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) {
const wcScript = document.createElement('script');
wcScript.src = '/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js';
document.head.appendChild(wcScript);
}

// Only load IO if we don't have it
if (!('IntersectionObserver' in window) &&
!('IntersectionObserverEntry' in window)) {
const ioScript = document.createElement('script');
ioScript.async = true;
ioScript.src = '/node_modules/intersection-observer/intersection-observer.js';
document.head.appendChild(ioScript);
const ioScript = document.createElement('script');
ioScript.async = true;
ioScript.src = '/node_modules/intersection-observer/intersection-observer.js';
document.head.appendChild(ioScript);
}
// Only load the dynamic import polyfill if we need it
function __loadDynamicImportCheck(src) {
window.polyfillDynamicImport = false;
try {
new Function('import("./' + src + '")')();
} catch (e) {
var s = document.createElement('script');
let s = document.createElement('script');
s.src = '/src/polyfill-dynamicimport.js';
s.dataset.main = src;
document.head.appendChild(s);
window.polyfillDynamicImport = true;

s.onload = () => {
__import(src);
}
};
}
}
__loadDynamicImportCheck('blog-pwa.js');
@@ -33,4 +40,4 @@ function __import(src) {
} else {
return new Function('return import("./' + src + '")')();
}
}
}
@@ -1,33 +1,22 @@
runtime: python27
api_version: 1
threadsafe: yes

libraries:
- name: webapp2
version: "2.5.2"
runtime: python37
entrypoint: gunicorn -b :$PORT main:app

handlers:
- url: /data/(.*)
static_files: dist/data/\1
upload: dist/data/(.*)
secure: always
application_readable: true

- url: /helpers
static_dir: dist/helpers
secure: always
application_readable: true

- url: /images/(.*)
static_files: dist/images/\1
upload: dist/images/(.*)
secure: always
expiration: "180d"

- url: /bower_components
static_dir: dist/bower_components
secure: always

- url: /node_modules
static_dir: dist/node_modules
secure: always
@@ -66,21 +55,5 @@ handlers:
secure: always

- url: .*
script: main.app
secure: always

skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?bower\.json
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?.*\.bak$
- ^(.*/)?hugo/.*
- ^(.*/)?tests/.*
- ^.*.md|markdown
script: auto
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.