Replace Grunt with Gulp
(fuel-main part) Implements blueprint move-to-gulp Change-Id: If15610a6a4043b3bf91aadb4e99b929abc4e4ffb
This commit is contained in:
parent
cd9dd3757b
commit
bbc0c1230b
|
@ -25,7 +25,7 @@ $(BUILD_DIR)/packages/sources/$1/$2: $(call find-files,$3)
|
|||
mkdir -p $(BUILD_DIR)/packages/sources/$1
|
||||
ifeq ($1,nailgun)
|
||||
mkdir -p $(BUILD_DIR)/npm-cache
|
||||
cd $3 && npm --cache $(BUILD_DIR)/npm-cache install && grunt build --static-dir=compressed_static
|
||||
cd $3 && npm --cache $(BUILD_DIR)/npm-cache install && ./node_modules/.bin/gulp build --static-dir=compressed_static
|
||||
rm -rf $3/static
|
||||
mv $3/compressed_static $3/static
|
||||
endif
|
||||
|
|
|
@ -115,7 +115,7 @@ sudo apt-get -y install build-essential make git $GEMPKG debootstrap createrepo
|
|||
sudo gem install bundler -v 1.2.1
|
||||
sudo gem install builder
|
||||
sudo pip install xmlbuilder jinja2 pbr
|
||||
sudo npm install -g grunt-cli
|
||||
sudo npm install -g gulp
|
||||
sudo chown -R `whoami`.`id -gn` `npm config get cache`
|
||||
|
||||
# Add account to sudoers
|
||||
|
|
|
@ -25,7 +25,7 @@ npm install
|
|||
./manage.py loaddata nailgun/fixtures/sample_environment.json
|
||||
|
||||
# Compressing javascript
|
||||
grunt build --static-dir=static_compressed
|
||||
./node_modules/.bin/gulp build --static-dir=static_compressed
|
||||
|
||||
# Replace static path with the one pointing to compressed static content folder
|
||||
STATIC_DIR=$WORKSPACE/build/repos/nailgun/nailgun/static_compressed
|
||||
|
|
Loading…
Reference in New Issue