Skip to content

Commit

Permalink
Update dependencies (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthwang authored Oct 2, 2024
1 parent d64b052 commit 4b0d10a
Show file tree
Hide file tree
Showing 8 changed files with 1,884 additions and 3,881 deletions.
5 changes: 1 addition & 4 deletions admin/react/.husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd admin/react && npx lint-staged
cd admin/react && npx lint-staged
5,635 changes: 1,826 additions & 3,809 deletions admin/react/package-lock.json

Large diffs are not rendered by default.

55 changes: 23 additions & 32 deletions admin/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
"version": "1.0.0",
"main": "index.js",
"license": "GPLv3",
"type": "module",
"scripts": {
"build": "npm-run-all --sequential build:*",
"build:prod": "webpack --mode production",
"build:css": "tailwindcss -i src/styles/styles.css -o ../assets/react/index.css --minify",
"dev": "npm-run-all --parallel watch:*",
"watch:dev": "webpack --watch",
"watch:css": "tailwindcss -i ./src/styles/styles.css -o ../assets/react/index.css --watch --minify",
"build": "vite build --emptyOutDir",
"dev": "vite",
"watch": "vite build --watch --emptyOutDir",
"lint": "eslint --ignore-path .gitignore --ext .js --ext .jsx .",
"lint-fix": "eslint --ignore-path .gitignore --ext .js --ext .jsx . --fix",
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|jsx|json)\"",
"format": "npm run prettier -- --write",
"prepare": "cd ../.. && husky install admin/react/.husky",
"prepare": "cd ../.. && npx husky admin/react/.husky",
"readme": "Grunt"
},
"eslintConfig": {
Expand All @@ -29,37 +27,30 @@
]
},
"dependencies": {
"@murmurations/jsig": "^1.0.5",
"@murmurations/jsrfg": "^1.0.3",
"@murmurations/jsig": "^1.0.9",
"@murmurations/jsrfg": "^1.0.7",
"@paralleldrive/cuid2": "^2.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/node": "^7.22.19",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@tailwindcss/forms": "^0.5.7",
"babel-loader": "^9.1.3",
"css-loader": "^6.8.1",
"esbuild-plugin-eslint": "^0.3.7",
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^8.56.0",
"@tailwindcss/forms": "^0.5.9",
"@vitejs/plugin-react": "^4.3.2",
"autoprefixer": "^10.4.20",
"css-loader": "^7.1.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-react": "^7.37.0",
"grunt": "^1.6.1",
"grunt-wp-readme-to-markdown": "^2.1.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.11",
"style-loader": "^3.3.3",
"tailwindcss": "^3.3.6",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.13",
"vite": "^5.4.8"
},
"engines": {
"node": ">=14"
Expand Down
7 changes: 7 additions & 0 deletions admin/react/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// postcss.config.js
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
1 change: 1 addition & 0 deletions admin/react/src/index.js → admin/react/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ReactDOM from 'react-dom/client'
import App from './app'
import './styles/styles.css'

ReactDOM.createRoot(
document.querySelector('#wp-admin-plugin-page-root')
Expand Down
24 changes: 24 additions & 0 deletions admin/react/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// vite.config.js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
plugins: [react()],
css: {
postcss: './postcss.config.js'
},
build: {
target: 'esnext',
cssCodeSplit: false,
outDir: '../assets/react',
rollupOptions: {
input: './src/index.jsx',
output: {
entryFileNames: 'index.js',
assetFileNames: 'index.css',
inlineDynamicImports: true,
format: 'iife'
}
}
}
})
34 changes: 0 additions & 34 deletions admin/react/webpack.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions murmurations-node.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Murmurations Profile Generator
* Plugin URI: https://github.com/MurmurationsNetwork/MurmurationsNodeWP
* Description: Add your profile to the Murmurations distributed data sharing network.
* Version: 1.0.0-beta.11
* Version: 1.0.0-beta.12
* Requires at least: 6.4
* Text Domain: murmurations-node
* Author: Murmurations Network
Expand Down Expand Up @@ -33,7 +33,7 @@
}

if ( ! class_exists( 'MurmurationsNode' ) ) {
define( 'MURMURATIONS_NODE_VERSION', '1.0.0-beta.11' );
define( 'MURMURATIONS_NODE_VERSION', '1.0.0-beta.12' );
define( 'MURMURATIONS_NODE_URL', plugin_dir_url( __FILE__ ) );
define( 'MURMURATIONS_NODE_DIR', __DIR__ );
define( 'MURMURATIONS_NODE_TABLE', 'murmurations_profiles' );
Expand Down

0 comments on commit 4b0d10a

Please sign in to comment.