Skip to content

Commit de293a3

Browse files
committed
test: build dependencies before build the testing bundle
1 parent 7edafcd commit de293a3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/babel-plugin-transform-vue-jsx/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"scripts": {
1515
"pretest:snapshot": "yarn build:test",
1616
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js",
17-
"pretest:functional": "yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js --out-file test/functional-compiled.js",
17+
"build:dependency": "cd ../babel-helper-vue-jsx-merge-props && yarn build",
18+
"pretest:functional": "yarn build:dependency && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js --out-file test/functional-compiled.js",
1819
"test:functional": "ava -v test/functional-compiled.js",
1920
"build": "rollup -c",
2021
"build:test": "rollup -c rollup.config.testing.js",

packages/babel-sugar-v-model/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"scripts": {
1515
"pretest:snapshot": "yarn build:test",
1616
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js",
17-
"build:plugin": "cd ../babel-plugin-transform-vue-jsx && yarn build",
18-
"pretest:functional": "yarn build:plugin && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,../babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js",
17+
"build:dependency": "cd ../babel-plugin-transform-vue-jsx && yarn build",
18+
"pretest:functional": "yarn build:dependency && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,../babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js",
1919
"test:functional": "ava -v test/functional-compiled.js",
2020
"build": "rollup -c",
2121
"build:test": "rollup -c rollup.config.testing.js",

packages/babel-sugar-v-on/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"scripts": {
1515
"pretest:snapshot": "yarn build:test",
1616
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js",
17-
"build:plugin": "cd ../babel-plugin-transform-vue-jsx && yarn build",
18-
"pretest:functional": "yarn build:plugin && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,../babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js",
17+
"build:dependency": "cd ../babel-plugin-transform-vue-jsx && yarn build",
18+
"pretest:functional": "yarn build:dependency && yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,../babel-plugin-transform-vue-jsx/dist/plugin.js,@babel/plugin-transform-arrow-functions --out-file test/functional-compiled.js",
1919
"test:functional": "ava -v test/functional-compiled.js",
2020
"build": "rollup -c",
2121
"build:test": "rollup -c rollup.config.testing.js",

0 commit comments

Comments
 (0)