Skip to content

Feature/v5 #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master-v5
Choose a base branch
from
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["react-app", { "flow": false, "typescript": true }]]
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules
dist
@types
package-lock.json

# MacOS
.DS_Store
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"printWidth": 100
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"cSpell.words": [
"Unregistering",
"bigint",
"reactway",
"unmounting"
]
}
55 changes: 55 additions & 0 deletions TEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
```tsx

const indexes = [0, 1, 2, 3];

const fieldsArrayUsage =
<FieldsArray>
{indexes.map(index => <div arrayKey={`my-array`} index={Number(index)}>

</div>)}
</FieldsArray>

export a = () =>
<Permanent>
<Form>
<TextField name="firstName" initialValue={initialValue}>
<UppercaseNormalizer />
<DebounceValidator value={1000} />
<TextValidator text="John" errorMessage="You ain't John!" />
</TextField>

<NumberField name="age" />


<Converter convert={obj => `${obj.firstName} ${obj.lastName}`}>
<FieldGroup>
<TextField name="firstName" />
<TextField name="lastName" />
</FieldGroup>
</Converter>



</Form>
</Permanent>

const result = {
firstName: "John",
age: ""
}

```


```ts
const a = () => {
const mapStore: any;
const id = "id";

const exists = mapStore.exists(id); // false
const item = mapStore.get(id); // Item<Init>
const exists2 = mapStore.exists(id); // true

const item = useMapStoreItem(id);
}
```
49 changes: 49 additions & 0 deletions old-package.json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"dependencies": {
"@types/node": "11.11.3",
"react": "16.8.4",
"react-dom": "16.8.4",
"tslib": "1.9.3"
},
"devDependencies": {
"@babel/core": "7.3.4",
"@types/jest": "24.0.11",
"@types/react": "16.8.8",
"@types/react-dom": "16.8.2",
"@types/webpack": "4.4.25",
"babel-loader": "8.0.5",
"babel-preset-react-app": "7.0.2",
"cross-env": "5.2.0",
"html-webpack-plugin": "3.2.0",
"html-webpack-root-plugin": "0.10.0",
"istanbul-azure-reporter": "0.1.4",
"jest": "24.5.0",
"jest-dom": "3.1.3",
"jest-junit": "6.3.0",
"react-testing-library": "6.0.0",
"simplr-tslint": "1.0.0-alpha.14",
"source-map-loader": "0.2.4",
"ts-jest": "24.0.0",
"tslint": "5.14.0",
"typescript": "3.4.0-rc",
"webpack": "4.29.6",
"webpack-cli": "3.3.0",
"webpack-dev-server": "3.2.1"
},
"jest": {
"verbose": true,
"preset": "ts-jest",
"reporters": [
"default",
"jest-junit"
],
"collectCoverage": true,
"testRegex": "/__tests__/.*\\.(test|spec).(ts|tsx|js)$",
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/index.ts"
],
"coverageReporters": [
"cobertura",
"istanbul-azure-reporter"
]
}
Loading