Skip to content

Commit ef0226c

Browse files
Andrew Haririturbobot-temp
Andrew Hariri
andauthored
Turborepo Migration (aptos-labs#182)
* feat(create-turbo): apply official-starter transform * feat(create-turbo): apply pnpm-eslint transform * feat(create-turbo): install dependencies * [turbo] Setup monorepo * [turbo] fmt && spellcheck * [turbo] Fix netlify.toml * [turbo] Fix docusaurus edit url * [turbo] Set .editorconfig and .gitattributes at root --------- Co-authored-by: Turbobot <turbobot@vercel.com>
1 parent 4179f13 commit ef0226c

File tree

743 files changed

+4856
-2566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

743 files changed

+4856
-2566
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This configuration only applies to the package manager root.
2+
/** @type {import("eslint").Linter.Config} */
3+
module.exports = {
4+
ignorePatterns: ["apps/**", "packages/**"],
5+
extends: ["@repo/eslint-config/library.js"],
6+
parser: "@typescript-eslint/parser",
7+
parserOptions: {
8+
project: true,
9+
},
10+
};

.gitignore

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
13
# OSX
24
*.DS_Store
35
venv
46

5-
# Installation
6-
package-lock.json
7-
8-
# Docusaurus
9-
build/
10-
i18n/
11-
node_modules/
12-
137
# Generated files
148
.docusaurus/
159
.cache-loader
16-
.vercel
1710
.idea/
1811

1912
# ignore autogenerated docs
2013
static/docs/rustdocs/
14+
15+
# Dependencies
16+
node_modules
17+
.pnp
18+
.pnp.js
19+
20+
# Local env files
21+
.env
22+
.env.local
23+
.env.development.local
24+
.env.test.local
25+
.env.production.local
26+
27+
# Testing
28+
coverage
29+
30+
# Turbo
31+
.turbo
32+
33+
# Vercel
34+
.vercel
35+
36+
# Build Outputs
37+
.next/
38+
out/
39+
build
40+
dist
41+
42+
43+
# Debug
44+
npm-debug.log*
45+
yarn-debug.log*
46+
yarn-error.log*
47+
48+
# Misc
49+
.DS_Store
50+
*.pem

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"eslint.workingDirectories": [
3+
{
4+
"mode": "auto"
5+
}
6+
]
7+
}

README.md

Lines changed: 1 addition & 1 deletion

apps/docusaurus/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Docusaurus
2+
build/
3+
i18n/
4+
node_modules/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/docusaurus/README.md

Lines changed: 120 additions & 0 deletions
File renamed without changes.

docusaurus.config.ts renamed to apps/docusaurus/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const preset: Preset.Options = {
1616
routeBasePath: "/",
1717
sidebarPath: require.resolve("./src/components/sidebars.ts"),
1818
sidebarCollapsible: false,
19-
editUrl: "https://github.com/aptos-labs/developer-docs/edit/main",
19+
editUrl: "https://github.com/aptos-labs/developer-docs/edit/main/apps/docusaurus",
2020
remarkPlugins: [codeInjector, math],
2121
path: "docs",
2222
rehypePlugins: [katex],

apps/docusaurus/package.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"name": "aptos-docs",
3+
"packageManager": "pnpm@8.14.1",
4+
"version": "0.0.0",
5+
"private": true,
6+
"scripts": {
7+
"docusaurus": "docusaurus",
8+
"start": "docusaurus start",
9+
"build": "docusaurus build",
10+
"swizzle": "docusaurus swizzle",
11+
"deploy": "docusaurus deploy",
12+
"clear": "docusaurus clear",
13+
"serve": "docusaurus serve",
14+
"spellcheck": "./scripts/spellcheck.sh",
15+
"write-translations": "docusaurus write-translations",
16+
"write-heading-ids": "docusaurus write-heading-ids",
17+
"typecheck": "tsc",
18+
"fmt": "prettier --write '**/*.(tsx|ts|jsx|js|json|md|html)'",
19+
"lint": "pnpm install --frozen-lockfile && prettier --check '**/*.(tsx|ts|jsx|js|json|md|html)'",
20+
"contributors": "scripts/contributors.js"
21+
},
22+
"pnpm": {
23+
"overrides": {
24+
"semver": ">=7.5.4"
25+
}
26+
},
27+
"dependencies": {
28+
"@algolia/client-search": "^4.22.1",
29+
"@docusaurus/core": "3.1.1",
30+
"@docusaurus/plugin-client-redirects": "3.1.1",
31+
"@docusaurus/plugin-google-analytics": "3.1.1",
32+
"@docusaurus/plugin-google-gtag": "3.1.1",
33+
"@docusaurus/preset-classic": "3.1.1",
34+
"@docusaurus/theme-classic": "3.1.1",
35+
"@docusaurus/theme-common": "3.1.1",
36+
"@docusaurus/theme-mermaid": "3.1.1",
37+
"@mdx-js/react": "3.0.1",
38+
"@stoplight/elements": "^8.0.5",
39+
"@tabler/icons-react": "^2.47.0",
40+
"@types/prop-types": "^15.7.11",
41+
"@types/react": "^18.2.55",
42+
"buffer": "^6.0.3",
43+
"clsx": "2.1.0",
44+
"hast-util-is-element": "3.0.0",
45+
"mkdirp": "^3.0.1",
46+
"path-to-regex": "^1.3.8",
47+
"postcss-preset-env": "^9.3.0",
48+
"prismjs": "^1.29.0",
49+
"prism-react-renderer": "2.3.1",
50+
"process": "^0.11.10",
51+
"prop-types": "^15.8.1",
52+
"raw-loader": "^4.0.2",
53+
"react": "18.2.0",
54+
"react-aria-components": "1.1.0",
55+
"react-dom": "18.2.0",
56+
"react-markdown": "^9.0.1",
57+
"rehype-katex": "^7.0.0",
58+
"rehype-raw": "^7.0.0",
59+
"remark": "^15.0.1",
60+
"remark-gfm": "^4.0.0",
61+
"remark-math": "^6.0.0",
62+
"remark-mermaid-plugin": "^1.0.2",
63+
"remark-stringify": "^11.0.0",
64+
"search-insights": "^2.13.0",
65+
"shelljs": "^0.8.5",
66+
"sitemap": "^7.1.1",
67+
"stream": "^0.0.2",
68+
"unist-util-visit": "5.0.0",
69+
"unist-util-visit-children": "3.0.0",
70+
"url": "^0.11.3",
71+
"util": "^0.12.5"
72+
},
73+
"devDependencies": {
74+
"@docusaurus/module-type-aliases": "3.1.1",
75+
"@docusaurus/tsconfig": "^3.1.1",
76+
"@docusaurus/types": "3.1.1",
77+
"@types/node": "^20.11.17",
78+
"@types/prismjs": "^1.26.3",
79+
"@types/prop-types": "^15.7.11",
80+
"@types/react": "^18.2.55",
81+
"command-exists": "^1.2.9",
82+
"node-fetch": "^3.3.2",
83+
"prettier": "3.2.5",
84+
"ts-node": "^10.9.2",
85+
"typescript": "5.3.3",
86+
"webpack": "^5.90.1"
87+
},
88+
"browserslist": {
89+
"production": [
90+
">0.5%",
91+
"not dead",
92+
"not op_mini all"
93+
],
94+
"development": [
95+
"last 1 chrome version",
96+
"last 1 firefox version",
97+
"last 1 safari version"
98+
]
99+
}
100+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)