Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Grafoo Next #108

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
46dae5b
general refactoring
malbernaz Sep 28, 2021
9336493
Refactor typing system
malbernaz Oct 3, 2021
f8c902e
Refactor typing system
malbernaz Oct 3, 2021
de3c5a1
complete react module refactored
malbernaz Oct 5, 2021
ee5821c
remove packages to be deprecated
malbernaz Oct 5, 2021
d565455
updates
malbernaz Oct 5, 2021
63a5263
udpate
malbernaz Oct 5, 2021
d0ba7c3
rename types; change write signature
malbernaz Oct 9, 2021
8a4d0d5
babel plugin refactor in typescript; new client resolver
malbernaz Oct 15, 2021
f0b26f3
store values logic implemented
malbernaz Oct 16, 2021
48bdcea
resolve values logic implemented
malbernaz Oct 19, 2021
39986c5
core working with new engine implementation
malbernaz Oct 19, 2021
da7831e
all green
malbernaz Oct 20, 2021
51a7ea4
move compile logic to it's own package
malbernaz Oct 21, 2021
df61cc2
help ci
malbernaz Oct 21, 2021
4792e81
ci didn't work
malbernaz Oct 21, 2021
3a1afa1
chore(release): publish v1.4.2-next.0
malbernaz Oct 21, 2021
c07ca32
fix
malbernaz Oct 22, 2021
21d3d8b
chore(release): publish v1.4.3-next.0
malbernaz Oct 22, 2021
c8e3f32
remove redundant tests
malbernaz Oct 23, 2021
bd3d35c
remove unused deps
malbernaz Oct 23, 2021
65e68d8
clean dependencies
malbernaz Oct 23, 2021
dcf0c40
update circleci image
malbernaz Oct 23, 2021
3629b74
update build script
malbernaz Oct 23, 2021
fe081fe
fix build
malbernaz Oct 23, 2021
4d7cd5b
update gitignore
malbernaz Oct 23, 2021
ba5a524
replace bundler
malbernaz Oct 25, 2021
b0072d2
chore(release): publish v1.4.4-next.0
malbernaz Oct 25, 2021
50f488d
updates
malbernaz Oct 25, 2021
b69a393
chore(release): publish v1.4.5-next.0
malbernaz Oct 25, 2021
18dfa1b
Tons of tests
malbernaz Nov 12, 2021
d041cb1
New tests; Separate Compiler from babel plugin; babel macro
malbernaz Nov 19, 2021
ef5d941
Fix tests on core and bindings
malbernaz Nov 22, 2021
09bf664
adds explicit type to createBindings
malbernaz Nov 22, 2021
bfdc254
fix all tests
malbernaz Nov 23, 2021
7b5fac0
updates
malbernaz Nov 23, 2021
67f1256
updates
malbernaz Nov 23, 2021
ec437eb
fix build
malbernaz Nov 23, 2021
2edb06f
adds tests for macro and rollup plugin
malbernaz Dec 2, 2021
6955e80
fix tests
malbernaz Dec 2, 2021
f81a9e8
remove deeppartial type from mutations
malbernaz Dec 2, 2021
a54ce6e
move first load to bindings
malbernaz Dec 2, 2021
6055cb4
rename core functions
malbernaz Dec 2, 2021
537c277
updates
malbernaz Dec 2, 2021
09381e6
updates
malbernaz Dec 2, 2021
8f01c1b
change core api to receive transport as option
malbernaz Dec 2, 2021
a4f8cb7
refactor core
malbernaz Dec 2, 2021
65ad516
includes load method to bindings and react change skip name to lazy
malbernaz Dec 3, 2021
c1cba8e
make load return query response; make all exports named
malbernaz Dec 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: cimg/node:14.15.1
- image: cimg/node:16.12.0

steps:
- checkout
Expand Down
123 changes: 53 additions & 70 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -16,11 +21,12 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand All @@ -36,15 +42,24 @@ build/Release
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -56,83 +71,51 @@ typings/

# dotenv environment variables file
.env
.env.test
.env.production

# next.js build output
.next
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history
# Next.js build output
.next
out

# Output of 'npm pack'
*.tgz
# Nuxt.js build / generate output
.nuxt
dist

# Yarn Integrity file
.yarn-integrity
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# dotenv environment variables file
.env
# vuepress build output
.vuepress/dist

# next.js build output
.next
# Serverless directories
.serverless/

# vscode
.vscode
# FuseBox cache
.fusebox/

# output directories
dist/
# DynamoDB Local files
.dynamodb/

# Typescript
.rpt2_cache
# TernJS port file
.tern-port

# temp folder
temp
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# mac
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# macos
.DS_store
6 changes: 4 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"packages": ["packages/*"],
"packages": [
"packages/*"
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "1.4.1",
"version": "1.4.5-next.0",
"command": {
"publish": {
"message": "chore(release): publish %s",
Expand Down
61 changes: 27 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
"trailingComma": "none"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
Expand All @@ -46,7 +41,6 @@
}
},
"plugins": [
"@typescript-eslint",
"prefer-let"
],
"env": {
Expand All @@ -58,53 +52,52 @@
},
"rules": {
"prefer-const": 0,
"prefer-let/prefer-let": 2,
"@typescript-eslint/ban-ts-comment": 1,
"@typescript-eslint/no-empty-function": 1
"prefer-let/prefer-let": 2
},
"ignorePatterns": [
"packages/bundle",
"scripts"
]
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"@babel/register": "^7.0.0",
"@graphql-tools/schema": "^8.2.0",
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/parser": "^7.16.3",
"@babel/plugin-transform-modules-commonjs": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/register": "^7.16.0",
"@graphql-tools/schema": "^8.3.1",
"@testing-library/react-hooks": "^7.0.2",
"@types/crypto-js": "^4.0.2",
"@types/jest": "^27.0.2",
"@types/node": "^16.10.1",
"@types/react": "^17.0.24",
"@types/react-test-renderer": "^17.0.1",
"@types/node": "^16.11.7",
"@types/react": "^17.0.34",
"@types/uuid": "^8.3.1",
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"@typescript-eslint/parser": "^5.3.1",
"babel-jest": "^27.3.1",
"babel-plugin-jsx-pragmatic": "^1.0.2",
"babel-plugin-tester": "^10.0.0",
"casual": "^1.5.19",
"codecov": "^3.2.0",
"eslint": "^7.15.0",
"eslint-plugin-prefer-let": "^1.1.0",
"eslint": "^8.1.0",
"eslint-plugin-prefer-let": "^3.0.1",
"fetch-mock": "^9.11.0",
"graphql": "^15.4.0",
"husky": "^7.0.2",
"jest": "^27.2.2",
"graphql": "^15.6.1",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lerna": "^4.0.0",
"lint-staged": "^11.1.2",
"lint-staged": "^11.2.6",
"lowdb": "^3.0.0",
"node-fetch": "^3.0.0",
"preact": "^8.3.0",
"preact-render-spy": "^1.3.0",
"microbundle": "^0.14.1",
"node-fetch": "^3.1.0",
"prettier": "^2.2.1",
"react": "^16.8.2",
"react-test-renderer": "^16.8.2",
"resolve.exports": "^1.0.2",
"react": "^17.0.2",
"react-test-renderer": "^17.0.2",
"rimraf": "^3.0.2",
"typescript": "^4.1.2",
"typescript": "^4.4.4",
"uuid": "^8.3.2"
}
}
3 changes: 0 additions & 3 deletions packages/babel-plugin/.babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/babel-plugin/.grafoorc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"schema": "schema.graphql",
"idFields": ["id", "__typename"],
"compress": true
}
Loading