Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Add AngularJS devfile along with sample project (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
  • Loading branch information
sleshchenko authored and monaka committed Jun 28, 2019
1 parent 918ee0e commit 07ff1d4
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
58 changes: 58 additions & 0 deletions devfiles/angular/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
apiVersion: 1.0.0
metadata:
name: angular
projects:
-
name: angular-realworld-example-app
source:
type: git
location: "/~https://github.com/gothinkster/angular-realworld-example-app"
components:
-
type: chePlugin
id: che-incubator/typescript/latest
-
type: dockerimage
alias: nodejs
image: node:10.16-alpine
command: ['tail']
args: ['-f', '/dev/null']
env:
- name: HOME
value: /projects
- name: PS1
value: $(echo ${0})\\$
memoryLimit: 1Gi
endpoints:
- name: 'angular'
port: 4200
mountSources: true
commands:
- name: yarn install
actions:
- type: exec
component: nodejs
command: yarn install
workdir: ${CHE_PROJECTS_ROOT}/angular-realworld-example-app
-
name: build
actions:
- type: exec
component: nodejs
command: yarn run build
workdir: ${CHE_PROJECTS_ROOT}/angular-realworld-example-app
-
name: start
actions:
- type: exec
component: nodejs
command: yarn run start --host 0.0.0.0 --disableHostCheck true
workdir: ${CHE_PROJECTS_ROOT}/angular-realworld-example-app
-
name: lint
actions:
- type: exec
component: nodejs
command: yarn run lint
workdir: ${CHE_PROJECTS_ROOT}/angular-realworld-example-app
6 changes: 6 additions & 0 deletions devfiles/angular/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
displayName: NodeJS Angular Web Application
description: Devfile for developing NodeJS Angular Web Application
tags: ["NodeJS", "Theia", "Angular"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
globalMemoryLimit: 2686Mi

0 comments on commit 07ff1d4

Please sign in to comment.