Skip to content

Commit 87fd691

Browse files
authored
Merge pull request #8 from platform-mesh/feat/lib-init
Init lib and fe logic
2 parents 2e6b5b9 + f2b367f commit 87fd691

39 files changed

+23945
-1
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

.github/workflows/pipeline.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pipe
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
11+
concurrency:
12+
group: ${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
pipe:
17+
uses: platform-mesh/.github/.github/workflows/pipeline-node-module.yml@main
18+
secrets: inherit

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
.history/*
26+
27+
# Miscellaneous
28+
/.angular/cache
29+
.sass-cache/
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
testem.log
34+
/typings
35+
36+
# System files
37+
.DS_Store
38+
Thumbs.db

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@openmfp:registry=https://npm.pkg.github.com
2+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
# portal-ui-lib
1+
# Portal UI Library
2+
3+
This library helps you to setup FE application using `@openmfp/portal-ui-lib` by providing set of required implmentation in scope of the Platform Mesh functionalities.
4+
<!-- CI trigger -->
5+
6+
![Build Status](https://github.com/platform-mesh/portal-ui-lib/actions/workflows/pipeline.yaml/badge.svg)
7+
8+
## Build
9+
10+
Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory.
11+
12+
## Running unit tests
13+
14+
Run `nom run test` to execute the unit tests via Jest

angular.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"lib": {
7+
"projectType": "library",
8+
"root": "projects/lib",
9+
"sourceRoot": "projects/lib/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"project": "projects/lib/ng-package.json"
16+
},
17+
"configurations": {
18+
"production": {
19+
"tsConfig": "projects/lib/tsconfig.lib.prod.json"
20+
},
21+
"development": {
22+
"tsConfig": "projects/lib/tsconfig.lib.json"
23+
}
24+
},
25+
"defaultConfiguration": "production"
26+
},
27+
"test": {
28+
"builder": "@angular-builders/jest:run",
29+
"options": {
30+
"tsConfig": "./tsconfig.spec.json"
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
preset: 'jest-preset-angular',
3+
testRunner: 'jest-jasmine2',
4+
collectCoverage: true,
5+
modulePathIgnorePatterns: ['<rootDir>/dist/'],
6+
coveragePathIgnorePatterns: ['/node_modules/', '/integration-tests/'],
7+
};

0 commit comments

Comments
 (0)