Skip to content

Commit

Permalink
chore: cleanup dependencies and tools (TuanManhCao#19)
Browse files Browse the repository at this point in the history
* chore: fix dev command

* chore: remove unused libraries

* chore: remove unused document

* chore: ignore public file contents

* chore: replace linter/formatter to rome

* style: format codes

* ci: fix lint command
  • Loading branch information
turtton authored Mar 25, 2023
1 parent b14f180 commit ced006f
Show file tree
Hide file tree
Showing 27 changed files with 1,144 additions and 4,969 deletions.
38 changes: 0 additions & 38 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: pnpm install

- name: Lint
run: pnpm eslint .
run: pnpm run lint

- name: Download template contents
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/build
/posts
!/posts/.gitkeep
/public
!/public/favicon.ico

# misc
.DS_Store
Expand Down
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

Empty file removed Test Linki.md
Empty file.
36 changes: 18 additions & 18 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module.exports = {
swcMinify: true,
webpack: (config) => {
config.resolve.fallback = {
fs: false,
buffer: false
};
return config;
},
output: "standalone",
async redirects() {
return [
{
source: "/",
destination: "/README",
permanent: true
}
]
}
swcMinify: true,
webpack: (config) => {
config.resolve.fallback = {
fs: false,
buffer: false,
};
return config;
},
output: "standalone",
async redirects() {
return [
{
source: "/",
destination: "/README",
permanent: true,
},
];
},
};
53 changes: 5 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next dev",
"dev": "pnpm run build:kotlin && next dev",
"build": "pnpm run build:kotlin && pnpm run build:next",
"build:next": "next build",
"build:kotlin": "cd kotlin && ./gradlew build --stacktrace",
"start": "next start",
"deploy": "pnpm build && git add . && git commit -m '...' && git push",
"format": "prettier --write \"src/**/*.{ts,tsx,js}\"",
"lint": "eslint --fix .",
"format": "rome format --write src *.js && rome check --apply-suggested src *.js",
"lint": "rome check src *.js",
"export": "next export"
},
"dependencies": {
Expand All @@ -22,48 +22,23 @@
"@mui/icons-material": "latest",
"@mui/lab": "latest",
"@mui/material": "latest",
"@mui/system": "^5.11.8",
"@types/wanakana": "^4.0.3",
"cytoscape-d3-force": "^1.1.4",
"cytoscape-node-html-label": "^1.2.1",
"d3": "^6.2.0",
"directory-tree": "^3.2.2",
"fs": "^0.0.1-security",
"fuse.js": "^6.6.2",
"gray-matter": "^4.0.2",
"hast-util-to-html": "^8.0.4",
"jotai": "^2.0.1",
"jsnetworkx": "^0.3.4",
"mdast-util-to-string": "^3.1.0",
"next": "^12.1.0",
"path": "^0.12.7",
"react": "^18.2.0",
"react-cytoscapejs": "^1.2.1",
"react-dom": "^18.2.0",
"react-folder-tree": "^5.0.3",
"refractor": "^4.8.1",
"rehype-prism-plus": "^1.3.2",
"rehype-react": "^7.0.4",
"rehype-stringify": "^9.0.3",
"remark": "^13.0.0",
"remark-collapse": "^0.1.2",
"remark-external-links": "^8.0.0",
"remark-highlight.js": "^6.0.0",
"remark-html": "^13.0.1",
"remark-parse": "^9.0.0",
"remark-preset-lint-markdown-style-guide": "^4.0.0",
"remark-rehype": "^10.1.0",
"remark-wiki-link": "^1.0.0",
"to-vfile": "^6.1.0",
"ts-pattern": "^4.1.4",
"unified": "^9.2.0",
"unist-util-visit": "^4.1.0",
"vfile-reporter": "^6.0.1",
"volglass-backend": "link:kotlin/build/productionLibrary",
"wanakana": "^5.0.2"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@types/babel__core": "^7.20.0",
"@types/cytoscape": "^3.19.9",
"@types/d3": "^6.7.5",
Expand All @@ -74,30 +49,12 @@
"@types/react-dom": "^18.0.11",
"@types/unist": "^2.0.6",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"autoprefixer": "^10.4.13",
"bimap": "^0.0.15",
"cytoscape": "^3.17.0",
"eslint": "8.13.0",
"eslint-config-next": "12.1.5",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard-with-typescript": "^31.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-tailwindcss": "^3.8.3",
"postcss": "^8.4.21",
"prettier": "^2.8.3",
"prettier-plugin-tailwindcss": "^0.2.2",
"remark-frontmatter": "^3.0.0",
"remark-react": "^8.0.0",
"remark-stringify": "^9.0.0",
"rome": "^11.0.0",
"tailwindcss": "^3.2.4",
"typescript": "^4.9.4",
"typesync": "^0.9.2",
"uuid": "^8.3.2"
"typescript": "^4.9.4"
},
"packageManager": "pnpm@7.25.0"
}
Loading

0 comments on commit ced006f

Please sign in to comment.