0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-24 01:57:56 +01:00

Altered Build/Compile to run from shared folder

so grunt can access git info
This commit is contained in:
peteruithoven 2016-05-11 13:28:15 +02:00
parent d2bc62b092
commit 225a173da7

View File

@ -44,15 +44,16 @@ define Build/Prepare
endef endef
define Build/Compile define Build/Compile
# We're cd'in into the build dir manually so it # We're running grunt in the shared folder, so
# runs these in the build dir, instead of the # grunt can access git info
# shared customfeeds folder npm install
cd $(PKG_BUILD_DIR) && npm install
ifeq ($(CONFIG_DOODLE3D_CLIENT_MINIFY_JS),y) ifeq ($(CONFIG_DOODLE3D_CLIENT_MINIFY_JS),y)
cd $(PKG_BUILD_DIR) && grunt less autoprefixer cssmin concat uglify grunt less autoprefixer cssmin concat uglify
else else
cd $(PKG_BUILD_DIR) && grunt less autoprefixer cssmin concat grunt less autoprefixer cssmin concat
endif endif
# Copy compiled files to build dir
$(CP) www $(PKG_BUILD_DIR)/
endef endef
define Package/doodle3d-client/install define Package/doodle3d-client/install