Skip to content

Commit

Permalink
Merge pull request #40 from skynetigor/only_lib_angular-12
Browse files Browse the repository at this point in the history
Move workspace into Angular 12 workspace
  • Loading branch information
skynetigor authored Mar 13, 2022
2 parents be86ccc + 14db26a commit d7e2d2a
Show file tree
Hide file tree
Showing 252 changed files with 28,013 additions and 13,562 deletions.
17 changes: 17 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
71 changes: 71 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"root": true,
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jasmine/recommended",
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": [
"jasmine",
"import"
],
"rules": {
"prefer-const": "off",
"@typescript-eslint/no-empty-function": "off", // temporary, should be ok for tests
"@typescript-eslint/no-explicit-any": "off", // temporary, should be ok for tests
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"String": {
"message": "Use string instead",
"fixWith": "string"
},
"{}": false,
"object": false
}
}
],
"no-console": "error",
"no-unused-vars": "off",
"no-undef": "off",
"no-prototype-builtins": "off",
"no-sparse-arrays": "off",
"no-redeclare": "off",
"getter-return": "off",
"no-extra-boolean-cast": "off",
"no-useless-escape": "off",
"no-empty": "off",
"semi": "error",
"import/no-unresolved": "off"
}
}
],
"settings": { // https://github.com/alexgorbatchev/eslint-import-resolver-typescript
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
}
}
}
}
29 changes: 29 additions & 0 deletions .github/workflows/build-dynamic-form-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build/Test

on:
push:
branches: [master, develop]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.15.4

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build dynamic-form

- name: Lint
run: npm run lint

- name: Test
run: npm run test dynamic-form -- -c=single-run
29 changes: 29 additions & 0 deletions .github/workflows/dynamic-form-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build PR

on:
pull_request:
branches: [develop, master, 'feature/*']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.15.4

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build dynamic-form

- name: Lint
run: npm run lint

- name: Test
run: npm run test dynamic-form -- -c=single-run
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json

# IDEs and editors
/.idea
.project
Expand All @@ -23,6 +28,7 @@
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
Expand Down
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FormRendererRoot

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.6.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.5.

## Development server

Expand All @@ -12,16 +12,16 @@ Run `ng generate component component-name` to generate a new component. You can

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
Loading

0 comments on commit d7e2d2a

Please sign in to comment.