Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions d3_graph_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ To start the graph in `modularity-graph`:

1. Run `ruby parse_packwerk_integration.rb` from the command line. You can pass in the above environment variables like this:
- Example: `RELATIVE_PATH_TO_REPOSITORY='../../my_repo' GITHUB_REPO_SLUG='MyOrg/myrepo' ruby parse_packwerk_integration.rb`
2. Run `yarn start`
3. Go to `http://localhost:3000/`
2. Run `yarn install` (first time only)
3. Run `yarn dev`
4. Go to `http://localhost:3000/`
21 changes: 21 additions & 0 deletions d3_graph_generator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="A packwerk modularity graph" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<title>Modularity Graph</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
38 changes: 9 additions & 29 deletions d3_graph_generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,19 @@
"name": "app",
"version": "0.1.0",
"private": true,
"type": "module",
"dependencies": {
"@observablehq/stdlib": "^3.19.8",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"d3": "^7.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1",
"web-vitals": "^2.1.4"
"react-dom": "^18.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"devDependencies": {
"@vitejs/plugin-react": "^6.0.4",
"vite": "^8.1.5"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
}
}
43 changes: 0 additions & 43 deletions d3_graph_generator/public/index.html

This file was deleted.

File renamed without changes.
12 changes: 12 additions & 0 deletions d3_graph_generator/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
server: {
port: 3000,
},
build: {
outDir: "build",
},
});
Loading
Loading