Skip to content

Commit

Permalink
Merge pull request #228 from 92green/release/tempting-dodo
Browse files Browse the repository at this point in the history
[v2] TemptingDodo - Typescript, remove unmutable
  • Loading branch information
allanhortle committed Oct 10, 2023
2 parents 57729e3 + bdacbeb commit 8f19843
Show file tree
Hide file tree
Showing 196 changed files with 17,008 additions and 39,099 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
name: Build and Test

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: '18'
- run: yarn prep
- run: yarn build
- run: yarn test-all
env:
CI: true
- run: yarn test:all
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
38 changes: 38 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
*.env.yml
*.mdx

dist
build
.env
.DS_Store
.bundle
node_modules
.nyc_output
coverage
tmp.config.json
stats.json
*.orig
**/.idea/workspace.xml
**/.idea/tasks.xml
*.log
*.un~
tags
tags.lock
yalc.lock
tags.temp
vendor
lib
.yalc
.cache
yarn-error.log
.serverless
flow-coverage
packages/bigdatr-auth/dev-certs/cert.pem
packages/bigdatr-auth/dev-certs/key.pem
version.json
.webpack
taskell.md
.vscode
.idea
.history
.eslintcache
6 changes: 2 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"npmClient": "yarn",
"version": "1.1.0",
"packages": [
"packages/*"
]
"version": "2.0.0-alpha.16",
"packages": ["packages/*"]
}
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{
"release": {
"name": "SharpGrouse"
"name": "TemptingDodo"
},
"private": true,
"scripts": {
"prep": "yarn && yarn lerna bootstrap",
"build": "lerna run build --parallel --",
"build": "lerna run build",
"pub": "yarn build && yarn lerna publish",
"pub:next": "yarn build && yarn lerna publish --npm-tag=next",
"watch": "lerna run watch --parallel --",
"test-all": "lerna run test-all --parallel --",
"deploy-docs": "yarn lerna --scope enty-docs run deploy"
"test:all": "lerna run test:all",
"format": "yarn prettier --write .",
"format:quick": "yarn pretty-quick --staged"
},
"husky": {
"hooks": {
"pre-commit": "yarn format:quick"
}
},
"devDependencies": {
"lerna": "^3.4.3"
"lerna": "^3.4.3",
"husky": "^6.0.0",
"prettier": "^2.3.0",
"pretty-quick": "^3.1.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const api = EntityApi({
});

export const getUserHook = api.user.get.useRequest;
export const createCourseHoc = api.course.create.requestHoc;
```

### useRequest
Expand Down Expand Up @@ -112,20 +111,6 @@ export default function MainView() {
}
```

### ProviderHoc
The ProviderHoc wraps the Provider in a hoc. This is useful if your

```jsx
import Api from './EntityApi';
import ThemeProviderHoc from './ThemeProviderHoc';
import composeWith from 'unmutable/composeWith';

export default composeWith(
Api.ProviderHoc(),
ThemeProviderHoc(),
AppComponent
);
```

### useRemove
Returns a side-effect that will remove an entity from the store.
Expand All @@ -140,22 +125,6 @@ export default function RemoveUser(props) {
}
```

### RemoveHoc
Hocs a component with a `useRemove` hook and provides the side-effect to `config.name`

```jsx
// RemoveUser.jsx
import api from './EntityApi';

function RemoveUser({onRemove, id}) {
return <button onClick={() => onRemove('user', id)}>Remove User</button>;
}

export default api.RemoveHoc({name: 'onRemove'})(RemoveUser);
```





## Examples
Expand Down
38 changes: 0 additions & 38 deletions packages/enty-docs/gatsby-config.js

This file was deleted.

60 changes: 0 additions & 60 deletions packages/enty-docs/gatsby-node.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 0 additions & 35 deletions packages/enty-docs/package.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8f19843

Please sign in to comment.