Skip to content

Commit

Permalink
feat: add @nitrogql/jest-transformer (#49)
Browse files Browse the repository at this point in the history
* feat(jest-transform): initialize package

* feat: implement Jest transformer

* feat: implement jest transformer for GraphQL

* test: check config file loading

* docs(jest-transform): CommonJS usage

* ci: add npm publish workflow for jest-transform package

* tes:t run build before unit test

* ci: use project references

* ci: add build option to check also

* fix: tsconfig project reference

* test: fix jest.config.js

* fix: tsconfig

* test: give up tests for now
  • Loading branch information
uhyo authored Feb 18, 2024
1 parent 3e1d645 commit fc070d1
Show file tree
Hide file tree
Showing 17 changed files with 6,518 additions and 3,078 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,3 @@ jobs:
npm run generate
npm run build
working-directory: examples/vite


9 changes: 7 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ jobs:
package: "./packages/rollup-plugin/package.json"
access: public
greater-version-only: true
- name: publish to npm (jest-transform)
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./packages/jest-transform/package.json"
access: public
greater-version-only: true
deploy-vercel:
runs-on: ubuntu-latest
steps:
Expand All @@ -96,5 +103,3 @@ jobs:
VERCEL_URL: nitrogql.vercel.app
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}


4 changes: 2 additions & 2 deletions build/build-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cp target/wasm32-unknown-unknown/$TARGET_DIR/graphql-loader.opt.wasm packages/lo
current_version=$(npm pkg get version --json)
npm pkg set version=${current_version} --json --workspaces
npm pkg set dependencies.@nitrogql/esbuild-register=${current_version} --json -w @nitrogql/core
npm pkg set dependencies.@nitrogql/core=${current_version} --json -w @nitrogql/cli -w @nitrogql/rollup-plugin -w @nitrogql/graphql-loader
npm pkg set dependencies.@nitrogql/loader-core=${current_version} --json -w @nitrogql/rollup-plugin -w @nitrogql/graphql-loader
npm pkg set dependencies.@nitrogql/core=${current_version} --json -w @nitrogql/cli -w @nitrogql/rollup-plugin -w @nitrogql/graphql-loader -w @nitrogql/jest-transform
npm pkg set dependencies.@nitrogql/loader-core=${current_version} --json -w @nitrogql/rollup-plugin -w @nitrogql/graphql-loader -w @nitrogql/jest-transform
npm pkg set dependencies.@nitrogql/wasi-preview1=${current_version} --json -w @nitrogql/cli
npx prettier --write "./**/package.json"
Loading

0 comments on commit fc070d1

Please sign in to comment.