-
-
Notifications
You must be signed in to change notification settings - Fork 109
[change] Reduce library size #392 #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
8db6100
b021e12
b32b4e3
ee0de39
8fc85d0
237e343
b67a347
e0b6035
ab2c0bd
1670b7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |
| "$schema": "https://unpkg.com/knip@5/schema.json", | ||
| "project": ["src/**/*.js", "test/**/*.js"], | ||
| "ignore": ["examples/**", "lib/js/**", "public/**", "scripts/**"], | ||
| "ignoreBinaries": ["wait-on"] | ||
| "ignoreBinaries": ["wait-on"], | ||
| "ignoreDependencies": ["leaflet"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is optional now. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,15 @@ | |
| "name": "netjsongraph.js", | ||
| "version": "0.3.0", | ||
| "description": "NetJSON NetworkGraph visualizer", | ||
| "main": "src/js/netjsongraph.js", | ||
| "main": "index.js", | ||
| "sideEffects": false, | ||
|
Comment on lines
+5
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify index.js exists and check its contents
if [ -f "index.js" ]; then
echo "index.js exists:"
cat index.js
else
echo "WARNING: index.js does not exist at package root"
echo "Searching for potential entry points:"
fd -t f 'index.js' --max-depth 2
fiRepository: openwisp/netjsongraph.js Length of output: 154 🏁 Script executed: #!/bin/bash
# List files at package root
echo "=== Package root contents ==="
ls -la | grep -E '^-'
echo ""
echo "=== Directory structure (top level) ==="
ls -la | head -20
echo ""
echo "=== Search for all index files ==="
fd -t f 'index\.' --max-depth 3
echo ""
echo "=== Check if there's a dist or build directory ==="
ls -la | grep -E '^d' | grep -v '^\.'Repository: openwisp/netjsongraph.js Length of output: 3683 🏁 Script executed: #!/bin/bash
# Check lib directory
echo "=== Contents of lib/ ==="
find lib -type f -name '*.js' -o -name '*.ts' | head -20
echo ""
echo "=== Contents of src/ ==="
find src -type f -name '*.js' -o -name '*.ts' | head -20
echo ""
echo "=== Current package.json main field ==="
grep -A 2 '"main"' package.json
echo ""
echo "=== package.json excerpt (lines 1-20) ==="
head -20 package.jsonRepository: openwisp/netjsongraph.js Length of output: 1556 🏁 Script executed: #!/bin/bash
# Check webpack.config.js for output configuration
echo "=== webpack.config.js output config ==="
grep -A 10 "output:" webpack.config.js
echo ""
echo "=== Check if there's any dist or build directory already ==="
ls -la | grep -E '^d' | awk '{print $NF}'Repository: openwisp/netjsongraph.js Length of output: 765 The The package.json points to Either create an 🤖 Prompt for AI Agents |
||
| "scripts": { | ||
| "test": "jest --silent", | ||
| "dev": "webpack serve --open --mode development", | ||
| "start": "yarn dev", | ||
| "build": "webpack --progress --mode production", | ||
| "build": "yarn build:full", | ||
| "build:full": "webpack --progress --mode production --env BUILD_TYPE=full", | ||
| "build:echarts-only": "webpack --progress --mode production --env BUILD_TYPE=echarts-only", | ||
| "coverage": "jest --silent --coverage", | ||
| "coveralls": "jest --silent -f ./coverage/lcov.info && cat ./coverage/lcov.info | coveralls || echo 'no coverage file found'", | ||
| "precommit": "lint-staged", | ||
|
|
@@ -55,6 +58,7 @@ | |
| "@babel/preset-env": "^7.23.9", | ||
| "@testing-library/jest-dom": "^6.4.2", | ||
| "@types/jest": "^30.0.0", | ||
| "compression-webpack-plugin": "^11.1.0", | ||
| "copy-webpack-plugin": "^13.0.0", | ||
| "coveralls": "^3.1.1", | ||
| "css-loader": "^7.1.2", | ||
|
|
@@ -77,15 +81,22 @@ | |
| "terser-webpack-plugin": "^5.3.10", | ||
| "typescript": "^5.9.3", | ||
| "webpack": "^5.90.3", | ||
| "webpack-bundle-analyzer": "^4.10.2", | ||
| "webpack-cli": "^6.0.1", | ||
| "webpack-dev-server": "^5.0.2" | ||
| "webpack-dev-server": "^5.0.2", | ||
| "leaflet": "^1.8.0" | ||
| }, | ||
| "dependencies": { | ||
| "echarts": "^5.6.0", | ||
| "echarts-gl": "^2.0.9", | ||
| "kdbush": "^4.0.2", | ||
| "leaflet": "^1.8.0", | ||
| "zrender": "^6.0.0" | ||
| "kdbush": "^4.0.2" | ||
| }, | ||
| "peerDependencies": { | ||
| "leaflet": "^1.8.0" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "leaflet": { | ||
| "optional": true | ||
| } | ||
| }, | ||
| "packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.