Skip to content

Commit 99c391a

Browse files
committed
init angular plugin
1 parent aae4c9a commit 99c391a

File tree

18 files changed

+18842
-0
lines changed

18 files changed

+18842
-0
lines changed

.editorconfig

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

.eslintrc.json

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"env": {
8+
"node": true
9+
},
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended"
13+
],
14+
"rules": {
15+
"@typescript-eslint/array-type": [
16+
"error",
17+
{
18+
"default": "array-simple"
19+
}
20+
],
21+
"@typescript-eslint/consistent-type-imports": "error",
22+
"@typescript-eslint/no-unused-vars": [
23+
"error",
24+
{
25+
"argsIgnorePattern": "_"
26+
}
27+
],
28+
"no-undef": "off",
29+
"no-redeclare": "off",
30+
"padded-blocks": "off",
31+
"no-unused-vars": "off",
32+
"no-dupe-class-members": "off",
33+
"newline-before-return": "error",
34+
"indent": [
35+
"error",
36+
4,
37+
{
38+
"SwitchCase": 1
39+
}
40+
],
41+
"max-len": [
42+
"error",
43+
{
44+
"code": 180
45+
}
46+
],
47+
"quotes": [
48+
"error",
49+
"single"
50+
],
51+
"semi": [
52+
"error",
53+
"always"
54+
],
55+
"require-jsdoc": [
56+
"warn",
57+
{
58+
"require": {
59+
"MethodDefinition": false,
60+
"ClassDeclaration": false,
61+
"FunctionExpression": false,
62+
"FunctionDeclaration": false,
63+
"ArrowFunctionExpression": false
64+
}
65+
}
66+
],
67+
"linebreak-style": [
68+
"error",
69+
"windows"
70+
],
71+
"array-bracket-spacing": [
72+
"error",
73+
"always",
74+
{
75+
"objectsInArrays": false,
76+
"arraysInArrays": false
77+
}
78+
],
79+
"object-curly-spacing": [
80+
2,
81+
"always"
82+
],
83+
"@typescript-eslint/no-explicit-any": "off",
84+
"@typescript-eslint/member-ordering": [
85+
"error",
86+
{
87+
"default": [
88+
// Fields
89+
"public-static-field",
90+
"public-decorated-field",
91+
"public-instance-field",
92+
"protected-static-field",
93+
"protected-decorated-field",
94+
"protected-instance-field",
95+
"private-static-field",
96+
"private-decorated-field",
97+
"private-instance-field",
98+
// Constructors
99+
"public-constructor",
100+
"protected-constructor",
101+
"private-constructor",
102+
// Methods
103+
"public-static-method",
104+
"public-decorated-method",
105+
"public-instance-method",
106+
"protected-static-method",
107+
"protected-decorated-method",
108+
"protected-instance-method",
109+
"private-static-method",
110+
"private-decorated-method",
111+
"private-instance-method"
112+
]
113+
}
114+
]
115+
},
116+
"overrides": [
117+
{
118+
"files": "*.json",
119+
"parser": "jsonc-eslint-parser",
120+
"rules": {}
121+
}
122+
],
123+
"ignorePatterns": [
124+
"**/*.js",
125+
"docs/*",
126+
"src/specs/*",
127+
"src/assets/*"
128+
]
129+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### This is a...
11+
12+
* [ ] feature request
13+
* [ ] bug report
14+
* [ ] usage question
15+
16+
### Environment
17+
18+
NodeJS Version:
19+
Typescript Version:
20+
Angular Version:
21+
@angular-redux2/store version:
22+
@angular/cli version: (if applicable)
23+
OS:
24+
25+
### Link to repo showing the issue
26+
(optional, but helps _a lot_)
27+
28+
### Expected Behaviour:
29+
30+
### Actual Behaviour:
31+
32+
### Stack Trace/Error Message:
33+
34+
### Additional Notes:
35+
(optional)
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '26 4 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

.github/workflows/node.js.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
types:
11+
- opened
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node: [ 16, 18 ]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
name: Node ${{ matrix.node }}
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: Install Dependencies
31+
run: npm ci
32+
33+
- name: Run Unit Tests
34+
run: npm run ci:test
35+
36+
- name: Clean Distribution Directory
37+
run: npm run ci:clean

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See http://help.github.com/ignore-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+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
coverage
40+
41+
# System files
42+
.DS_Store
43+
Thumbs.db

angular.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"@angular-redux2/sync": {
7+
"projectType": "library",
8+
"root": "projects/angular-redux2/sync",
9+
"sourceRoot": "projects/angular-redux2/sync/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"project": "projects/angular-redux2/sync/ng-package.json"
16+
},
17+
"configurations": {
18+
"production": {
19+
"tsConfig": "projects/angular-redux2/sync/tsconfig.lib.prod.json"
20+
},
21+
"development": {
22+
"tsConfig": "projects/angular-redux2/sync/tsconfig.lib.json"
23+
}
24+
},
25+
"defaultConfiguration": "production"
26+
},
27+
"test": {
28+
"builder": "@angular-builders/jest:run"
29+
},
30+
"lint": {
31+
"builder": "@angular-eslint/builder:lint",
32+
"options": {
33+
"lintFilePatterns": [
34+
"projects/angular-redux2/sync/**/*.ts",
35+
"projects/angular-redux2/sync/**/*.html"
36+
]
37+
}
38+
}
39+
}
40+
}
41+
},
42+
"cli": {
43+
"schematicCollections": [
44+
"@angular-eslint/schematics"
45+
]
46+
}
47+
}

0 commit comments

Comments
 (0)