Skip to content

Commit 1a39182

Browse files
committed
revive the repo
1 parent 576db84 commit 1a39182

File tree

89 files changed

+12743
-16099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+12743
-16099
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

+8-121
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,133 +23,20 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{
35-
"files": ["*.ts"],
36-
"rules": {
37-
"@angular-eslint/component-selector": [
38-
"error",
39-
{
40-
"type": "element",
41-
"prefix": "app",
42-
"style": "kebab-case"
43-
}
44-
],
45-
"@angular-eslint/directive-selector": [
46-
"error",
47-
{
48-
"type": "attribute",
49-
"prefix": "app",
50-
"style": "camelCase"
51-
}
52-
],
53-
"@angular-eslint/no-conflicting-lifecycle": "error",
54-
"@angular-eslint/no-host-metadata-property": "error",
55-
"@angular-eslint/no-input-rename": "error",
56-
"@angular-eslint/no-inputs-metadata-property": "error",
57-
"@angular-eslint/no-output-native": "error",
58-
"@angular-eslint/no-output-on-prefix": "error",
59-
"@angular-eslint/no-output-rename": "error",
60-
"@angular-eslint/no-outputs-metadata-property": "error",
61-
"@angular-eslint/use-lifecycle-interface": "error",
62-
"@angular-eslint/use-pipe-transform-interface": "error",
63-
"@typescript-eslint/consistent-type-definitions": "error",
64-
"@typescript-eslint/dot-notation": "off",
65-
"@typescript-eslint/explicit-member-accessibility": [
66-
"off",
67-
{
68-
"accessibility": "explicit"
69-
}
70-
],
71-
"@typescript-eslint/member-ordering": "error",
72-
"@typescript-eslint/naming-convention": "error",
73-
"@typescript-eslint/no-empty-function": "off",
74-
"@typescript-eslint/no-empty-interface": "error",
75-
"@typescript-eslint/no-inferrable-types": [
76-
"error",
77-
{
78-
"ignoreParameters": true
79-
}
80-
],
81-
"@typescript-eslint/no-misused-new": "error",
82-
"@typescript-eslint/no-non-null-assertion": "error",
83-
"@typescript-eslint/no-shadow": [
84-
"error",
85-
{
86-
"hoist": "all"
87-
}
88-
],
89-
"@typescript-eslint/no-unused-expressions": "error",
90-
"@typescript-eslint/prefer-function-type": "error",
91-
"@typescript-eslint/unified-signatures": "error",
92-
"arrow-body-style": "error",
93-
"constructor-super": "error",
94-
"eqeqeq": ["error", "smart"],
95-
"guard-for-in": "error",
96-
"id-blacklist": "off",
97-
"id-match": "off",
98-
"import/no-deprecated": "warn",
99-
"no-bitwise": "error",
100-
"no-caller": "error",
101-
"no-console": [
102-
"error",
103-
{
104-
"allow": [
105-
"log",
106-
"warn",
107-
"dir",
108-
"timeLog",
109-
"assert",
110-
"clear",
111-
"count",
112-
"countReset",
113-
"group",
114-
"groupEnd",
115-
"table",
116-
"dirxml",
117-
"error",
118-
"groupCollapsed",
119-
"Console",
120-
"profile",
121-
"profileEnd",
122-
"timeStamp",
123-
"context"
124-
]
125-
}
126-
],
127-
"no-debugger": "error",
128-
"no-empty": "off",
129-
"no-eval": "error",
130-
"no-fallthrough": "error",
131-
"no-new-wrappers": "error",
132-
"no-restricted-imports": ["error", "rxjs/Rx"],
133-
"no-throw-literal": "error",
134-
"no-undef-init": "error",
135-
"no-underscore-dangle": "off",
136-
"no-var": "error",
137-
"prefer-const": "error",
138-
"radix": "error"
139-
},
140-
"plugins": [
141-
"eslint-plugin-import",
142-
"@angular-eslint/eslint-plugin",
143-
"@typescript-eslint"
144-
]
145-
},
146-
{
147-
"files": ["*.html"],
148-
"rules": {
149-
"@angular-eslint/template/banana-in-box": "error",
150-
"@angular-eslint/template/no-negated-async": "error"
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
15138
},
152-
"plugins": ["@angular-eslint/eslint-plugin-template"]
39+
"rules": {}
15340
}
15441
]
15542
}

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
13+
jobs:
14+
main:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
# Cache node_modules
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 20
24+
cache: 'npm'
25+
- run: npm ci
26+
- uses: nrwl/nx-set-shas@v4
27+
28+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
29+
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
30+
31+
- run: npx nx-cloud record -- nx format:check
32+
- run: npx nx affected -t=lint,test,build

