aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:42:37 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:42:37 +0200
commit7be6d7fa719c7ede76242bddb1b894c1a7de3ec1 (patch)
tree2e4779b883578e50e8993d34d27d775b4eb30573
parent4d29be205e65c2eb62c729d4beb860870a2662e5 (diff)
Fix: wrong path to test if html5 app is generated.
Change-Id: I36825a533db7816229c249b1af1e199231fd6fbc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--templates/html5/app/CMakeLists.txt4
-rw-r--r--templates/hybrid-html5/app/CMakeLists.txt4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/html5/app/CMakeLists.txt b/templates/html5/app/CMakeLists.txt
index ae5f9aa..542fa73 100644
--- a/templates/html5/app/CMakeLists.txt
+++ b/templates/html5/app/CMakeLists.txt
@@ -25,8 +25,8 @@ PROJECT_TARGET_ADD(html5-app)
add_custom_command(OUTPUT dist.prod
DEPENDS ${TARGET_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- COMMAND [ -d dist.prod ] && npm install
- COMMAND [ -d dist.prod ] && gulp widget-config-prod
+ COMMAND [ -d app/dist.prod ] && npm install
+ COMMAND [ -d app/dist.prod ] && gulp widget-config-prod
COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod)
diff --git a/templates/hybrid-html5/app/CMakeLists.txt b/templates/hybrid-html5/app/CMakeLists.txt
index f5ea7f7..eb70a1b 100644
--- a/templates/hybrid-html5/app/CMakeLists.txt
+++ b/templates/hybrid-html5/app/CMakeLists.txt
@@ -27,8 +27,8 @@ PROJECT_TARGET_ADD(hybrid-html5-example)
add_custom_command(OUTPUT dist.prod
DEPENDS ${TARGET_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- COMMAND [ -d dist.prod ] && npm install
- COMMAND [ -d dist.prod ] && gulp widget-config-prod
+ COMMAND [ -d app/dist.prod ] && npm install
+ COMMAND [ -d app/dist.prod ] && gulp widget-config-prod
COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod)