mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 07:46:37 +00:00
Bump frontend to 20180518.0
This commit is contained in:
parent
e1c9f3deea
commit
20ea9e5df7
2
setup.py
2
setup.py
@ -1,7 +1,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(name='home-assistant-frontend',
|
setup(name='home-assistant-frontend',
|
||||||
version='20180517.0',
|
version='20180518.0',
|
||||||
description='The Home Assistant frontend',
|
description='The Home Assistant frontend',
|
||||||
url='https://github.com/home-assistant/home-assistant-polymer',
|
url='https://github.com/home-assistant/home-assistant-polymer',
|
||||||
author='The Home Assistant Authors',
|
author='The Home Assistant Authors',
|
||||||
|
@ -33,27 +33,27 @@ function createConfig(isProdBuild, latestBuild) {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const copyPluginOpts = [
|
||||||
|
{ from: 'gulp/service-worker.js.tmpl', to: 'service_worker.js' },
|
||||||
|
];
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
__DEV__: JSON.stringify(!isProdBuild),
|
__DEV__: JSON.stringify(!isProdBuild),
|
||||||
__BUILD__: JSON.stringify(latestBuild ? 'latest' : 'es5'),
|
__BUILD__: JSON.stringify(latestBuild ? 'latest' : 'es5'),
|
||||||
__VERSION__: JSON.stringify(VERSION),
|
__VERSION__: JSON.stringify(VERSION),
|
||||||
})
|
}),
|
||||||
|
new CopyWebpackPlugin(copyPluginOpts),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (latestBuild) {
|
if (latestBuild) {
|
||||||
plugins.push(CopyWebpackPlugin([
|
copyPluginOpts.push({ from: 'build-translations/output', to: `translations` });
|
||||||
{ from: 'build-translations/output', to: `translations` },
|
copyPluginOpts.push({ from: 'node_modules/@polymer/font-roboto-local/fonts', to: 'fonts' });
|
||||||
{ from: 'node_modules/@polymer/font-roboto-local/fonts', to: 'fonts' },
|
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js')
|
||||||
'node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js',
|
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/leaflet.css', to: `images/leaflet/` });
|
||||||
{ from: 'node_modules/leaflet/dist/leaflet.css', to: `images/leaflet/` },
|
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/images', to: `images/leaflet/` });
|
||||||
{ from: 'node_modules/leaflet/dist/images', to: `images/leaflet/` },
|
|
||||||
{ from: 'gulp/service-worker.js.tmpl', to: 'service_worker.js' },
|
|
||||||
]));
|
|
||||||
} else {
|
} else {
|
||||||
plugins.push(CopyWebpackPlugin([
|
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js');
|
||||||
'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js',
|
|
||||||
]));
|
|
||||||
babelOptions.presets = [
|
babelOptions.presets = [
|
||||||
['es2015', { modules: false }]
|
['es2015', { modules: false }]
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user