Tweak build system
This commit is contained in:
parent
f539e39de6
commit
6691302995
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ node_modules/
|
||||
package-lock.json
|
||||
package.json
|
||||
webpack.config.js
|
||||
**/__pycache__/
|
||||
|
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Thomas Lovén
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
6
Makefile
6
Makefile
@ -8,12 +8,8 @@ setup := package.json package-lock.json webpack.config.js
|
||||
|
||||
JS := $(wildcard js/*.js)
|
||||
PY := $(wildcard custom_components/browser_mod/*)
|
||||
OUTPUT := ../../config/custom_components/browser_mod/__init__.py
|
||||
|
||||
build: $(setup) custom_components/browser_mod/browser_mod.js $(OUTPUT)
|
||||
|
||||
$(OUTPUT): $(PY)
|
||||
cp custom_components/browser_mod/* ../../config/custom_components/browser_mod/.
|
||||
build: $(setup) custom_components/browser_mod/browser_mod.js
|
||||
|
||||
custom_components/browser_mod/browser_mod.js: $(JS)
|
||||
$(DOCKER_CMD) npm run build
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user