Skip to content

Instantly share code, notes, and snippets.

@richardprice-1990
Created April 30, 2018 10:49
Show Gist options
  • Save richardprice-1990/1ca7fa945e32a1847e7bd1c1e70c0ae0 to your computer and use it in GitHub Desktop.
Save richardprice-1990/1ca7fa945e32a1847e7bd1c1e70c0ae0 to your computer and use it in GitHub Desktop.
version: 0.2
phases:
install:
commands:
- apt-get update -y
- apt-get install npm -y
- apt-get install node -y
- npm install gulp -g
- npm install bower -g
pre_build:
commands:
- gulp -v
- which gulp
- echo $CODEBUILD_SRC_DIR
# - git submodule init
- rm -frv *
- rm -rf .git
- rm -rf .ebextensions
- rm .gitignore
- rm .gitmodules
# - rm -rf .*
- ls -la
- git clone --depth 1 --recursive https://${GIT_USERNAME}:${GIT_PASSWORD}@${GIT_REPO} .
build:
commands:
- cd code
- npm link gulp
- npm link bower
- npm install
- bower install --allow-root
- gulp
post_build:
commands:
- echo Entered the post build phase...
- rm -rf node_modules
# - cd src
# - zip -r archive.zip *
# - cd ../target
# - ls -la
artifacts:
files:
- '**/*'
# base-directory: 'target'
# discard-paths: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment