-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks to get separate web-app and admin-ui building during tests.
- Loading branch information
Showing
22 changed files
with
169 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
file(GLOB_RECURSE admin_ui_files | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.hbs | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.html | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.js | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.scss | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/config/*.js | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/lib/*.js | ||
) | ||
add_custom_command( | ||
OUTPUT | ||
${STAMP_DIR}/core-admin-ui-build-dir | ||
${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json | ||
${CORE_BUILD_DIR}/tmp/admin-ui-build/package.json | ||
DEPENDS | ||
${admin_ui_files} | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/bower.json | ||
${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/package.json | ||
COMMAND mkdir -p ${CORE_BUILD_DIR}/tmp/admin-ui-build | ||
COMMAND rsync -a -v --delete-after "--filter=:- ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/.gitignore" --exclude=/dist-prod --exclude=/dist-dev ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/ ${CORE_BUILD_DIR}/tmp/admin-ui-build/ | ||
COMMAND touch ${STAMP_DIR}/core-admin-ui-build-dir | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT ${STAMP_DIR}/core-admin-ui-npm-install | ||
DEPENDS ${CORE_BUILD_DIR}/tmp/admin-ui-build/package.json | ||
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} npm install && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} npm prune | ||
COMMAND touch ${STAMP_DIR}/core-admin-ui-npm-install | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT ${STAMP_DIR}/core-admin-ui-bower-install | ||
DEPENDS | ||
${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json | ||
${STAMP_DIR}/core-admin-ui-npm-install | ||
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower install && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower prune | ||
COMMAND touch ${STAMP_DIR}/core-admin-ui-bower-install | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT ${STAMP_DIR}/core-admin-ui-build | ||
DEPENDS | ||
${STAMP_DIR}/core-admin-ui-build-dir | ||
${STAMP_DIR}/core-admin-ui-npm-install | ||
${STAMP_DIR}/core-admin-ui-bower-install | ||
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && time env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=development --output-path=./dist-dev | ||
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && time env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=production --output-path=./dist-prod | ||
COMMAND touch ${STAMP_DIR}/core-admin-ui-build | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# NodeJS: For building admin-ui Ember app. | ||
ExternalProject_Add( | ||
nodejs | ||
URL https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz | ||
URL_HASH SHA256=${NODEJS_HASH} | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND rsync -a -v <SOURCE_DIR>/ ${DEV_INSTALL_PREFIX}/ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.