Skip to content

Commit

Permalink
refactor: 抽离webpack5-runner 测试到 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzejia authored and liuzejia committed May 27, 2024
1 parent d71d46f commit 5b9772f
Show file tree
Hide file tree
Showing 257 changed files with 3,092 additions and 1,326 deletions.
4 changes: 2 additions & 2 deletions packages/taro-plugin-solid/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tarojs/plugin-framework-react",
"name": "@tarojs/plugin-framework-solid",
"version": "4.0.0-alpha.4",
"description": "React/Preact/Nerv 框架插件",
"description": "Solid 框架插件",
"author": "O2Team",
"homepage": "https://github.com/nervjs/taro",
"license": "MIT",
Expand Down
23 changes: 2 additions & 21 deletions packages/taro-webpack5-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"build": "pnpm run clean && pnpm run prod",
"dev": "pnpm run mv:comp && tsc -w",
"mv:comp": "node ./mv-comp.js",
"clean": "rimraf --impl=move-remove dist",
"test": "cross-env NODE_ENV=jest jest",
"test:ci": "cross-env NODE_ENV=jest jest --ci -i --coverage --silent",
"test:dev": "cross-env NODE_ENV=jest jest --watch",
"test:coverage": "cross-env NODE_ENV=jest jest --coverage",
"updateSnapshot": "cross-env NODE_ENV=jest jest --ci -i -u"
"clean": "rimraf --impl=move-remove dist"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -84,29 +79,15 @@
"webpack-virtual-modules": "^0.6.1"
},
"devDependencies": {
"@tarojs/runtime": "workspace:*",
"@babel/core": "^7.24.4",
"@tarojs/plugin-framework-react": "workspace:*",
"@tarojs/plugin-framework-vue3": "workspace:*",
"@tarojs/plugin-platform-alipay": "workspace:*",
"@tarojs/plugin-platform-jd": "workspace:*",
"@tarojs/plugin-platform-qq": "workspace:*",
"@tarojs/plugin-platform-swan": "workspace:*",
"@tarojs/plugin-platform-tt": "workspace:*",
"@tarojs/plugin-platform-weapp": "workspace:*",
"@tarojs/taro": "workspace:*",
"@types/detect-port": "^1.3.5 ",
"@types/sax": "^1.2.4",
"babel-preset-taro": "workspace:*",
"less": "^4.2.0",
"sass": "^1.75.0",
"stylus": "^0.63.0",
"globby": "^12.0.2",
"jest-transform-css": "^6.0.1",
"memfs": "^4.9.1",
"webpack": "5.91.0",
"webpack-merge": "^5.10.0",
"react": "^18.2.0"
"webpack": "5.91.0"
},
"peerDependencies": {
"@tarojs/runtime": "workspace:*",
Expand Down

This file was deleted.

128 changes: 76 additions & 52 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
packages:
- 'packages/**'
- 'tests'
- '!packages/taro-cli/templates/**'
- '!**/__tests__/**'
- '!**/dist/**'
Expand Down
12 changes: 0 additions & 12 deletions test/package.json

This file was deleted.

3 changes: 3 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@tarojs/tests`

把之前在 `@tarojs/webpack5-runner` 的测试迁移到此,作为整个 taro 项目的流程测试
Loading

0 comments on commit 5b9772f

Please sign in to comment.