Skip to content

Commit 153d6d6

Browse files
feat: generate qwik-angular package
1 parent 6ef19ff commit 153d6d6

21 files changed

+9751
-1238
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nx/javascript"],
32+
"rules": {}
33+
}
34+
]
35+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ testem.log
3737
# System Files
3838
.DS_Store
3939
Thumbs.db
40+
41+
.angular

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Add files here to ignore them from prettier formatting
22
/dist
3-
/coverage
3+
/coverage
4+
.angular

.verdaccio/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# path to a directory with all packages
2+
storage: ../tmp/local-registry/storage
3+
4+
# a list of other known repositories we can talk to
5+
uplinks:
6+
npmjs:
7+
url: http://localhost:4873/
8+
maxage: 60m
9+
10+
packages:
11+
'**':
12+
# give all users (including non-authenticated users) full access
13+
# because it is a local registry
14+
access: $all
15+
publish: $all
16+
unpublish: $all
17+
18+
# if package is not available locally, proxy requests to npm registry
19+
proxy: npmjs
20+
21+
# log settings
22+
logs:
23+
type: stdout
24+
format: pretty
25+
level: warn
26+
27+
publish:
28+
allow_offline: true # set offline to true to allow publish offline

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"dbaeumer.vscode-eslint"
6+
]
37
}

nx.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,27 @@
77
"default": {
88
"runner": "nx-cloud",
99
"options": {
10-
"cacheableOperations": [
11-
"build",
12-
"lint",
13-
"test",
14-
"e2e"
15-
],
10+
"cacheableOperations": ["build", "lint", "test", "e2e"],
1611
"accessToken": "NmYxNjExYTQtNGQxOS00MjBlLWI0ODAtZTJiZDZhYjhmZGE5fHJlYWQtd3JpdGU="
1712
}
1813
}
1914
},
2015
"targetDefaults": {
2116
"build": {
22-
"dependsOn": [
23-
"^build"
24-
],
17+
"dependsOn": ["^build"],
18+
"inputs": ["production", "^production"]
19+
},
20+
"lint": {
2521
"inputs": [
26-
"production",
27-
"^production"
22+
"default",
23+
"{workspaceRoot}/.eslintrc.json",
24+
"{workspaceRoot}/.eslintignore"
2825
]
2926
}
3027
},
3128
"namedInputs": {
32-
"default": [
33-
"{projectRoot}/**/*",
34-
"sharedGlobals"
35-
],
36-
"production": [
37-
"default"
38-
],
29+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
30+
"production": ["default", "!{projectRoot}/.eslintrc.json"],
3931
"sharedGlobals": []
4032
},
4133
"workspaceLayout": {

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@
66
"private": true,
77
"dependencies": {},
88
"devDependencies": {
9+
"@nx/angular": "16.5.0",
10+
"@nx/eslint-plugin": "16.5.0",
911
"@nx/js": "16.5.0",
12+
"@nx/linter": "16.5.0",
1013
"@nx/workspace": "16.5.0",
14+
"@types/node": "18.7.1",
15+
"@typescript-eslint/eslint-plugin": "^5.60.1",
16+
"@typescript-eslint/parser": "^5.60.1",
17+
"eslint": "~8.15.0",
18+
"eslint-config-prettier": "8.1.0",
1119
"nx": "16.5.0",
1220
"nx-cloud": "latest",
1321
"prettier": "^2.6.2",
14-
"typescript": "~5.1.3"
22+
"typescript": "~5.1.3",
23+
"verdaccio": "^5.0.4"
24+
},
25+
"nx": {
26+
"includedScripts": []
1527
}
1628
}

packages/qwik-angular/.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}

packages/qwik-angular/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# qwik-angular
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Building
6+
7+
Run `nx build qwik-angular` to build the library.

0 commit comments

Comments
 (0)