amazon web services - How can I use gulp on CodeDeploy buildspec file? -


here's build spec file:

# 0.1 : shell each command  # 0.2 : shell keeps settings # https://stackoverflow.com/a/45115791/28004 version: 0.2   phases:   install:     commands:       - echo install started on `date`       - cd wp-content/themes/sitecampaign-sage       - echo `pwd`       - npm install bower -g       - npm install grunt -g       - npm install gulp -g       - echo install completed on `date`   pre_build:     commands:       - echo pre_build started on `date`       - echo `pwd`       - bower -v       - node -v       - npm -v       - gulp -v       - gulp default       - echo pre_build completed on `date`   build:     commands:       - echo build started on `date`       - echo `pwd` #      - gulp       - echo build completed on `date`   post_build:     commands:       - echo post_build started on `date`       - echo `pwd`       - rm -rf node_modules       - rm -rf bower_components       - echo post_build completed on `date` artifacts:   files:     - /**/*   discard-paths: no 

but if gulp -v returns gulp version correctly, running gulp or gulp default (gulp ) says gulp not installed !???

what missing? same issue?

forgot running npm install , bower install ... focus on tools , forgot run day-to-day commands...

the final file specs:

# 0.1 : shell each command  # 0.2 : shell keeps settings # https://stackoverflow.com/a/45115791/28004 version: 0.2   phases:   install:     commands:       - echo install started on `date`       - cd wp-content/themes/sitecampaign-sage       - echo `pwd`       - npm install bower -g       - npm install grunt -g       - npm install gulp -g       - npm install       - bower install --allow-root       - echo install completed on `date`   pre_build:     commands:       - echo pre_build started on `date`       - echo `pwd`       - bower -v       - node -v       - npm -v       - gulp -v       - gulp       - echo pre_build completed on `date`   build:     commands:       - echo build started on `date`       - echo `pwd`       - gulp       - gulp default       - echo build completed on `date`   post_build:     commands:       - echo post_build started on `date`       - echo `pwd`       - rm -rf node_modules       - rm -rf bower_components       - echo post_build completed on `date` artifacts:   files:     - /**/* 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -