forked from UniversalRobots/PolyScopeX_URCap_SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e3df27
commit 63bf2b9
Showing
54 changed files
with
17,059 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.