Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use PROJECT_SOURCE instead of PROJECTS_ROOT #23

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,52 @@ schemaVersion: 2.1.0
metadata:
name: react-web-app
components:
- name: nodejs
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-3735d4f
image: quay.io/devfile/universal-developer-image:ubi8-0e189d9
endpoints:
- exposure: public
name: nodejs
protocol: http
targetPort: 3000
memoryLimit: 1G
mountSources: true

commands:
- id: yarn
exec:
label: "Install Yarn 2"
component: nodejs
workingDir: ${PROJECTS_ROOT}/react-web-app
commandLine: "yarn set version 1.22.5"
group:
kind: build
isDefault: true
- id: dependencies
- id: install-dependencies
exec:
label: "Install all required dependencies"
component: nodejs
workingDir: ${PROJECTS_ROOT}/react-web-app
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn install"
group:
kind: build
isDefault: true

- id: build
exec:
label: "Build the app"
component: nodejs
workingDir: ${PROJECTS_ROOT}/react-web-app
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn build"
group:
kind: build
isDefault: true
- id: runapp

- id: run
exec:
label: "Run the web app"
component: nodejs
workingDir: ${PROJECTS_ROOT}/react-web-app
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn start"
group:
kind: run

- id: test
exec:
label: "Launch tests"
component: nodejs
workingDir: ${PROJECTS_ROOT}/react-web-app
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn test"
group:
kind: test