Skip to content

Commit

Permalink
refactor: 重构 LogicFlow 项目结构,升级打包工具,使用 pnpm 做包管理工具
Browse files Browse the repository at this point in the history
  • Loading branch information
boyongjiong authored and boyongjiong committed Aug 7, 2024
1 parent f96f81c commit eac830b
Show file tree
Hide file tree
Showing 584 changed files with 17,157 additions and 70,358 deletions.
9 changes: 7 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# don't ever lint node_modules
node_modules

# don't lint build output (make sure it's set to your correct build folder name)
dist
*.min.js
es/**
lib/**
dist/**

# don't lint nyc coverage output
coverage
types
Expand All @@ -10,4 +15,4 @@ packages/core/types
packages/extension/src/bpmn-adapter/xml2json.ts
packages/extension/src/bpmn-adapter/json2xml.ts

**/*.d.ts
**/*.d.ts
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
73 changes: 0 additions & 73 deletions .eslintrc.js

This file was deleted.

35 changes: 21 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
.idea
# dependencies
node_modules
dist
coverage
types/*
types
*.DS_Store

# production
lib
!packages/mvp/lib
cjs
esm
es
site-build
dist
output

coverage
types/**

# misc
.DS_Store
.pnpm-*.log
.idea
.turbo
npm-debug.log
yarn-error.log

/.github_token
/TMP_CHANGELOG.md
/.openai_token
/.github_account

logic-flow-docs.tar.gz
*.log
*/.eslintcache
.eslintcache
~*
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=false
registry=https://registry.npmmirror.com/
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Ignore artifacts:
*.sh
*.yml
*.yaml
*.svg
*.gif
*.log
*.md

.next
.DS_Store
CNAME
AUTHORS
LICENSE
LICENSE

node_modules
es/
lib/
dist/
public/
16 changes: 12 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"semi": true,
"trailingComma": "all"
}
"printWidth": 80,
"trailingComma": "all",
"proseWrap": "never",
"endOfLine": "auto",
"useTabs": false,
"overrides": [
{ "files": ".eslintrc", "options": { "parser": "json" } },
{ "files": ".prettierrc", "options": { "parser": "json" } },
{ "files": ".stylelintrc", "options": { "parser": "json" } }
]
}
23 changes: 23 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-rational-order",
"stylelint-config-prettier"
],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-less",
"rules": {
"block-no-empty": null,
"function-name-case": "lower",
"comment-empty-line-before": null,
"no-invalid-double-slash-comments": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"no-duplicate-selectors": null,
"value-no-vendor-prefix": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"keyframes-name-pattern": null,
"number-max-precision": null
}
}
24 changes: 0 additions & 24 deletions babel.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h",
"pragmaFrag": "Fragment"
}
]
]
}
10 changes: 0 additions & 10 deletions dev.sh

This file was deleted.

99 changes: 0 additions & 99 deletions docs/.vuepress/components/example.vue

This file was deleted.

Loading

0 comments on commit eac830b

Please sign in to comment.