Bump frontend to 20180518.0

This commit is contained in:
Paulus Schoutsen 2018-05-17 20:53:31 -04:00
parent e1c9f3deea
commit 20ea9e5df7
2 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='home-assistant-frontend',
version='20180517.0',
version='20180518.0',
description='The Home Assistant frontend',
url='https://github.com/home-assistant/home-assistant-polymer',
author='The Home Assistant Authors',

View File

@ -33,27 +33,27 @@ function createConfig(isProdBuild, latestBuild) {
],
};
const copyPluginOpts = [
{ from: 'gulp/service-worker.js.tmpl', to: 'service_worker.js' },
];
const plugins = [
new webpack.DefinePlugin({
__DEV__: JSON.stringify(!isProdBuild),
__BUILD__: JSON.stringify(latestBuild ? 'latest' : 'es5'),
__VERSION__: JSON.stringify(VERSION),
})
}),
new CopyWebpackPlugin(copyPluginOpts),
];
if (latestBuild) {
plugins.push(CopyWebpackPlugin([
{ from: 'build-translations/output', to: `translations` },
{ from: 'node_modules/@polymer/font-roboto-local/fonts', to: 'fonts' },
'node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js',
{ from: 'node_modules/leaflet/dist/leaflet.css', to: `images/leaflet/` },
{ from: 'node_modules/leaflet/dist/images', to: `images/leaflet/` },
{ from: 'gulp/service-worker.js.tmpl', to: 'service_worker.js' },
]));
copyPluginOpts.push({ from: 'build-translations/output', to: `translations` });
copyPluginOpts.push({ from: 'node_modules/@polymer/font-roboto-local/fonts', to: 'fonts' });
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js')
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/leaflet.css', to: `images/leaflet/` });
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/images', to: `images/leaflet/` });
} else {
plugins.push(CopyWebpackPlugin([
'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js',
]));
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js');
babelOptions.presets = [
['es2015', { modules: false }]
];