File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,38 @@ commands:
114114 - node_modules
115115 key : v1-yarn-{{ checksum "yarn.lock" }}
116116
117+ npm-install-build :
118+ parameters :
119+ path :
120+ type : string
121+ default : " ."
122+ build-command :
123+ type : string
124+ default : " npm run build"
125+
126+ steps :
127+ - restore_cache :
128+ keys :
129+ - v1-npm-{{ checksum "<<parameters.path>>/package-lock.json" }}
130+ - v1-npm-
131+
132+ - run :
133+ name : Install frontend dependencies
134+ command : |
135+ cd <<parameters.path>>
136+ npm install
137+
138+ - run :
139+ name : Build frontend
140+ command : |
141+ cd <<parameters.path>>
142+ <<parameters.build-command>>
143+
144+ - save_cache :
145+ paths :
146+ - <<parameters.path>>/node_modules
147+ key : v1-npm-{{ checksum "<<parameters.path>>/package-lock.json" }}
148+
117149 drupal-docker-build :
118150 steps :
119151 - setup_remote_docker
You can’t perform that action at this time.
0 commit comments