{ "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", "start:v2:blogOnly": "yarn workspace docusaurus-2-website start:blogOnly", "examples:generate": "node generateExamples", "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", "build:v2:blogOnly": "yarn workspace docusaurus-2-website build:blogOnly", "build:v2:en": "yarn workspace docusaurus-2-website build --locale en", "serve:v1": "serve website-1.x/build/docusaurus", "serve:v2": "yarn workspace docusaurus-2-website serve", "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", "crowdin:upload:v2": "crowdin upload sources --config ./crowdin-v2.yaml", "crowdin:download:v2": "crowdin download --config ./crowdin-v2.yaml", "canary": "yarn canary:bumpVersion && yarn canary:publish", "canary:bumpVersion": "yarn lerna version 2.0.0-alpha.`git rev-parse --short HEAD` --exact --no-push --yes", "canary:publish": "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access", "changelog": "lerna-changelog", "postinstall": "run-p postinstall:**", "postinstall:main": "yarn lock:update && yarn build:packages", "postinstall:dev": "is-ci || husky install", "prettier": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx}\"", "prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx}\"", "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": "cross-env TZ=UTC jest", "test:build:v2": "./admin/scripts/test-release.sh", "watch": "yarn lerna run --parallel --no-private watch", "clear": "yarn workspace docusaurus-2-website clear && yarn lerna exec --ignore docusaurus yarn rimraf lib", "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", "netlify:deployPreview:v1": "yarn netlify:deployPreview:v1:setDeployPreviewVersions && yarn netlify:deployPreview:v1:build && yarn netlify:deployPreview:v1:moveBuild", "netlify:deployPreview:v1:setDeployPreviewVersions": "yarn node -e 'require(\"./website-1.x/netlifyUtils\").setDeployPreviewVersions()'", "netlify:deployPreview:v1:build": "BASE_URL=/v1/ yarn build:v1", "netlify:deployPreview:v1:moveBuild": "mv website-1.x/build/docusaurus website/netlifyDeployPreview/v1", "netlify:deployPreview:v1-migrated": "yarn test:v1Migration:migrate && yarn netlify:deployPreview:v1-migrated:setBaseUrl && yarn netlify:deployPreview:v1-migrated:build", "netlify:deployPreview:v1-migrated:setBaseUrl": "sed -i -e 's,\"baseUrl\": \"/\",\"baseUrl\": \"/v1-migrated/\",g' ./website-1.x-migrated/docusaurus.config.js", "netlify:deployPreview:v1-migrated:build": "yarn workspace docusaurus-1-website-migrated build --out-dir=../website/netlifyDeployPreview/v1-migrated", "lock:update": "npx yarn-deduplicate" }, "devDependencies": { "@babel/cli": "^7.12.16", "@babel/core": "^7.12.16", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13", "@babel/plugin-proposal-optional-chaining": "^7.12.16", "@babel/plugin-transform-modules-commonjs": "^7.12.13", "@babel/preset-typescript": "^7.12.16", "@crowdin/cli": "^3.5.3", "@formatjs/intl-datetimeformat": "^3.2.12", "@formatjs/intl-numberformat": "^6.2.2", "@formatjs/intl-pluralrules": "^4.0.11", "@types/express": "^4.17.2", "@types/fs-extra": "^9.0.6", "@types/jest": "^26.0.20", "@types/loader-utils": "^1.1.3", "@types/lodash": "^4.14.168", "@types/node": "^14.14.22", "@types/prismjs": "^1.16.2", "@types/prompts": "^2.0.9", "@types/react": "^17.0.2", "@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/wait-on": "^5.2.0", "@types/webpack": "^4.41.0", "@types/webpack-dev-server": "^3.9.0", "@types/webpack-merge": "^4.1.5", "@typescript-eslint/eslint-plugin": "^4.8.0", "@typescript-eslint/parser": "^4.8.0", "babel-eslint": "^10.0.3", "concurrently": "^5.3.0", "cross-env": "^7.0.3", "eslint": "^7.20.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^6.15.0", "eslint-plugin-header": "^3.0.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "glob": "^7.1.6", "husky": "^5.0.9", "is-ci": "^2.0.0", "jest": "^26.6.3", "lerna": "^3.22.1", "lerna-changelog": "^1.0.1", "lint-staged": "^10.5.4", "netlify-cli": "^2.58.0", "nodemon": "^2.0.7", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "react": "^17.0.1", "react-dom": "^17.0.1", "rimraf": "^3.0.2", "serve": "^11.3.2", "stylelint": "^13.10.0", "typescript": "^3.9.5" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "eslint --fix", "prettier --write" ], "*.{md,mdx}": [ "prettier --write" ] }, "engines": { "node": ">=12.13.0" } }