Skip to content

Commit

Permalink
chore: add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone committed May 1, 2020
1 parent 30f29ff commit dbd8e78
Show file tree
Hide file tree
Showing 11 changed files with 4,354 additions and 1,508 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ lib-es
dist
lib
node_modules
.DS_Store
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
node_js:
- "12"
cache:
yarn: true
directories:
- "node_modules"

before_script:
- yarn run lerna run prepublish
script:
- yarn test
# deploy:
# provider: script
# script: "yarn run lerna:publish"
# skip_cleanup: true
# on:
# node: "10"
# branch: release
7 changes: 3 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"packages": [
"packages/*"
],
"version": "0.0.0"
"packages": ["packages/*"],
"version": "0.0.0",
"npmClient": "yarn"
}
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"@nexus/schema": "~0.13.1",
"@prisma/cli": "^2.0.0-beta.4",
"@prisma/client": "^2.0.0-beta.4",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.4",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"babel-jest": "^25.4.0",
Expand All @@ -15,15 +19,25 @@
"graphql": "~15.0.0",
"jest": "^25.4.0",
"jest-matcher-utils": "^25.4.0",
"@nexus/schema": "~0.13.1",
"lerna": "^3.20.2",
"lodash": "^4.17.15",
"nexus": "^0.12.0",
"nexus-prisma": "^0.12.0",
"path": "^0.12.7",
"pluralize": "~7.0.0",
"lodash": "^4.17.15"
"react": "~16.12.0",
"react-admin": "^3.4.3",
"react-dom": "~16.13.1",
"rimraf": "^3.0.2",
"ts-node": "^8.9.1",
"typescript": "^3.8.3"
},
"scripts": {
"clean": "lerna run clean --stream --parallel",
"build": "lerna run build --stream --parallel",
"lint:eslint": "eslint './**/*.ts'",
"test": "jest"
"test": "jest",
"postinstall": "lerna bootstrap"
},
"dependencies": {
"dummy-tag": "^1.0.1"
Expand Down
5 changes: 0 additions & 5 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"build:cjs": "rimraf ./lib && tsc --project tsconfig.json --outDir lib --module commonjs",
"build:es": "rimraf ./lib-es && tsc --project tsconfig.json"
},
"devDependencies": {
"nexus": "^0.12.0",
"rimraf": "^3.0.2",
"typescript": "^3.8.3"
},
"dependencies": {
"lodash": "^4.17.15",
"pluralize": "^7.0.0"
Expand Down
105 changes: 4 additions & 101 deletions packages/backend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,109 +2,12 @@
# yarn lockfile v1


balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=

brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
dependencies:
balanced-match "^1.0.0"
concat-map "0.0.1"

[email protected]:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=

fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=

glob@^7.1.3:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.4"
once "^1.3.0"
path-is-absolute "^1.0.0"

inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
dependencies:
once "^1.3.0"
wrappy "1"

inherits@2:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==

iterall@^1.2.2:
version "1.3.0"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea"
integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==

lodash@^4.17.15:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==

minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
dependencies:
brace-expansion "^1.1.7"

nexus@^0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/nexus/-/nexus-0.12.0.tgz#999d979844b5f8654265dfdce5683b3960f76c49"
integrity sha512-oH+z1wb2B4M/t67wSc/yEKYszyo9qXam+bQ05avSReu1LbNYTWLzuVjIwXD/MNOpdNqqAPLWvMhkA5gwaIxhSQ==
dependencies:
iterall "^1.2.2"
tslib "^1.9.3"

once@^1.3.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
dependencies:
wrappy "1"

path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=

rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
dependencies:
glob "^7.1.3"

tslib@^1.9.3:
version "1.11.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35"
integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==

typescript@^3.8.3:
version "3.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==

wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
pluralize@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"
integrity sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==
23 changes: 6 additions & 17 deletions packages/dataprovider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,21 @@
"build": "yarn build:cjs && yarn build:es",
"build:cjs": "rimraf ./lib && tsc --project tsconfig.json --outDir lib --module commonjs",
"build:es": "rimraf ./lib-es && tsc --project tsconfig.json",
"generate:test": "yarn generate:test:prisma && yarn generate:test:nexus",
"generate:test:prisma": "yarn prisma generate --schema test-data/datamodel.prisma",
"generate:test:nexus": "yarn ts-node --project test-data/tsconfig.json --transpile-only test-data/testSchema.ts"
"postinstall": "yarn generate:test",
"generate:test": "yarn generate:test:prisma",
"generate:test:prisma": "yarn prisma generate --schema test-data/datamodel.prisma"
},
"devDependencies": {
"@nexus/schema": "^0.13.1",
"@prisma/cli": "^2.0.0-beta.3",
"@types/node": "^13.13.4",
"nexus-prisma": "^0.12.0",
"path": "^0.12.7",
"react": "~16.12.0",
"react-admin": "^3.4.3",
"react-dom": "~16.13.1",
"rimraf": "^3.0.2",
"ts-node": "^8.9.1",
"typescript": "^3.8.3"
"@prisma/cli": "^2.0.0-beta.4"
},
"dependencies": {
"@prisma/client": "^2.0.0-beta.3",
"graphql": ">=14.0.0",
"lodash": "^4.17.15",
"pluralize": "^8.0.0",
"ra-data-graphql": "^3.2.2"
},
"peerDependencies": {
"react": "*",
"react-admin": "*"
"react-admin": "*",
"graphql": ">=14.0.0"
}
}
1 change: 0 additions & 1 deletion packages/dataprovider/src/testUtils/introspection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
IntrospectionField,
IntrospectionObjectType,
TypeKind,
IntrospectionType,
} from "graphql";
import { IntrospectionResult, Resource } from "../constants/interfaces";
Expand Down
15 changes: 3 additions & 12 deletions packages/dataprovider/test-data/testSchema.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import "../generated/nexus";
import "../generated/nexus-prisma";
import { makeSchema, objectType } from "@nexus/schema";
import { nexusPrismaPlugin } from "nexus-prisma";
import introspection from "ra-data-graphql/lib/introspection";
import { addCrudResolvers } from "../../backend/src";
import { join } from "path";
import { readFileSync } from "fs";
import {
print,
buildSchema,
graphql,
execute,
getIntrospectionQuery,
} from "graphql";
import { addCrudResolvers } from "../../backend/src";
import "../generated/nexus";
import "../generated/nexus-prisma";

const typegenPath = (p: string) => process.env.PWD && join(process.env.PWD, p);

Expand Down
Loading

0 comments on commit dbd8e78

Please sign in to comment.