Created
April 30, 2018 10:49
-
-
Save richardprice-1990/1ca7fa945e32a1847e7bd1c1e70c0ae0 to your computer and use it in GitHub Desktop.
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
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