.gitignore

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist
5-
/tmp
4+
dist
5+
tmp
66
/out-tsc
77

88
# dependencies
9-
/node_modules
9+
node_modules
1010

1111
# IDEs and editors
1212
/.idea
@@ -37,3 +37,6 @@ testem.log
3737
# System Files
3838
.DS_Store
3939
Thumbs.db
40+
41+
.nx/cache
42+
.angular

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Add files here to ignore them from prettier formatting
2-
32
/dist
43
/coverage
4+
/.nx/cache
5+
.angular

.storybook/addons.js

-1
This file was deleted.

.storybook/tsconfig.json

-5
This file was deleted.

.storybook/webpack.config.js

-11
This file was deleted.

.vscode/extensions.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"recommendations": [
33
"nrwl.angular-console",
4-
"ms-vscode.vscode-typescript-tslint-plugin",
54
"esbenp.prettier-vscode",
6-
"angular.ng-template",
7-
"firsttris.vscode-jest-runner"
5+
"firsttris.vscode-jest-runner",
6+
"ms-playwright.playwright"
87
]
98
}

README.md

+62-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,72 @@
1-
# Gridjs-workspace
1+
# GridjsAngular
2+
3+
4+
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
5+
6+
**This workspace has been generated by [Nx, Smart Monorepos · Fast CI.](https://nx.dev)**
27

38
## Please check [Gridjs Angular](./libs/gridjs-angular/README.md) docs
49

5-
## Development
610

7-
This project is [Nx](https://nx.dev) workspace.
11+
## Start the demo app
12+
13+
To start the development server run `nx serve demo`. Open your browser and navigate to http://localhost:4200/. Happy coding!
14+
15+
16+
## Generate code
17+
18+
If you happen to use Nx plugins, you can leverage code generators that might come with it.
19+
20+
Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list <plugin-name>` to see what generators are available.
21+
22+
Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators).
23+
24+
## Running tasks
25+
26+
To execute tasks with Nx use the following syntax:
27+
28+
```
29+
nx <target> <project> <...options>
30+
```
831

9-
- Install
32+
You can also run multiple targets:
1033

11-
```bash
12-
npm i
34+
```
35+
nx run-many -t <target1> <target2>
1336
```
1437

15-
- Then you can run storybook.
38+
..or add `-p` to filter specific projects
1639

17-
```bash
18-
npm run nx -- run gridjs-angular:storybook
1940
```
41+
nx run-many -t <target1> <target2> -p <proj1> <proj2>
42+
```
43+
44+
Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/core-features/run-tasks).
45+
46+
## Want better Editor Integration?
47+
48+
Have a look at the [Nx Console extensions](https://nx.dev/nx-console). It provides autocomplete support, a UI for exploring and running tasks & generators, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.
49+
50+
## Ready to deploy?
51+
52+
Just run `nx build demoapp` to build the application. The build artifacts will be stored in the `dist/` directory, ready to be deployed.
53+
54+
## Set up CI!
55+
56+
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
57+
58+
- [Set up remote caching](https://nx.dev/core-features/share-your-cache)
59+
- [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
60+
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
61+
62+
## Explore the Project Graph
63+
Run `nx graph` to show the graph of the workspace.
64+
It will show tasks that you can run with Nx.
65+
66+
- [Learn more about Exploring the Project Graph](https://nx.dev/core-features/explore-graph)
67+
68+
## Connect with us!
69+
70+
- [Join the community](https://nx.dev/community)
71+
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
72+
- [Follow us on Twitter](https://twitter.com/nxdevtools)

0 commit comments

Comments
 (0)