Skip to content

Commit

Permalink
chore: js analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Oct 18, 2024
1 parent 1bb2a38 commit 37e7729
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions js-analyzer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
// Root directory
root: '/wui/pro-react/pro-react-admin',
// Directories that do not need to be analyzed
ignore: ['**/node_modules/**', '**/dist/**'],
// Order of preference when parsing files without extensions
extensions: ['.js', '.ts', '.tsx', '.vue', '.json', '.jsx'],
// Path mapping of the project's alias
alias: {
'@@/': '/',
'~~/': '/',
'@/': '/src/',
'~/': '/src/',
},
// Server and port related information
server: {
port: 8088,
host: 'localhost',
openBrowser: true, // Automatically open in browser after startup
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"clean:lock": "rm -rf package-lock.json yarn.lock pnpm-lock.yaml",
"clean:dist": "rm -rf ./dist",
"clean:modules": "rm -rf node_modules",
"js-analyzer": "js-analyzer --root ./"
"js-analyzer": "js-analyzer --config ./js-analyzer.js"
},
"author": "wkylin",
"contributors": [
Expand Down

0 comments on commit 37e7729

Please sign in to comment.