Skip to content

Commit 5b9772f

Browse files
liuzejialiuzejia
authored andcommitted
refactor: 抽离webpack5-runner 测试到 tests
1 parent d71d46f commit 5b9772f

File tree

257 files changed

+3092
-1326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+3092
-1326
lines changed

packages/taro-plugin-solid/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@tarojs/plugin-framework-react",
2+
"name": "@tarojs/plugin-framework-solid",
33
"version": "4.0.0-alpha.4",
4-
"description": "React/Preact/Nerv 框架插件",
4+
"description": "Solid 框架插件",
55
"author": "O2Team",
66
"homepage": "https://github.com/nervjs/taro",
77
"license": "MIT",

packages/taro-webpack5-runner/package.json

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
"build": "pnpm run clean && pnpm run prod",
1111
"dev": "pnpm run mv:comp && tsc -w",
1212
"mv:comp": "node ./mv-comp.js",
13-
"clean": "rimraf --impl=move-remove dist",
14-
"test": "cross-env NODE_ENV=jest jest",
15-
"test:ci": "cross-env NODE_ENV=jest jest --ci -i --coverage --silent",
16-
"test:dev": "cross-env NODE_ENV=jest jest --watch",
17-
"test:coverage": "cross-env NODE_ENV=jest jest --coverage",
18-
"updateSnapshot": "cross-env NODE_ENV=jest jest --ci -i -u"
13+
"clean": "rimraf --impl=move-remove dist"
1914
},
2015
"repository": {
2116
"type": "git",
@@ -84,29 +79,15 @@
8479
"webpack-virtual-modules": "^0.6.1"
8580
},
8681
"devDependencies": {
87-
"@tarojs/runtime": "workspace:*",
8882
"@babel/core": "^7.24.4",
89-
"@tarojs/plugin-framework-react": "workspace:*",
90-
"@tarojs/plugin-framework-vue3": "workspace:*",
91-
"@tarojs/plugin-platform-alipay": "workspace:*",
92-
"@tarojs/plugin-platform-jd": "workspace:*",
93-
"@tarojs/plugin-platform-qq": "workspace:*",
94-
"@tarojs/plugin-platform-swan": "workspace:*",
95-
"@tarojs/plugin-platform-tt": "workspace:*",
96-
"@tarojs/plugin-platform-weapp": "workspace:*",
9783
"@tarojs/taro": "workspace:*",
9884
"@types/detect-port": "^1.3.5 ",
9985
"@types/sax": "^1.2.4",
100-
"babel-preset-taro": "workspace:*",
10186
"less": "^4.2.0",
10287
"sass": "^1.75.0",
10388
"stylus": "^0.63.0",
104-
"globby": "^12.0.2",
10589
"jest-transform-css": "^6.0.1",
106-
"memfs": "^4.9.1",
107-
"webpack": "5.91.0",
108-
"webpack-merge": "^5.10.0",
109-
"react": "^18.2.0"
90+
"webpack": "5.91.0"
11091
},
11192
"peerDependencies": {
11293
"@tarojs/runtime": "workspace:*",

packages/taro-webpack5-runner/src/__tests__/fixtures/wx-hybrid/babel.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 76 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
packages:
22
- 'packages/**'
3+
- 'tests'
34
- '!packages/taro-cli/templates/**'
45
- '!**/__tests__/**'
56
- '!**/dist/**'

test/package.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@tarojs/tests`
2+
3+
把之前在 `@tarojs/webpack5-runner` 的测试迁移到此,作为整个 taro 项目的流程测试

0 commit comments

Comments
 (0)