babel-blade

⛸️Solve the Double Declaration problem with inline GraphQL. Babel plugin/macro that works with any GraphQL client!

Github星跟蹤圖

Welcome! This project is STILL A WORK IN PROGRESS and not yet production ready - but I appreciate you trying this out and giving feedback!

Babel-Blade ⛸️

babel-blade is the collective name for the babel plugin/macro that helps to generate graphql query strings inline and solves the double declaration problem.

Check our new Docs site or view my 7 minute talk at React Boston for an explainer!

babel blade walkthrough on youtube

Seriously check out our ? our new Docs site ?

Have you heard that we have a new Docs site? It's in Docusaurus and it's great!


Obligatory Social Proof

"This is gonna be huge! Colocated graphql queries to the extreme, Completely autogenerated from your code. Super great dev experience & maintainable to the max. ? Use with whatever graphql client framework you want. ? "

"Just took a look at babel-blade. Oh man, does that reverse engineer your gql queries from your usages?????? ???"

"Fucking great"

"Super duper"


For developers of plugins/contributors

boilerplate

This monorepo was bootstrapped from babel-plugin-macro-boilerplate. Check it out if you want to make one!

if you spot something that could be a better practice, PLEASE open an issue or tell me I'm wrong!


For contributors/swyx

Guide to this repository

This is a monorepo managed by lerna. Let's go through the folder structure:

  • /docs: source markdown files for our Docusaurus docs
  • /website: the rest of the files (React, Site config, etc) for our Docusaurus docs
  • /packages/babel.macro: a very small/insignificant wrapper of babel-plugin-blade for hooking into babel-plugin-macros. Published as blade.macro.
  • /packages/babel-plugin-blade: the core of this repo, the secret sauce. Published as babel-plugin-blade. It has a separate README, go in there if interested to learn more about its inner workings. If you are just looking to use babel-plugin-blade you can just check out our new Docs site.

publishing check list

  1. npm run build on packages/babel-plugin-blade
  2. lerna publish

主要指標

概覽
名稱與所有者babel-blade/babel-blade
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2018-07-08 00:12:36
推送於2019-12-13 01:19:35
最后一次提交2019-12-13 02:19:33
發布數15
最新版本名稱v0.1.11 (發布於 2018-11-14 10:24:41)
第一版名稱v0.0.2 (發布於 2018-07-07 23:55:02)
用户参与
星數270
關注者數7
派生數8
提交數130
已啟用問題?
問題數23
打開的問題數2
拉請求數3
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?