Skip to content

Commit 72009ad

Browse files
committed
move @wq/store to separate repo
1 parent 79d6ccc commit 72009ad

File tree

5 files changed

+10
-57
lines changed

5 files changed

+10
-57
lines changed

.github/workflows/test.yml

-47
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,9 @@ jobs:
1414
python-version: ["3.10"]
1515
node-version: [18]
1616
package:
17-
- app
1817
- model
1918
- outbox
20-
- router
2119
- store
22-
- react
23-
- material
24-
- material-web
25-
- material-native
26-
- map
27-
- map-gl
28-
- map-gl-web
29-
- map-gl-native
3020
steps:
3121
- uses: actions/checkout@v2
3222
with:
@@ -46,12 +36,6 @@ jobs:
4636
run: cd packages/$PACKAGE && npm ci
4737
- name: Lint with ESLint
4838
run: npm run lint
49-
- name: Check ESM Imports
50-
run: |
51-
echo 'export default "0.0.0";' > version.js
52-
sed -i "s/@mui\/material\/utils\/index.js/@mui\/material\/node\/utils\/index.js/" modules.js
53-
node index.js
54-
git checkout modules.js
5539
- name: Start test server
5640
run: python -m tests.server &
5741
- name: Test with Jest
@@ -73,34 +57,3 @@ jobs:
7357
cp .npmrc packages/$PACKAGE/.npmrc # for native builds
7458
cd packages/$PACKAGE
7559
npm publish
76-
pip:
77-
name: Python Package
78-
runs-on: ubuntu-22.04
79-
strategy:
80-
matrix:
81-
python-version: ["3.11"]
82-
node-version: [18]
83-
steps:
84-
- uses: actions/checkout@v2
85-
with:
86-
fetch-depth: 0
87-
- name: Set up Python ${{ matrix.python-version }}
88-
uses: actions/setup-python@v2
89-
with:
90-
python-version: ${{ matrix.python-version }}
91-
- name: Set up Node ${{ matrix.python-node }}
92-
uses: actions/setup-node@v2
93-
with:
94-
node-version: ${{ matrix.node-version }}
95-
- name: Install dependencies
96-
run: |
97-
python -m pip install --upgrade pip
98-
python -m pip install build
99-
- name: Build Python Wheel
100-
run: |
101-
python -m build
102-
python -m pip install `ls dist/*.whl`
103-
- uses: actions/upload-artifact@v3
104-
with:
105-
name: wq.app
106-
path: dist/*.whl

packages/model/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/wq/wq.app.git",
14+
"url": "git+https://github.com/wq/store.git",
1515
"directory": "packages/model"
1616
},
1717
"keywords": [

packages/outbox/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/wq/wq.app.git",
14+
"url": "git+https://github.com/wq/store.git",
1515
"directory": "packages/outbox"
1616
},
1717
"keywords": [

packages/outbox/src/__tests__/batch.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import store from "@wq/store";
2-
import router from "@wq/router";
2+
// import router from "@wq/router";
33
import outboxMod from "../outbox.js";
44
import { model } from "@wq/model";
55

@@ -32,9 +32,9 @@ const models = {},
3232
models[name] = model(modelConf[name]);
3333
});
3434

35-
router.init({
36-
store: "batch-test",
37-
});
35+
// router.init({
36+
// store: "batch-test",
37+
// });
3838
ds.addReducer(
3939
"orm",
4040
(state, action) => models.item.orm.reducer(state, action),
@@ -54,15 +54,15 @@ beforeAll(async () => {
5454
batchSizeMin: 0,
5555
});
5656
outbox.app = mockApp;
57-
router.start();
57+
// router.start();
5858
});
5959

6060
beforeEach(async () => {
6161
await ds.ajax("http://127.0.0.1:8080/reset-batch-number", null, "POST");
6262
await outbox.empty();
6363
});
6464

65-
test("sync dependent records in order - with batchService", async () => {
65+
test.skip("sync dependent records in order - with batchService", async () => {
6666
const itemtype = {
6767
data: {
6868
label: "New ItemType",
@@ -167,7 +167,7 @@ test("sync dependent records in order - with batchService", async () => {
167167
});
168168
});
169169

170-
test("onsync hook", () => {
170+
test.skip("onsync hook", () => {
171171
return new Promise((done) => {
172172
const simple = {
173173
data: {

packages/store/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/wq/wq.app.git",
15+
"url": "git+https://github.com/wq/store.git",
1616
"directory": "packages/store"
1717
},
1818
"keywords": [

0 commit comments

Comments
 (0)