Skip to content

Commit

Permalink
[add] actionflow scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
MatrixAge committed Dec 14, 2022
1 parent 3dbc086 commit ce43670
Show file tree
Hide file tree
Showing 14 changed files with 2,211 additions and 1,773 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="packages/xgen/public/logo_xgen.png" width="300">
<h4 align="center">XGEN</h4>
<p align="center">
The next generation low-code dashboard of Yao.
10x productive low-code dashboard of Yao.
</p>
</p>

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
]
},
"devDependencies": {
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"turbo": "^1.6.3",
"yorkie": "^2.0.0"
}
Expand Down
32 changes: 16 additions & 16 deletions packages/actionflow/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
{
"name": "@yaoapp/storex",
"version": "1.1.2",
"description": "Keep the type of storage value unchanged and change array and object directly. Supports listening to changes and setting expires.",
"name": "@yaoapp/actionflow",
"version": "0.1.0",
"description": "An action-driven event stream management library based on rxjs.",
"author": "Wendao",
"license": "MIT",
"homepage": "https://github.com/YaoApp/storex",
"homepage": "https://github.com/YaoApp/xgen/packages/actionflow",
"keywords": [
"localStorage",
"sessionStorage",
"store",
"store",
"storage",
"browser",
"proxy",
"subscribe",
"expires"
"flow",
"action",
"rxjs",
"pipeline"
],
"repository": {
"type": "git",
"url": "git+https://github.com/YaoApp/storex.git"
"url": "git+https://github.com/YaoApp/xgen.git"
},
"type": "module",
"source": "src/index.ts",
Expand All @@ -27,10 +22,15 @@
"scripts": {
"dev": "rollup --c rollup.config.ts --configPlugin swc3 -w",
"build": "rollup --c rollup.config.ts --configPlugin swc3",
"test": "jest --runInBand"
"dts": "rollup --c rollup.dts.ts --configPlugin swc3"
},
"dependencies": {
"rxjs": "^7.6.0",
"tsyringe": "^4.7.0"
},
"devDependencies": {
"rollup": "^3.2.5",
"rollup": "^3.7.4",
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-swc3": "^0.8.0"
}
}
11 changes: 11 additions & 0 deletions packages/actionflow/rollup.common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'rollup'

export default defineConfig({
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'esm'
},
external: ['tsyringe', 'rxjs'],
context: 'global'
})
8 changes: 3 additions & 5 deletions packages/actionflow/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { defineConfig } from 'rollup'
import { swc } from 'rollup-plugin-swc3'

import config from './rollup.common'

export default defineConfig({
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'esm'
},
...config,
plugins: [swc()]
})
9 changes: 9 additions & 0 deletions packages/actionflow/rollup.dts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'rollup'
import dts from 'rollup-plugin-dts'

import config from './rollup.common'

export default defineConfig({
...config,
plugins: [dts()]
})
3 changes: 3 additions & 0 deletions packages/actionflow/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const test = 123

export { test }
11 changes: 6 additions & 5 deletions packages/actionflow/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"compilerOptions": {
"target": "es2022",
"target": "ES2022",
"module": "ESNext",
"skipLibCheck": true,
"lib": ["DOM", "ESNEXT"],
"moduleResolution": "node",
"lib": ["ESNEXT","DOM"],
"moduleResolution": "Node",
"declaration": true,
"esModuleInterop": true,
"strict": true,
"outDir": "dist",
"suppressImplicitAnyIndexErrors": true,
"baseUrl": ".",
"paths": { "@/*": ["./src/*"] }
"paths": { "@/*": ["./src/*"] },
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"include": ["src"]
}
6 changes: 4 additions & 2 deletions packages/storex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Keep the type of storage value unchanged and change array and object directly. Supports listening to changes and setting expires.",
"author": "Wendao",
"license": "MIT",
"homepage": "https://github.com/YaoApp/storex",
"homepage": "https://github.com/YaoApp/xgen/packages/storex",
"keywords": [
"localStorage",
"sessionStorage",
Expand All @@ -18,7 +18,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/YaoApp/storex.git"
"url": "git+https://github.com/YaoApp/xgen.git"
},
"type": "module",
"source": "src/index.ts",
Expand All @@ -27,6 +27,7 @@
"scripts": {
"dev": "rollup --c rollup.config.ts --configPlugin swc3 -w",
"build": "rollup --c rollup.config.ts --configPlugin swc3",
"dts": "rollup --c rollup.dts.ts --configPlugin swc3",
"test": "jest --runInBand"
},
"devDependencies": {
Expand All @@ -35,6 +36,7 @@
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
"rollup": "^3.2.5",
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-swc3": "^0.8.0",
"ts-jest": "^29.0.3"
}
Expand Down
9 changes: 9 additions & 0 deletions packages/storex/rollup.common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'rollup'

export default defineConfig({
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'esm'
}
})
8 changes: 3 additions & 5 deletions packages/storex/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { defineConfig } from 'rollup'
import { swc } from 'rollup-plugin-swc3'

import config from './rollup.common'

export default defineConfig({
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'esm'
},
...config,
plugins: [swc()]
})
9 changes: 9 additions & 0 deletions packages/storex/rollup.dts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'rollup'
import dts from 'rollup-plugin-dts'

import config from './rollup.common'

