refactor: mono-repo
This commit is contained in:
+14
-16
@@ -20,35 +20,33 @@ jobs:
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v3-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "tests/demo/yarn.lock" }}-{{ checksum "tests/ssr/yarn.lock" }}
|
||||
- v4-dependencies-{{ checksum "yarn.lock" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- v3-dependencies-
|
||||
- v4-dependencies-
|
||||
|
||||
- run: yarn install && cd tests/demo && yarn install && cd ../ssr && yarn install
|
||||
- run: yarn install
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
- tests/demo/node_modules
|
||||
- tests/ssr/node_modules
|
||||
- ~/.cache
|
||||
key: v3-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "tests/demo/yarn.lock" }}-{{ checksum "tests/ssr/yarn.lock" }}
|
||||
key: v4-dependencies-{{ checksum "yarn.lock" }}
|
||||
|
||||
# run tests!
|
||||
- run: yarn build
|
||||
- run: yarn test:eslint
|
||||
- run: yarn test:types
|
||||
- run: yarn test:unit
|
||||
- run: yarn test:e2e
|
||||
- run: yarn test:ssr
|
||||
- run: cd packages/vue-apollo && yarn build
|
||||
- run: cd packages/vue-apollo && yarn test:eslint
|
||||
- run: cd packages/vue-apollo && yarn test:types
|
||||
- run: cd packages/vue-apollo && yarn test:unit
|
||||
- run: cd packages/test-e2e yarn test:e2e
|
||||
- run: cd packages/test-ssr yarn test:e2e
|
||||
|
||||
- store_artifacts:
|
||||
path: tests/demo/tests/e2e/videos
|
||||
path: packages/test-e2e/tests/e2e/videos
|
||||
- store_artifacts:
|
||||
path: tests/demo/tests/e2e/screenshots
|
||||
path: packages/test-e2e/tests/e2e/screenshots
|
||||
- store_artifacts:
|
||||
path: tests/ssr/tests/e2e/videos
|
||||
path: packages/test-ssr/tests/e2e/videos
|
||||
- store_artifacts:
|
||||
path: tests/ssr/tests/e2e/screenshots
|
||||
path: packages/test-ssr/tests/e2e/screenshots
|
||||
|
||||
|
||||
|
||||
+6
-84
@@ -1,93 +1,15 @@
|
||||
{
|
||||
"name": "vue-apollo",
|
||||
"name": "vue-apollo-monorepo",
|
||||
"version": "3.0.0",
|
||||
"description": "Use Apollo and GraphQL with Vue.js",
|
||||
"main": "dist/vue-apollo.umd.js",
|
||||
"module": "dist/vue-apollo.esm.js",
|
||||
"unpkg": "dist/vue-apollo.min.js",
|
||||
"typings": "types/index.d.ts",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "yarn build:browser && yarn build:es && yarn build:umd",
|
||||
"build:browser": "rollup --config build/rollup.config.browser.js",
|
||||
"build:es": "rollup --config build/rollup.config.es.js",
|
||||
"build:umd": "rollup --config build/rollup.config.umd.js",
|
||||
"prepublishOnly": "yarn test && yarn build",
|
||||
"dev": "nodemon --exec 'yarn build:es && yarn build:umd' --watch src --watch lib",
|
||||
"test": "yarn build && yarn test:eslint && yarn test:types && yarn test:e2e && yarn test:ssr && yarn run test:unit",
|
||||
"test:eslint": "eslint --ext .js {src,ssr,lib,build}/**/*.js",
|
||||
"test:types": "tsc -p types/test",
|
||||
"test:e2e": "cd tests/demo && yarn test && cd ../../",
|
||||
"test:ssr": "cd tests/ssr && yarn test && cd ../../",
|
||||
"test:unit": "yarn run jest",
|
||||
"docs:dev": "vuepress dev docs",
|
||||
"docs:build": "vuepress build docs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Akryum/vue-apollo.git"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"apollo",
|
||||
"graphql"
|
||||
],
|
||||
"author": "Guillaume Chau <guillaume.b.chau@gmail.com>",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Akryum/vue-apollo/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Akryum/vue-apollo#readme",
|
||||
"peerDependencies": {
|
||||
"apollo-client": "^2.0.0",
|
||||
"apollo-link": "^1.0.0",
|
||||
"graphql-tag": "^2.10.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"chalk": "^2.4.2",
|
||||
"serialize-javascript": "^2.1.0",
|
||||
"throttle-debounce": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
||||
"@babel/plugin-transform-for-of": "^7.4.4",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@types/graphql": "^14.0.1",
|
||||
"@vue/test-utils": "^1.0.0-beta.25",
|
||||
"apollo-cache-inmemory": "^1.2.9",
|
||||
"apollo-client": "^2.4.1",
|
||||
"apollo-link": "^1.0.3",
|
||||
"apollo-link-http": "^1.2.0",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"cross-env": "^6.0.0",
|
||||
"eslint": "^6.3.0",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"eslint-plugin-node": "^10.0.0",
|
||||
"eslint-plugin-promise": "^4.0.1",
|
||||
"eslint-plugin-standard": "^4.0.0",
|
||||
"graphql": "^14.0.2",
|
||||
"graphql-tag": "^2.5.0",
|
||||
"jest": "^24.8.0",
|
||||
"nodemon": "^1.18.4",
|
||||
"rimraf": "^3.0.0",
|
||||
"rollup": "^1.21.2",
|
||||
"rollup-plugin-babel": "^4.0.2",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-replace": "^2.0.0",
|
||||
"rollup-plugin-uglify": "^6.0.0",
|
||||
"typescript": "^3.1.3",
|
||||
"uglify-es": "^3.1.6",
|
||||
"vue": "^2.5.16",
|
||||
"vue-property-decorator": "^8.2.2",
|
||||
"vuepress": "^0.14.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"js-yaml": "^3.13.1"
|
||||
},
|
||||
"jest": {
|
||||
"testRegex": "tests/unit/.*\\.test.js$"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "demo",
|
||||
"name": "vue-apollo-test-e2e",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ssr",
|
||||
"name": "vue-apollo-test-ssr",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user