Skip to content

Commit

Permalink
Merge pull request #361 from nogic1008/build/monorepo-vue3
Browse files Browse the repository at this point in the history
build: migrate to monorepo (for vue-jest@5)
  • Loading branch information
lmiller1990 authored Jun 21, 2021
2 parents c590d2e + c42dc7d commit f10563a
Show file tree
Hide file tree
Showing 90 changed files with 293 additions and 199 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "babel-in-package",
"name": "vue3-babel-in-package",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -17,7 +16,8 @@
"coffeescript": "^2.3.2",
"jest": "^26.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
"typescript": "^4.1.2",
"vue3-jest": "^26.0.0-alpha.10"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -27,7 +27,7 @@
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib/index.js"
"^.+\\.vue$": "vue3-jest"
}
},
"babel": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "basic",
"name": "vue3-basic",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -24,6 +23,7 @@
"ts-jest": "^26.4.4",
"typescript": "^4.1.2",
"vue-class-component": "^8.0.0-beta.4",
"vue3-jest": "^26.0.0-alpha.10",
"vue-property-decorator": "^10.0.0-rc.3"
},
"jest": {
Expand All @@ -36,7 +36,7 @@
"transform": {
"^.+\\.ts$": "ts-jest",
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib/index.js"
"^.+\\.vue$": "vue3-jest"
},
"moduleNameMapper": {
"^~?__styles/(.*)$": "<rootDir>/components/styles/$1"
Expand Down
2 changes: 1 addition & 1 deletion e2e/__projects__/basic/test.js → e2e/3.x/basic/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ClassComponent from './components/ClassComponent.vue'
import ClassComponentWithMixin from './components/ClassComponentWithMixin.vue'
import ClassComponentProperty from './components/ClassComponentProperty.vue'
import TypeScript from './components/TypeScript.vue'
import jestVue from '../../../'
import jestVue from 'vue3-jest'
import RenderFunction from './components/RenderFunction.vue'
import FunctionalSFC from './components/FunctionalSFC.vue'
import CoffeeScript from './components/CoffeeScript.vue'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "custom-transformers",
"name": "vue3-custom-transformers",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -19,7 +18,8 @@
"jest": "^26.0.0",
"postcss": "^7.0.13",
"postcss-color-function": "^4.0.1",
"sass": "^1.23.7"
"sass": "^1.23.7",
"vue3-jest": "^26.0.0-alpha.10"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -29,7 +29,7 @@
],
"transform": {
"^.+\\.js$": "./babel-transformer.js",
"^.+\\.vue$": "../../../lib"
"^.+\\.vue$": "vue3-jest"
},
"moduleNameMapper": {
"^~?__styles/(.*)$": "<rootDir>/components/styles/$1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "javascript",
"name": "vue3-javascript",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -14,7 +13,8 @@
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"coffeescript": "^2.3.2",
"jest": "^26.0.0"
"jest": "^26.0.0",
"vue3-jest": "^26.0.0-alpha.10"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -24,7 +24,7 @@
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib/index.js"
"^.+\\.vue$": "vue3-jest"
}
},
"babel": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "style",
"name": "vue3-style",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -19,7 +18,8 @@
"less": "^3.9.0",
"postcss": "^7.0.13",
"sass": "^1.23.7",
"stylus": "^0.54.5"
"stylus": "^0.54.5",
"vue3-jest": "^26.0.0-alpha.10"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -29,7 +29,7 @@
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib"
"^.+\\.vue$": "vue3-jest"
},
"moduleNameMapper": {
"^~?__styles/(.*)$": "<rootDir>/components/styles/$1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "typescript",
"name": "vue3-typescript",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -16,7 +15,8 @@
"@babel/preset-env": "^7.9.0",
"jest": "^26.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
"typescript": "^4.1.2",
"vue3-jest": "^26.0.0-alpha.10"
},
"jest": {
"globals": {
Expand All @@ -31,7 +31,7 @@
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib/index.js"
"^.+\\.vue$": "vue3-jest"
}
},
"babel": {
Expand Down
File renamed without changes.
84 changes: 0 additions & 84 deletions e2e/test-runner.js

This file was deleted.

91 changes: 17 additions & 74 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,24 @@
{
"name": "vue-jest",
"version": "5.0.0-alpha.10",
"description": "Jest Vue transform",
"main": "lib/index.js",
"files": [
"lib"
],
"keywords": [
"jest",
"vue",
"jest vue",
"jest vue transform",
"jest vue preprocessor",
"vue jest",
"vue jest",
"vue jest transform",
"vue jest preprocessor"
],
"name": "vue-jest-monorepo",
"private": true,
"engines": {
"node": ">=10",
"yarn": "^1.17.3"
},
"workspaces": {
"packages": [
"packages/*",
"e2e/**"
]
},
"scripts": {
"format": "prettier --no-semi --single-quote --write '**/*.{js,json,md}'",
"format:check": "prettier --no-semi --single-quote --check '**/*.{js,json,md}'",
"lint": "eslint --ignore-path .gitignore '{,!(node_modules)/**/}*.js'",
"format": "prettier --no-semi --single-quote --write \"**/*.{js,json,md}\"",
"format:check": "prettier --no-semi --single-quote --check \"**/*.{js,json,md}\"",
"lint": "eslint --ignore-path .gitignore \"{,!(node_modules)/**/}*.js\"",
"lint:fix": "yarn lint --fix",
"release": "semantic-release",
"test": "yarn lint && yarn format:check && yarn test:e2e",
"test:e2e": "node e2e/test-runner"
"test": "yarn lint && yarn format:check && yarn workspaces run test"
},
"author": "Edd Yerburgh",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/compiler-sfc": "^3.0.3",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.0.0",
"coffeescript": "^2.3.2",
"conventional-changelog": "^1.1.5",
"eslint": "^5.12.0",
"eslint-config-prettier": "^3.3.0",
"eslint-config-standard": "^12.0.0",
Expand All @@ -44,49 +27,9 @@
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^5.1.0",
"fs-extra": "^7.0.1",
"hamljs": "^0.6.2",
"husky": "^1.1.4",
"jade": "^1.11.0",
"jest": "^26.0.0",
"less": "^3.9.0",
"lint-staged": "^8.0.5",
"prettier": "^1.16.1",
"pug": "^2.0.3",
"sass": "^1.23.7",
"semantic-release": "^15.13.2",
"stylus": "^0.54.5",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2",
"vue": "^3.0.3"
},
"peerDependencies": {
"@babel/core": "7.x",
"babel-jest": ">= 24 < 27",
"jest": ">= 24 < 27 ",
"ts-jest": ">= 24 < 27 ",
"typescript": ">= 3.x",
"vue": "^3.0.0-0"
},
"peerDependenciesMeta": {
"ts-jest": {
"optional": true
},
"typescript": {
"optional": true
}
},
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"chalk": "^2.1.0",
"convert-source-map": "^1.6.0",
"extract-from-css": "^0.4.4",
"source-map": "0.5.6",
"tsconfig": "^7.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue-jest.git"
"prettier": "^1.16.1"
},
"husky": {
"hooks": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f10563a

Please sign in to comment.