export default defineConfig({
...config,
plugins: [dts()]
})
167 changes: 84 additions & 83 deletions packages/xgen/package.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,85 @@
{
"name": "xgen",
"version": "1.1.3",
"author": "Wendao",
"description": "10x productive management system lib for Yao",
"private": false,
"license": "Apache-2.0",
"homepage": "https://yaoapps.com",
"repository": {
"type": "git",
"url": "https://github.com/YaoApp/xgen"
},
"workspaces": [
"packages/*"
],
"scripts": {
"postinstall": "max setup",
"dev": "max dev",
"build": "pnpm run build:theme && max build && pnpm run build:after",
"build:theme": "tsx ./build/theme.ts",
"build:after": "tsx ./build/after.ts"
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@matrixage/atom.css": "^2.0.1",
"@umijs/max": "^4.0.36",
"ahooks": "^3.7.2",
"antd": "4.24.3",
"await-to-js": "^3.0.0",
"axios": "^0.27.2",
"clsx": "^1.2.1",
"echarts": "^5.3.3",
"eventemitter3": "^4.0.7",
"fast-equals": "^3.0.2",
"framer-motion": "^7.3.5",
"lodash-es": "^4.17.21",
"mobx": "^6.6.2",
"mobx-react-lite": "^3.4.0",
"moment": "^2.29.4",
"mustache": "^4.2.0",
"nanoid": "^4.0.0",
"phosphor-react": "^1.4.1",
"query-string": "^7.1.1",
"react": "^18.2.0",
"react-activation": "^0.12.2",
"react-color-palette": "^6.2.0",
"react-countup": "^6.3.1",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-helmet-async": "^1.3.0",
"react-if": "^4.1.4",
"react-nice-avatar": "^1.2.4",
"react-shadow": "^19.0.3",
"react-slick": "^0.29.0",
"react-sortablejs": "^6.1.4",
"reflect-metadata": "^0.1.13",
"sortablejs": "^1.15.0",
"store2": "^2.14.2",
"tslib": "^2.4.0",
"tsyringe": "^4.7.0",
"url-pattern": "^1.0.3"
},
"devDependencies": {
"@types/less": "^3.0.3",
"@types/lodash-es": "^4.17.6",
"@types/mustache": "^4.2.1",
"@types/node": "^18.7.18",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react-slick": "^0.23.10",
"@types/sortablejs": "^1.15.0",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"dotenv": "^16.0.2",
"less": "^4.1.3",
"less-loader": "^11.1.0",
"less-vars-to-js": "^1.3.0",
"raw-loader": "^4.0.2",
"tsx": "^3.9.0",
"typescript": "^4.9.3",
"utility-types": "^3.10.0",
"webpack-chain": "^6.5.1",
"@swc/core": "^1.2.165"
}
}
"name": "xgen",
"version": "1.1.3",
"author": "Wendao",
"description": "10x productive low-code dashboard of Yao.",
"private": false,
"license": "Apache-2.0",
"homepage": "https://yaoapps.com",
"repository": {
"type": "git",
"url": "https://github.com/YaoApp/xgen"
},
"workspaces": [
"packages/*"
],
"scripts": {
"postinstall": "max setup",
"dev": "max dev",
"build": "pnpm run build:theme && max build && pnpm run build:after",
"build:theme": "tsx ./build/theme.ts",
"build:after": "tsx ./build/after.ts"
},
"dependencies": {
"@yaoapp/actionflow": "*",
"@ant-design/icons": "^4.8.0",
"@matrixage/atom.css": "^2.0.1",
"@umijs/max": "^4.0.36",
"ahooks": "^3.7.2",
"antd": "4.24.3",
"await-to-js": "^3.0.0",
"axios": "^0.27.2",
"clsx": "^1.2.1",
"echarts": "^5.4.1",
"eventemitter3": "^4.0.7",
"fast-equals": "^3.0.3",
"framer-motion": "^7.8.0",
"lodash-es": "^4.17.21",
"mobx": "^6.7.0",
"mobx-react-lite": "^3.4.0",
"moment": "^2.29.4",
"mustache": "^4.2.0",
"nanoid": "^4.0.0",
"phosphor-react": "^1.4.1",
"query-string": "^7.1.3",
"react": "^18.2.0",
"react-activation": "^0.12.2",
"react-color-palette": "^6.2.0",
"react-countup": "^6.4.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-helmet-async": "^1.3.0",
"react-if": "^4.1.4",
"react-nice-avatar": "^1.3.0",
"react-shadow": "^19.0.3",
"react-slick": "^0.29.0",
"react-sortablejs": "^6.1.4",
"reflect-metadata": "^0.1.13",
"sortablejs": "^1.15.0",
"store2": "^2.14.2",
"tslib": "^2.4.1",
"tsyringe": "^4.7.0",
"url-pattern": "^1.0.3"
},
"devDependencies": {
"@swc/core": "^1.3.22",
"@types/less": "^3.0.3",
"@types/lodash-es": "^4.17.6",
"@types/mustache": "^4.2.2",
"@types/node": "^18.11.15",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/react-slick": "^0.23.10",
"@types/sortablejs": "^1.15.0",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"dotenv": "^16.0.3",
"less": "^4.1.3",
"less-loader": "^11.1.0",
"less-vars-to-js": "^1.3.0",
"raw-loader": "^4.0.2",
"tsx": "^3.12.1",
"typescript": "^4.9.4",
"utility-types": "^3.10.0",
"webpack-chain": "^6.5.1"
}
}
Loading

0 comments on commit ce43670

Please sign in to comment.