Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-lolk authored Jul 9, 2024
1 parent 8e3df27 commit 63bf2b9
Show file tree
Hide file tree
Showing 54 changed files with 17,059 additions and 0 deletions.
Empty file.
22 changes: 22 additions & 0 deletions test/contribution-samples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Angular contribution

This project is a template Angular example of a URCap Web Contribution

### Installation
To install the contribution type:

`$ npm install`

### Build
To build the contribution type:

`$ npm run build`

### Deploy
To deploy the contribution to the simulator type:

`$ npm run install-urcap`

## Further help

Get more help from the included SDK documentation.
128 changes: 128 additions & 0 deletions test/contribution-samples/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
"contribution-samples": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "ngx-build-plus:browser",
"options": {
"singleBundle": true,
"outputPath": "dist/contribution-samples",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/contribution.json",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"stylePreprocessorOptions": {
"includePaths": [
"node_modules/@universal-robots",
"node_modules/@universal-robots/designtokens/src"
]
},
"webWorkerTsConfig": "tsconfig.worker.json",
"allowedCommonJsDependencies": [
"debug",
"guid-typescript",
"lodash"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
},
"development": {
"optimization": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"singleBundle": true,
"disableHostCheck": true,
"publicHost": "http://0.0.0.0:4200",
"host": "0.0.0.0",
"port": 4200
},
"configurations": {
"production": {
"buildTarget": "contribution-samples:build:production"
},
"development": {
"buildTarget": "contribution-samples:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "contribution-samples:build"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"src/assets"
],
"styles": [
"src/styles.scss"
],
"stylePreprocessorOptions": {
"includePaths": [
"node_modules/@universal-robots",
"node_modules/@universal-robots/designtokens/src"
]
}
}
}
}
}
}
}
37 changes: 37 additions & 0 deletions test/contribution-samples/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
failSpecWithNoExpectations: true,
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage'),
subdir: '.',
reporters: [
{type: 'lcov'},
{type: 'html'},
]
},
reporters: ['progress', 'coverage'],
browsers: ['ChromeHeadless'],
codeCoverage: true,
singleRun: true,
});
};
10 changes: 10 additions & 0 deletions test/contribution-samples/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
metadata:
vendorID: universal-robots
urcapID: contribution-samples
vendorName: Universal Robots A/S
urcapName: Contribution Samples
version: 1.0.0
artifacts:
webArchives:
- id: contribution-samples
folder: contribution-samples
Loading

0 comments on commit 63bf2b9

Please sign in to comment.