Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
feat: to monorepo with bun
BREAKING CHANGE: new bundler might cause different behavior
  • Loading branch information
Pyrax committed Jun 9, 2025
commit 0156de2d0409718217e46d5742fd0572f5892e1d
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

43 changes: 42 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# Dependencies
node_modules
.pnp
.pnp.js

# Testing
coverage

# Production
dist
build
packages/*/dist
packages/*/build

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.env

# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
bun-debug.log*
bun-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Astro
packages/docs/.astro
packages/docs/dist

# Logs
logs
*.log
Expand Down Expand Up @@ -38,7 +80,6 @@ bower_components
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
Expand Down
3,736 changes: 1,047 additions & 2,689 deletions bun.lock

Large diffs are not rendered by default.

72 changes: 12 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,20 @@
{
"name": "react-netlify-forms",
"version": "1.3.5",
"homepage": "https://pyrax.github.io/react-netlify-forms",
"bugs": {
"url": "https://github.com/pyrax/react-netlify-forms/issues"
},
"description": "React components and hooks giving you the power of Netlify Forms. Start building serverless forms on Netlify with React.",
"keywords": [
"react",
"netlify",
"forms",
"netlify-forms",
"react-netlify-form",
"react-netlify-forms"
"name": "react-netlify-forms-monorepo",
"private": true,
"workspaces": [
"packages/*"
],
"author": "Björn Clees <piranhadev@gmail.com> (https://github.com/pyrax/)",
"license": "MIT",
"repository": "Pyrax/react-netlify-forms",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"engines": {
"node": ">=10"
},
"scripts": {
"build": "microbundle-crl --no-compress --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"prepare": "bun run build",
"test": "bun run test:lint && bun run test:build",
"test:build": "bun run build",
"test:lint": "eslint .",
"docs:dev": "cd www && bun run dev",
"docs:build": "cd www && bun run build",
"docs:preview": "cd www && bun run preview",
"prepare-deploy": "cd www && bun install && bun run clean && cp ../README.md README.md && cp ../LICENSE.md LICENSE.md",
"predeploy:default": "bun run prepare-deploy && cd www && bun run build",
"predeploy:prefix": "bun run prepare-deploy && cd www && bun run build:prefix",
"deploy": "bun run build && bun run deploy:gh",
"deploy:gh": "bun run build && bun run predeploy:prefix && gh-pages -d www/dist",
"deploy:netlify": "bun run build && bun run predeploy:default && netlify deploy --prod --dir=www/dist"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"
"build": "bun run --cwd packages/react-netlify-forms build",
"dev": "bun run --cwd packages/docs dev",
"test": "bun run --cwd packages/react-netlify-forms test",
"lint": "bun run --cwd packages/react-netlify-forms test:lint",
"docs:dev": "bun run --cwd packages/docs dev",
"docs:build": "bun run --cwd packages/docs build",
"docs:preview": "bun run --cwd packages/docs preview"
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/eslint-parser": "^7.21.8",
"@babel/plugin-transform-regenerator": "^7.21.5",
"@babel/preset-modules": "^0.1.5",
"@babel/preset-react": "^7.18.6",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "3.2.0",
"esbuild": "^0.17.18",
"eslint": "^8.40.0",
"eslint-config-prettier": "^6.7.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -64,19 +27,8 @@
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-standard": "^4.0.1",
"gh-pages": "^2.2.0",
"microbundle-crl": "^0.13.10",
"netlify-cli": "^2.52.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1"
},
"files": [
"dist"
],
"dependencies": {
"react-google-recaptcha": "^2.1.0"
"prettier": "^2.0.4"
},
"config": {
"commitizen": {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions www/package.json → packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "www",
"name": "@react-netlify-forms/docs",
"type": "module",
"version": "0.0.1",
"private": true,
Expand All @@ -18,8 +18,8 @@
"astro": "^5.6.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-netlify-forms": "link:react-netlify-forms",
"react-netlify-forms": "workspace:*",
"sharp": "^0.32.5",
"starlight-theme-rapide": "^0.5.1"
}
}
}
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ title: License
description: License of react-netlify-forms
---

import License from '../../../LICENSE.md'
import License from '../../../../../LICENSE.md'

<License />
File renamed without changes.
34 changes: 34 additions & 0 deletions packages/react-netlify-forms/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parser": "@babel/eslint-parser",
"extends": [
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react"
],
"env": {
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
}
},
"settings": {
"react": {
"version": "16"
}
},
"rules": {
"space-before-function-paren": 0,
"react/prop-types": 0,
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"import/export": 0
}
}
11 changes: 11 additions & 0 deletions packages/react-netlify-forms/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none",
"endOfLine": "auto"
}
9 changes: 9 additions & 0 deletions packages/react-netlify-forms/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
}
43 changes: 43 additions & 0 deletions packages/react-netlify-forms/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "react-netlify-forms",
"version": "1.3.5",
"homepage": "https://pyrax.github.io/react-netlify-forms",
"bugs": {
"url": "https://github.com/pyrax/react-netlify-forms/issues"
},
"description": "React components and hooks giving you the power of Netlify Forms. Start building serverless forms on Netlify with React.",
"keywords": [
"react",
"netlify",
"forms",
"netlify-forms",
"react-netlify-form",
"react-netlify-forms"
],
"author": "Björn Clees <piranhadev@gmail.com> (https://github.com/pyrax/)",
"license": "MIT",
"repository": "Pyrax/react-netlify-forms",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"engines": {
"node": ">=10"
},
"scripts": {
"build": "bun build ./src/index.js --outdir ./dist --target node --format esm,cjs",
"start": "bun build ./src/index.js --outdir ./dist --target node --format esm,cjs --watch",
"prepare": "bun run build",
"test": "bun run test:lint && bun run test:build",
"test:build": "bun run build",
"test:lint": "eslint ."
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"
},
"dependencies": {
"react-google-recaptcha": "^2.1.0"
},
"files": [
"dist"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions www/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions www/LICENSE.md

This file was deleted.

Loading