Merge pull request #3446 from directus/fix/dev-env

Enable base and admin routes when developing a Directus `app`
This commit is contained in:
Rijk van Zanten
2020-12-17 10:43:26 -05:00
committed by GitHub
6 changed files with 320 additions and 309 deletions

View File

@@ -53,8 +53,8 @@
"scripts": {
"start": "npx directus start",
"build": "rimraf dist && tsc --build && copyfiles \"src/**/*.*\" -e \"src/**/*.ts\" -u 1 dist",
"dev": "cross-env NODE_ENV=development ts-node-dev --files src/start.ts --respawn --watch \"src/**/*.ts\" --watch \".env\" --transpile-only",
"cli": "cross-env NODE_ENV=development ts-node --script-mode --transpile-only src/cli/index.ts",
"dev": "cross-env DIRECTUS_DEV=true NODE_ENV=development ts-node-dev --files src/start.ts --respawn --watch \"src/**/*.ts\" --watch \".env\" --transpile-only",
"cli": "cross-env DIRECTUS_DEV=true NODE_ENV=development ts-node --script-mode --transpile-only src/cli/index.ts",
"lint": "eslint \"src/**/*.ts\" cli.js index.js",
"prepublishOnly": "npm run build",
"prettier": "prettier --write \"src/**/*.ts\" cli.js index.js"

View File

@@ -90,7 +90,7 @@ export default async function createApp() {
app.use(cors);
}
if (env.NODE_ENV !== 'development') {
if ('DIRECTUS_DEV' in process.env) {
const adminPath = require.resolve('@directus/app/dist/index.html');
const publicUrl = env.PUBLIC_URL.endsWith('/') ? env.PUBLIC_URL : env.PUBLIC_URL + '/';

View File

@@ -85,7 +85,7 @@ export default async function createServer() {
async function beforeShutdown() {
await emitter.emitAsync('server.stop.before', { server });
if (process.env.NODE_ENV === 'development') {
if ('DIRECTUS_DEV' in process.env) {
logger.info('Restarting...');
} else {
logger.info('Shutting down...');
@@ -100,7 +100,7 @@ export default async function createServer() {
async function onShutdown() {
emitter.emitAsync('server.stop').catch((err) => logger.warn(err));
if (process.env.NODE_ENV !== 'development') {
if (!('DIRECTUS_DEV' in process.env)) {
logger.info('Directus shut down OK. Bye bye!');
}
}

View File

@@ -16,7 +16,7 @@ export async function track(event: string) {
try {
await axios.post('https://telemetry.directus.io/', info);
} catch (err) {
if (process.env.NODE_ENV === 'development') {
if ('DIRECTUS_DEV' in process.env) {
logger.error(err);
}
}

197
package-lock.json generated
View File

@@ -1962,7 +1962,8 @@
"@directus/sdk-js": {
"version": "file:packages/sdk-js",
"requires": {
"axios": "^0.19.2"
"axios": "^0.19.2",
"openapi3-ts": "^2.0.0"
},
"dependencies": {
"axios": {
@@ -7155,6 +7156,13 @@
"supports-color": "^5.3.0"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"commander": {
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
@@ -7192,6 +7200,79 @@
"worker-rpc": "^0.1.0"
}
},
"fork-ts-checker-webpack-plugin-v5": {
"version": "npm:fork-ts-checker-webpack-plugin@5.2.1",
"resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-5.2.1.tgz",
"integrity": "sha512-SVi+ZAQOGbtAsUWrZvGzz38ga2YqjWvca1pXQFUArIVXqli0lLoDQ8uS0wg0kSpcwpZmaW5jVCZXQebkyUQSsw==",
"dev": true,
"optional": true,
"requires": {
"@babel/code-frame": "^7.8.3",
"@types/json-schema": "^7.0.5",
"chalk": "^4.1.0",
"cosmiconfig": "^6.0.0",
"deepmerge": "^4.2.2",
"fs-extra": "^9.0.0",
"memfs": "^3.1.2",
"minimatch": "^3.0.4",
"schema-utils": "2.7.0",
"semver": "^7.3.2",
"tapable": "^1.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"semver": {
"version": "7.3.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz",
"integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==",
"dev": true,
"optional": true,
"requires": {
"lru-cache": "^6.0.0"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"globby": {
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-9.2.0.tgz",
@@ -7208,6 +7289,13 @@
"slash": "^2.0.0"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
@@ -7231,6 +7319,18 @@
}
}
},
"schema-utils": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz",
"integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==",
"dev": true,
"optional": true,
"requires": {
"@types/json-schema": "^7.0.4",
"ajv": "^6.12.2",
"ajv-keywords": "^3.4.1"
}
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
@@ -7627,9 +7727,9 @@
"dev": true
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.1.tgz",
"integrity": "sha512-wz/+HFg/3SBayHWAlZXARcnDTl3VOChrfW9YnxvAweiuyKX/7IGx1ad/4yJHmwhgWlOVYMAbTiI7GV8G33PfGQ==",
"version": "npm:vue-loader@16.1.2",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz",
"integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==",
"dev": true,
"optional": true,
"requires": {
@@ -16960,95 +17060,6 @@
}
}
},
"fork-ts-checker-webpack-plugin-v5": {
"version": "npm:fork-ts-checker-webpack-plugin@5.2.1",
"resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-5.2.1.tgz",
"integrity": "sha512-SVi+ZAQOGbtAsUWrZvGzz38ga2YqjWvca1pXQFUArIVXqli0lLoDQ8uS0wg0kSpcwpZmaW5jVCZXQebkyUQSsw==",
"dev": true,
"optional": true,
"requires": {
"@babel/code-frame": "^7.8.3",
"@types/json-schema": "^7.0.5",
"chalk": "^4.1.0",
"cosmiconfig": "^6.0.0",
"deepmerge": "^4.2.2",
"fs-extra": "^9.0.0",
"memfs": "^3.1.2",
"minimatch": "^3.0.4",
"schema-utils": "2.7.0",
"semver": "^7.3.2",
"tapable": "^1.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"schema-utils": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz",
"integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==",
"dev": true,
"optional": true,
"requires": {
"@types/json-schema": "^7.0.4",
"ajv": "^6.12.2",
"ajv-keywords": "^3.4.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"form-data": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",

View File

@@ -1,212 +1,212 @@
{
"name": "directus-monorepo",
"private": true,
"scripts": {
"dev": "lerna run dev --stream --parallel",
"build": "lerna run build",
"lint": "lerna run lint",
"release": "lerna publish --force-publish",
"cli": "cross-env NODE_ENV=development DOTENV_CONFIG_PATH=api/.env ts-node -r dotenv/config --script-mode --transpile-only api/src/cli/index.ts",
"postinstall": "npm run build",
"prettier": "lerna run prettier"
},
"repository": {
"type": "git",
"url": "git+https://github.com/directus/directus.git"
},
"author": "Rijk van Zanten <rijkvanzanten@me.com>",
"license": "GPL-3.0-only",
"bugs": {
"url": "https://github.com/directus/directus/issues"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@commitlint/cli": "^9.1.2",
"@popperjs/core": "^2.5.4",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"@sindresorhus/slugify": "^1.1.0",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-centered": "^5.3.19",
"@storybook/addon-knobs": "^5.3.19",
"@storybook/addon-links": "^5.3.19",
"@storybook/addon-notes": "^5.3.19",
"@storybook/addon-viewport": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/core": "^5.3.19",
"@storybook/vue": "^5.3.19",
"@tinymce/tinymce-vue": "^3.2.6",
"@types/atob": "^2.1.2",
"@types/base-64": "^0.1.3",
"@types/busboy": "^0.2.3",
"@types/bytes": "^3.1.0",
"@types/chai": "^4.2.14",
"@types/clear": "^0.1.0",
"@types/codemirror": "^0.0.98",
"@types/color": "^3.0.1",
"@types/color-string": "^1.5.0",
"@types/cookie-parser": "^1.4.2",
"@types/cors": "^2.8.7",
"@types/debug": "^4.1.5",
"@types/diff": "^4.0.2",
"@types/express": "^4.17.9",
"@types/express-pino-logger": "^4.0.2",
"@types/express-session": "^1.17.2",
"@types/fs-extra": "^9.0.4",
"@types/highlight.js": "^9.12.4",
"@types/inquirer": "^6.5.0",
"@types/joi": "^14.3.4",
"@types/js-yaml": "^3.12.5",
"@types/json2csv": "^5.0.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/keyv": "^3.1.1",
"@types/lodash": "^4.14.159",
"@types/marked": "^1.1.0",
"@types/mime-types": "^2.1.0",
"@types/mocha": "^8.0.4",
"@types/mousetrap": "^1.6.4",
"@types/ms": "^0.7.31",
"@types/node": "^14.14.7",
"@types/nodemailer": "^6.4.0",
"@types/pino": "^6.3.0",
"@types/qrcode": "^1.3.5",
"@types/semver": "^7.3.1",
"@types/sharp": "^0.25.1",
"@types/sinon": "^9.0.8",
"@types/sinon-chai": "^3.2.5",
"@types/uuid": "^8.0.0",
"@types/uuid-validate": "0.0.1",
"@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@typescript-eslint/typescript-estree": "^3.7.0",
"@vue/cli-plugin-babel": "^4.5.6",
"@vue/cli-plugin-eslint": "^4.5.6",
"@vue/cli-plugin-router": "^4.5.6",
"@vue/cli-plugin-typescript": "^4.5.6",
"@vue/cli-plugin-vuex": "^4.5.6",
"@vue/cli-service": "^4.5.6",
"@vue/composition-api": "^0.6.7",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.1.0",
"@vue/test-utils": "^1.1.0",
"autoprefixer": "^9.8.5",
"axios": "^0.21.0",
"babel-loader": "^8.2.1",
"babel-preset-vue": "^2.0.2",
"base-64": "^1.0.0",
"bytes": "^3.1.0",
"chai": "^4.2.0",
"codemirror": "^5.58.2",
"color": "^3.1.3",
"color-string": "^1.5.4",
"colors": "^1.4.0",
"concat-map": "0.0.1",
"copyfiles": "^2.4.0",
"cropperjs": "^1.5.9",
"cross-env": "^7.0.2",
"css-loader": "^3.6.0",
"date-fns": "^2.16.1",
"diff": "^4.0.2",
"directory-tree": "^2.2.4",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-vue": "^6.2.2",
"fs-extra": "^9.0.1",
"highlight.js": "^10.3.2",
"html-loader": "^1.1.0",
"husky": "^4.2.5",
"joi": "^17.3.0",
"jsonlint": "^1.6.3",
"jsonlint-mod": "^1.7.6",
"lerna": "^3.22.1",
"lint-staged": "^10.3.0",
"lodash": "^4.17.20",
"marked": "^1.2.2",
"micromustache": "^8.0.3",
"mime-types": "^2.1.27",
"mitt": "^2.1.0",
"mocha": "^8.2.1",
"mockdate": "^3.0.2",
"mousetrap": "^1.6.5",
"nanoid": "^3.1.16",
"npm-watch": "^0.7.0",
"nyc": "^15.1.0",
"pinia": "0.0.7",
"portal-vue": "^2.1.7",
"prettier": "^2.2.1",
"pretty-ms": "^7.0.1",
"qrcode": "^1.4.4",
"raw-loader": "^4.0.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"regenerator-runtime": "^0.13.7",
"resize-observer": "^1.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.26.10",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.2",
"sass": "^1.26.10",
"sass-loader": "^9.0.2",
"semver": "^7.3.2",
"sinon": "^9.2.0",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"storybook-addon-themes": "^5.4.1",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.1.0",
"stylelint-scss": "^3.18.0",
"swagger-cli": "^4.0.4",
"swagger-ui-watcher": "^2.1.11",
"tinymce": "^5.5.1",
"ts-node": "^8.10.2",
"ts-node-dev": "^1.0.0-pre.63",
"typescript": "^3.9.7",
"vue": "^2.6.12",
"vue-cli-plugin-storybook": "^1.3.0",
"vue-cli-plugin-yaml": "^1.0.2",
"vue-i18n": "^8.22.1",
"vue-loader": "^15.9.3",
"vue-router": "^3.4.8",
"vue-template-compiler": "^2.6.10",
"vuedraggable": "^2.24.3",
"vuepress": "^1.5.2",
"webpack": "^4.43.0",
"webpack-assets-manifest": "^3.1.1",
"webpack-merge": "^5.4.0"
},
"dependencies": {
"@directus/app": "file:app",
"@directus/docs": "file:docs",
"@directus/format-title": "file:packages/format-title",
"@directus/sdk-js": "file:packages/sdk-js",
"@directus/specs": "file:packages/specs",
"create-directus-project": "file:packages/create-directus-project",
"directus": "file:api"
},
"husky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,md}": [
"prettier --write"
],
"**/*.{css,scss}": [
"stylelint --fix"
],
"**/*.vue": [
"vue-cli-service lint",
"stylelint --fix"
]
}
"name": "directus-monorepo",
"private": true,
"scripts": {
"dev": "lerna run dev --stream --parallel",
"build": "lerna run build",
"lint": "lerna run lint",
"release": "lerna publish --force-publish",
"cli": "cross-env DIRECTUS_DEV=true NODE_ENV=development DOTENV_CONFIG_PATH=api/.env ts-node -r dotenv/config --script-mode --transpile-only api/src/cli/index.ts",
"postinstall": "npm run build",
"prettier": "lerna run prettier"
},
"repository": {
"type": "git",
"url": "git+https://github.com/directus/directus.git"
},
"author": "Rijk van Zanten <rijkvanzanten@me.com>",
"license": "GPL-3.0-only",
"bugs": {
"url": "https://github.com/directus/directus/issues"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@commitlint/cli": "^9.1.2",
"@popperjs/core": "^2.5.4",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"@sindresorhus/slugify": "^1.1.0",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-centered": "^5.3.19",
"@storybook/addon-knobs": "^5.3.19",
"@storybook/addon-links": "^5.3.19",
"@storybook/addon-notes": "^5.3.19",
"@storybook/addon-viewport": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/core": "^5.3.19",
"@storybook/vue": "^5.3.19",
"@tinymce/tinymce-vue": "^3.2.6",
"@types/atob": "^2.1.2",
"@types/base-64": "^0.1.3",
"@types/busboy": "^0.2.3",
"@types/bytes": "^3.1.0",
"@types/chai": "^4.2.14",
"@types/clear": "^0.1.0",
"@types/codemirror": "^0.0.98",
"@types/color": "^3.0.1",
"@types/color-string": "^1.5.0",
"@types/cookie-parser": "^1.4.2",
"@types/cors": "^2.8.7",
"@types/debug": "^4.1.5",
"@types/diff": "^4.0.2",
"@types/express": "^4.17.9",
"@types/express-pino-logger": "^4.0.2",
"@types/express-session": "^1.17.2",
"@types/fs-extra": "^9.0.4",
"@types/highlight.js": "^9.12.4",
"@types/inquirer": "^6.5.0",
"@types/joi": "^14.3.4",
"@types/js-yaml": "^3.12.5",
"@types/json2csv": "^5.0.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/keyv": "^3.1.1",
"@types/lodash": "^4.14.159",
"@types/marked": "^1.1.0",
"@types/mime-types": "^2.1.0",
"@types/mocha": "^8.0.4",
"@types/mousetrap": "^1.6.4",
"@types/ms": "^0.7.31",
"@types/node": "^14.14.7",
"@types/nodemailer": "^6.4.0",
"@types/pino": "^6.3.0",
"@types/qrcode": "^1.3.5",
"@types/semver": "^7.3.1",
"@types/sharp": "^0.25.1",
"@types/sinon": "^9.0.8",
"@types/sinon-chai": "^3.2.5",
"@types/uuid": "^8.0.0",
"@types/uuid-validate": "0.0.1",
"@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@typescript-eslint/typescript-estree": "^3.7.0",
"@vue/cli-plugin-babel": "^4.5.6",
"@vue/cli-plugin-eslint": "^4.5.6",
"@vue/cli-plugin-router": "^4.5.6",
"@vue/cli-plugin-typescript": "^4.5.6",
"@vue/cli-plugin-vuex": "^4.5.6",
"@vue/cli-service": "^4.5.6",
"@vue/composition-api": "^0.6.7",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.1.0",
"@vue/test-utils": "^1.1.0",
"autoprefixer": "^9.8.5",
"axios": "^0.21.0",
"babel-loader": "^8.2.1",
"babel-preset-vue": "^2.0.2",
"base-64": "^1.0.0",
"bytes": "^3.1.0",
"chai": "^4.2.0",
"codemirror": "^5.58.2",
"color": "^3.1.3",
"color-string": "^1.5.4",
"colors": "^1.4.0",
"concat-map": "0.0.1",
"copyfiles": "^2.4.0",
"cropperjs": "^1.5.9",
"cross-env": "^7.0.2",
"css-loader": "^3.6.0",
"date-fns": "^2.16.1",
"diff": "^4.0.2",
"directory-tree": "^2.2.4",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-vue": "^6.2.2",
"fs-extra": "^9.0.1",
"highlight.js": "^10.3.2",
"html-loader": "^1.1.0",
"husky": "^4.2.5",
"joi": "^17.3.0",
"jsonlint": "^1.6.3",
"jsonlint-mod": "^1.7.6",
"lerna": "^3.22.1",
"lint-staged": "^10.3.0",
"lodash": "^4.17.20",
"marked": "^1.2.2",
"micromustache": "^8.0.3",
"mime-types": "^2.1.27",
"mitt": "^2.1.0",
"mocha": "^8.2.1",
"mockdate": "^3.0.2",
"mousetrap": "^1.6.5",
"nanoid": "^3.1.16",
"npm-watch": "^0.7.0",
"nyc": "^15.1.0",
"pinia": "0.0.7",
"portal-vue": "^2.1.7",
"prettier": "^2.2.1",
"pretty-ms": "^7.0.1",
"qrcode": "^1.4.4",
"raw-loader": "^4.0.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"regenerator-runtime": "^0.13.7",
"resize-observer": "^1.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.26.10",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.2",
"sass": "^1.26.10",
"sass-loader": "^9.0.2",
"semver": "^7.3.2",
"sinon": "^9.2.0",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"storybook-addon-themes": "^5.4.1",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.1.0",
"stylelint-scss": "^3.18.0",
"swagger-cli": "^4.0.4",
"swagger-ui-watcher": "^2.1.11",
"tinymce": "^5.5.1",
"ts-node": "^8.10.2",
"ts-node-dev": "^1.0.0-pre.63",
"typescript": "^3.9.7",
"vue": "^2.6.12",
"vue-cli-plugin-storybook": "^1.3.0",
"vue-cli-plugin-yaml": "^1.0.2",
"vue-i18n": "^8.22.1",
"vue-loader": "^15.9.3",
"vue-router": "^3.4.8",
"vue-template-compiler": "^2.6.10",
"vuedraggable": "^2.24.3",
"vuepress": "^1.5.2",
"webpack": "^4.43.0",
"webpack-assets-manifest": "^3.1.1",
"webpack-merge": "^5.4.0"
},
"dependencies": {
"@directus/app": "file:app",
"@directus/docs": "file:docs",
"@directus/format-title": "file:packages/format-title",
"@directus/sdk-js": "file:packages/sdk-js",
"@directus/specs": "file:packages/specs",
"create-directus-project": "file:packages/create-directus-project",
"directus": "file:api"
},
"husky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,md}": [
"prettier --write"
],
"**/*.{css,scss}": [
"stylelint --fix"
],
"**/*.vue": [
"vue-cli-service lint",
"stylelint --fix"
]
}
}