Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 9b1289b

Browse files
committed
updated typescript template
1 parent 78e207a commit 9b1289b

File tree

22 files changed

+527
-103
lines changed

22 files changed

+527
-103
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ It's only one click away. Just select your preferred Framework below.
6464
- [React](https://codesandbox.io/s/agilets-first-state-f12cz)
6565
- [React-Native](https://snack.expo.io/@bennodev/agilets-first-state)
6666
- [Vue](https://codesandbox.io/s/agilets-first-state-i5xxs)
67-
- Angular (coming soon)
67+
- Svelte (coming soon)
6868

6969
More examples can be found in the [Example section](https://agile-ts.org/docs/examples).
7070

@@ -175,7 +175,6 @@ We will be happy to help you.
175175
- Quick Start
176176
- [React](https://agile-ts.org/docs/quick-start/react)
177177
- [Vue](https://agile-ts.org/docs/quick-start/vue)
178-
- [Angular](https://agile-ts.org/docs/quick-start/angular)
179178
- Packages
180179
- [core](https://agile-ts.org/docs/core)
181180
- [Agile Instance](https://agile-ts.org/docs/core/agile-instance)
Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@agile-ts/core": "^0.0.13",
5-
"@agile-ts/react": "^0.0.13",
6-
"typescript": "^4.1.2",
7-
"web-vitals": "^1.0.1"
4+
"@agile-ts/core": "^0.1.2",
5+
"@agile-ts/react": "^0.1.2",
6+
"react": "^17.0.2",
7+
"react-dom": "^17.0.2",
8+
"react-scripts": "^4.0.3"
89
},
910
"devDependencies": {
1011
"@testing-library/jest-dom": "^5.11.4",
1112
"@testing-library/react": "^11.1.0",
1213
"@testing-library/user-event": "^12.1.10",
14+
"@types/jest": "^26.0.15",
1315
"@types/node": "^12.0.0",
1416
"@types/react": "^17.0.0",
1517
"@types/react-dom": "^17.0.0",
16-
"@types/jest": "^26.0.15"
17-
},
18-
"eslintConfig": {
19-
"extends": ["react-app", "react-app/jest"]
18+
"@typescript-eslint/eslint-plugin": "^4.28.3",
19+
"@typescript-eslint/parser": "^4.28.3",
20+
"eslint": "^7.31.0",
21+
"eslint-config-airbnb-typescript": "^12.3.1",
22+
"eslint-config-prettier": "^8.3.0",
23+
"eslint-plugin-import": "^2.23.4",
24+
"eslint-plugin-jsx-a11y": "^6.4.1",
25+
"eslint-plugin-prettier": "^3.4.0",
26+
"eslint-plugin-react": "^7.24.0",
27+
"eslint-plugin-react-hooks": "^4.2.0",
28+
"prettier": "^2.3.2",
29+
"typescript": "^4.1.2"
2030
}
2131
}
2232
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const OFF = 0;
2+
const WARNING = 1;
3+
const ERROR = 2;
4+
5+
module.exports = {
6+
plugins: ['@typescript-eslint'],
7+
extends: ['airbnb-typescript', 'prettier'],
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: {
10+
project: ['./tsconfig.json'],
11+
},
12+
ignorePatterns: ['.eslintrc.js'], // https://stackoverflow.com/questions/63002127/parsing-error-parseroptions-project-has-been-set-for-typescript-eslint-parser
13+
rules: {
14+
'react/prop-types': OFF,
15+
},
16+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
.idea
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build/
2+
node_modules/
3+
package-lock.json
4+
yarn.lock
5+
package.json
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "all"
8+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "my-app",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@agile-ts/core": "^0.1.2",
7+
"@agile-ts/react": "^0.1.2",
8+
"react": "^17.0.2",
9+
"react-dom": "^17.0.2",
10+
"react-scripts": "^4.0.3"
11+
},
12+
"devDependencies": {
13+
"@testing-library/jest-dom": "^5.11.4",
14+
"@testing-library/react": "^11.1.0",
15+
"@testing-library/user-event": "^12.1.10",
16+
"@types/jest": "^26.0.15",
17+
"@types/node": "^12.0.0",
18+
"@types/react": "^17.0.0",
19+
"@types/react-dom": "^17.0.0",
20+
"@typescript-eslint/eslint-plugin": "^4.28.3",
21+
"@typescript-eslint/parser": "^4.28.3",
22+
"eslint": "^7.31.0",
23+
"eslint-config-airbnb-typescript": "^12.3.1",
24+
"eslint-config-prettier": "^8.3.0",
25+
"eslint-plugin-import": "^2.23.4",
26+
"eslint-plugin-jsx-a11y": "^6.4.1",
27+
"eslint-plugin-prettier": "^3.4.0",
28+
"eslint-plugin-react": "^7.24.0",
29+
"eslint-plugin-react-hooks": "^4.2.0",
30+
"prettier": "^2.3.2",
31+
"typescript": "^4.1.2"
32+
},
33+
"scripts": {
34+
"start": "react-scripts start",
35+
"build": "react-scripts build",
36+
"test": "react-scripts test",
37+
"eject": "react-scripts eject"
38+
},
39+
"eslintConfig": {
40+
"extends": [
41+
"react-app",
42+
"react-app/jest"
43+
]
44+
},
45+
"browserslist": {
46+
"production": [
47+
">0.2%",
48+
"not dead",
49+
"not op_mini all"
50+
],
51+
"development": [
52+
"last 1 chrome version",
53+
"last 1 firefox version",
54+
"last 1 safari version"
55+
]
56+
}
57+
}

packages/cra-template-agile-typescript/template/src/App.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/cra-template-agile-typescript/template/src/App.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.container {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
flex-direction: column;
6+
}
7+
8+
.displayContainer {
9+
padding: 1rem 0;
10+
}
11+
12+
.displayContainer span{
13+
background:#6C69A0;
14+
color: #ffffff;
15+
text-align: center;
16+
font-size: 1rem;
17+
padding: 1rem;
18+
border-radius: 5px;
19+
}

0 commit comments

Comments
 (0)