mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-05 09:48:57 +02:00
* fix(v2): doc sidebar * chore(v2): prettier * fix(v2): docs navbar path * fix(v2): fix error about activepath * chore(v2): prettier * feat(v2): change active color * feat(v2): Add bootstrap doc * docs(v2): Update preset * doc(v2): finish bootstrap documentation * chore(v2): run lint * doc(v2): update hook * fix theme bootstrap layout (far from perfect) * Try to fix bootstrap theme and deploy it! * fix netlify error Co-authored-by: slorber <lorber.sebastien@gmail.com>
129 lines
5.3 KiB
JSON
129 lines
5.3 KiB
JSON
{
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*",
|
|
"website",
|
|
"website-1.x",
|
|
"website-1.x-migrated",
|
|
"packages/docusaurus-init/templates/*"
|
|
],
|
|
"scripts": {
|
|
"start": "yarn build:packages && yarn start:v2",
|
|
"start:v1": "yarn workspace docusaurus-1-website start",
|
|
"start:v2": "yarn workspace docusaurus-2-website start",
|
|
"start:v2:watch": "nodemon --watch \"./packages/*/lib/**/*.*\" --exec \"yarn start:v2\"",
|
|
"start:v2:baseUrl": "yarn workspace docusaurus-2-website start:baseUrl",
|
|
"start:v2:bootstrap": "yarn workspace docusaurus-2-website start:bootstrap",
|
|
"build": "yarn build:packages && yarn build:v2",
|
|
"build:packages": "lerna run build --no-private",
|
|
"build:v1": "yarn workspace docusaurus-1-website build",
|
|
"build:v2": "yarn workspace docusaurus-2-website build",
|
|
"build:v2:baseUrl": "yarn workspace docusaurus-2-website build:baseUrl",
|
|
"serve:v1": "serve website-1.x/build/docusaurus",
|
|
"serve:v2": "serve website/build",
|
|
"serve:v2:baseUrl": "serve website",
|
|
"serve:v2:ssl": "yarn serve:v2:ssl:gencert && yarn serve:v2:ssl:message && yarn serve:v2:ssl:serve",
|
|
"serve:v2:ssl:gencert": "openssl req -x509 -nodes -days 365 -newkey rsa:4096 -subj \"/C=US/ST=Docusaurus/L=Anywhere/O=Dis/CN=localhost\" -keyout ./website/.docusaurus/selfsigned.key -out ./website/.docusaurus/selfsigned.crt",
|
|
"serve:v2:ssl:message": "echo '\n\n\nServing Docusaurus with HTTPS on localhost requires to disable the Chrome security: chrome://flags/#allow-insecure-localhost\n\n\n'",
|
|
"serve:v2:ssl:serve": "serve website/build --ssl-cert ./website/.docusaurus/selfsigned.crt --ssl-key ./website/.docusaurus/selfsigned.key",
|
|
"changelog": "lerna-changelog",
|
|
"postinstall": "yarn build:packages",
|
|
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
|
|
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,ts}\"",
|
|
"prettier-docs": "prettier --config .prettierrc --write \"**/*.md\"",
|
|
"lint": "yarn lint:js && yarn lint:style",
|
|
"lint:js": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",
|
|
"lint:style": "stylelint \"**/*.css\"",
|
|
"lerna": "lerna",
|
|
"test": "jest",
|
|
"test:build:v2": "./admin/scripts/test-release.sh",
|
|
"watch": "yarn lerna run --parallel --no-private watch",
|
|
"clear": "yarn rimraf website/.docusaurus && rimraf -rf website/node_modules/.cache && yarn lerna exec 'yarn rimraf lib' --ignore docusaurus",
|
|
"test:v1Migration:migrate": "rimraf website-1.x-migrated && docusaurus-migrate migrate ./website-1.x ./website-1.x-migrated && sed -i -- 's/docusaurus-1-website/docusaurus-1-website-migrated/g;' website-1.x-migrated/package.json",
|
|
"test:v1Migration:start": "yarn workspace docusaurus-1-website-migrated start",
|
|
"test:v1Migration:build": "yarn workspace docusaurus-1-website-migrated build",
|
|
"test:baseUrl": "yarn build:v2:baseUrl && yarn serve:v2:baseUrl"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.9.0",
|
|
"@babel/core": "^7.9.0",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
|
"@babel/preset-typescript": "^7.9.0",
|
|
"@types/express": "^4.17.2",
|
|
"@types/fs-extra": "^8.0.1",
|
|
"@types/inquirer": "^6.5.0",
|
|
"@types/jest": "^25.2.1",
|
|
"@types/loader-utils": "^1.1.3",
|
|
"@types/lodash.camelcase": "^4.3.6",
|
|
"@types/lodash.flatmap": "^4.5.6",
|
|
"@types/lodash.groupby": "^4.6.6",
|
|
"@types/lodash.has": "^4.5.6",
|
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
"@types/lodash.isstring": "^4.0.6",
|
|
"@types/lodash.kebabcase": "^4.1.6",
|
|
"@types/lodash.pick": "^4.4.6",
|
|
"@types/lodash.pickby": "^4.6.6",
|
|
"@types/lodash.sortby": "^4.6.6",
|
|
"@types/node": "^13.11.0",
|
|
"@types/prismjs": "^1.16.1",
|
|
"@types/react": "^16.9.38",
|
|
"@types/react-dev-utils": "^9.0.1",
|
|
"@types/react-helmet": "^6.0.0",
|
|
"@types/react-loadable": "^5.5.3",
|
|
"@types/react-router-config": "^5.0.1",
|
|
"@types/semver": "^7.1.0",
|
|
"@types/shelljs": "^0.8.6",
|
|
"@types/webpack": "^4.41.0",
|
|
"@types/webpack-dev-server": "^3.9.0",
|
|
"@types/webpack-merge": "^4.1.5",
|
|
"@typescript-eslint/eslint-plugin": "^3.3.0",
|
|
"@typescript-eslint/parser": "^3.3.0",
|
|
"babel-eslint": "^10.0.3",
|
|
"concurrently": "^5.2.0",
|
|
"enzyme": "^3.10.0",
|
|
"enzyme-adapter-react-16": "^1.15.1",
|
|
"eslint": "^7.2.0",
|
|
"eslint-config-airbnb": "^18.0.1",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"eslint-plugin-header": "^3.0.0",
|
|
"eslint-plugin-import": "^2.21.2",
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
"eslint-plugin-react": "^7.20.0",
|
|
"eslint-plugin-react-hooks": "^4.0.4",
|
|
"husky": "^4.2.3",
|
|
"jest": "^25.2.7",
|
|
"lerna": "^3.19.0",
|
|
"lerna-changelog": "^1.0.1",
|
|
"lint-staged": "^10.1.2",
|
|
"netlify-cli": "^2.58.0",
|
|
"nodemon": "^2.0.4",
|
|
"prettier": "^2.0.2",
|
|
"react": "^16.8.4",
|
|
"react-dom": "^16.8.4",
|
|
"rimraf": "^3.0.2",
|
|
"serve": "^11.3.2",
|
|
"stylelint": "^13.2.1",
|
|
"typescript": "^3.9.5"
|
|
},
|
|
"peerDependencies": {
|
|
"stylelint-copyright": "^2.0.0"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{md,mdx}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=10.15.1"
|
|
}
|
|
}
|