Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
// NOTE: WE ARE NOT APPLYING PRETTIER IN THIS OVERRIDE, ONLY @ANGULAR-ESLINT/TEMPLATE
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
},
// NOTE: WE ARE NOT APPLYING @ANGULAR-ESLINT/TEMPLATE IN THIS OVERRIDE, ONLY PRETTIER
{
"files": ["*.html"],
"excludedFiles": ["*inline-template-*.component.html"],
"extends": ["plugin:prettier/recommended"],
"rules": {
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW)
"prettier/prettier": [
"error",
{
"parser": "angular"
}
]
}
}
]
}
6 changes: 3 additions & 3 deletions .github/workflows/build-gh-pages-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build GH Pages Demo
on:
push:
branches:
- "main"
- 'main'

jobs:
build-gh-pages-demo:
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.x"
node-version: '16.x'

- name: install packages
run: yarn
Expand All @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: gh-pages-demo
path: "gh-pages-demo"
path: 'gh-pages-demo'

- name: Clean out old dist and copy new dist
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
scope: "@fullstack-devops"
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@fullstack-devops'

- name: install packages
run: yarn
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Release Package
on:
push:
branches:
- "main"
- 'main'
paths-ignore:
- "README.md"
- "docs/**"
- ".github/ISSUE_TEMPLATE/**"
- ".github/PULL_REQUEST_TEMPLATE.md"
- 'README.md'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'

jobs:
create_release:
Expand All @@ -26,9 +26,9 @@ jobs:
- name: Setup node for GitHub
uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
scope: "@fullstack-devops"
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@fullstack-devops'

- name: install packages
run: yarn
Expand All @@ -46,10 +46,9 @@ jobs:
- name: Setup node for npmjs
uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
scope: "@fullstack-devops"

node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@fullstack-devops'

- name: npm publish to npmjs
working-directory: dist/ng-mat-components
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ projects/ng-nav-frame/README.md
npm-debug.log
yarn-error.log
yarn.lock
package-lock.json
.yarn/

# IDEs and editors
Expand Down Expand Up @@ -47,4 +48,4 @@ testem.log
.DS_Store
Thumbs.db
.yarnrc
package-lock.json
package-lock.json
44 changes: 44 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
node_modules
npm-debug.log
yarn-error.log
package-lock.json
yarn.lock

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"trailingComma": "es5",
"bracketSameLine": true,
"printWidth": 160,
"htmlWhitespaceSensitivity": "ignore"
}
8 changes: 6 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": [
"angular.ng-template",
"johnpapa.Angular2",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"PKief.material-icon-theme",
"Mikael.Angular-BeastCode",
"bradlc.vscode-tailwindcss"
]
}
}
32 changes: 22 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.renderWhitespace": "all",
"prettier.arrowParens": "avoid",
"prettier.printWidth": 130,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"workbench.iconTheme": "material-icon-theme",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
Expand All @@ -20,10 +18,24 @@
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[scss]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
}
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true
},
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
}
}
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# ng-mat-components
Components for @angular/material

Components for @angular/material

## Installation

add to your local `.npmrc` the following line to be able to use this package:

```javascript
@fullstack-devops:registry=https://npm.pkg.github.com
```

And install it:
- yarn
```javascript
yarn add @fullstack-devops/ng-mat-components
```
- npm
```javascript
npm install @fullstack-devops/ng-mat-components
```

- yarn
```javascript
yarn add @fullstack-devops/ng-mat-components
```
- npm
```javascript
npm install @fullstack-devops/ng-mat-components
```

## Documentation

Expand Down
26 changes: 6 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,9 @@
"polyfills": "projects/lib-workspace/src/polyfills.ts",
"tsConfig": "projects/lib-workspace/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": [
"moment"
],
"assets": [
"projects/lib-workspace/src/favicon.ico",
"projects/lib-workspace/src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"projects/lib-workspace/src/styles.scss"
],
"allowedCommonJsDependencies": ["moment"],
"assets": ["projects/lib-workspace/src/favicon.ico", "projects/lib-workspace/src/assets"],
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "projects/lib-workspace/src/styles.scss"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -130,18 +122,12 @@
"tsConfig": "projects/lib-workspace/tsconfig.spec.json",
"karmaConfig": "projects/lib-workspace/karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"projects/lib-workspace/src/favicon.ico",
"projects/lib-workspace/src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"projects/lib-workspace/src/styles.scss"
],
"assets": ["projects/lib-workspace/src/favicon.ico", "projects/lib-workspace/src/assets"],
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "projects/lib-workspace/src/styles.scss"],
"scripts": []
}
}
}
}
}
}
}
Loading