608be3deef
* refactor: Remove babel/register for instant production server startup * fix: Update procfile location * fix: package.json must be copied, not linked for production build * fix: Production file paths * fix: Public assets path * Remove unused scripts
197 lines
5.9 KiB
JSON
197 lines
5.9 KiB
JSON
{
|
|
"name": "outline",
|
|
"private": true,
|
|
"license": "Business Source License 1.1",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"clean": "rimraf build",
|
|
"build:server": "babel -d ./build/server ./server && babel -d ./build/shared ./shared && cp package.json ./build && ln -sf \"$(pwd)/webpack.config.dev.js\" ./build",
|
|
"build:webpack": "webpack --config webpack.config.prod.js",
|
|
"build": "yarn clean && yarn build:webpack && yarn build:server",
|
|
"start": "node ./build/server/index.js",
|
|
"dev": "nodemon --exec \"yarn build:server && node build/server/index.js\" -e js --ignore build/",
|
|
"lint": "eslint app server shared",
|
|
"flow": "flow",
|
|
"deploy": "git push heroku master",
|
|
"heroku-postbuild": "yarn build && yarn sequelize:migrate",
|
|
"sequelize:create-migration": "sequelize migration:create",
|
|
"sequelize:migrate": "sequelize db:migrate",
|
|
"test": "yarn test:app && yarn test:server",
|
|
"test:app": "jest",
|
|
"test:server": "jest --config=server/.jestconfig.json --runInBand --forceExit",
|
|
"test:watch": "jest --config=server/.jestconfig.json --runInBand --forceExit --watchAll"
|
|
},
|
|
"jest": {
|
|
"testURL": "http://localhost",
|
|
"verbose": false,
|
|
"roots": [
|
|
"app",
|
|
"shared"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^shared/(.*)$": "<rootDir>/shared/$1",
|
|
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"jsx",
|
|
"json"
|
|
],
|
|
"moduleDirectories": [
|
|
"node_modules"
|
|
],
|
|
"modulePaths": [
|
|
"app"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/setupJest.js",
|
|
"<rootDir>/__mocks__/window.js"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">= 12 <15"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/outline/outline.git"
|
|
},
|
|
"browserslist": "> 0.25%, not dead",
|
|
"dependencies": {
|
|
"@babel/core": "^7.11.1",
|
|
"@babel/plugin-proposal-decorators": "^7.10.5",
|
|
"@babel/plugin-transform-destructuring": "^7.10.4",
|
|
"@babel/plugin-transform-regenerator": "^7.10.4",
|
|
"@babel/polyfill": "^7.10.4",
|
|
"@babel/preset-env": "^7.11.0",
|
|
"@babel/preset-flow": "^7.10.4",
|
|
"@babel/preset-react": "^7.10.4",
|
|
"@rehooks/window-scroll-position": "^1.0.1",
|
|
"@sentry/node": "^5.23.0",
|
|
"@tippy.js/react": "^2.2.2",
|
|
"@tommoor/remove-markdown": "0.3.1",
|
|
"autotrack": "^2.4.1",
|
|
"aws-sdk": "^2.135.0",
|
|
"babel-plugin-lodash": "^3.3.4",
|
|
"babel-plugin-styled-components": "^1.11.1",
|
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
"boundless-arrow-key-navigation": "^1.0.4",
|
|
"boundless-popover": "^1.0.4",
|
|
"bull": "^3.5.2",
|
|
"cancan": "3.1.0",
|
|
"copy-to-clipboard": "^3.0.6",
|
|
"core-js": "2",
|
|
"date-fns": "1.29.0",
|
|
"debug": "^4.1.1",
|
|
"dotenv": "^4.0.0",
|
|
"emoji-regex": "^6.5.1",
|
|
"es6-error": "^4.1.1",
|
|
"exports-loader": "^0.6.4",
|
|
"file-loader": "^1.1.6",
|
|
"flow-typed": "^2.6.2",
|
|
"focus-visible": "^5.1.0",
|
|
"fs-extra": "^4.0.2",
|
|
"google-auth-library": "^5.5.1",
|
|
"http-errors": "1.4.0",
|
|
"immutable": "^3.8.2",
|
|
"imports-loader": "0.6.5",
|
|
"invariant": "^2.2.2",
|
|
"ioredis": "^4.14.1",
|
|
"isomorphic-fetch": "2.2.1",
|
|
"js-search": "^1.4.2",
|
|
"json-loader": "0.5.4",
|
|
"jsonwebtoken": "^8.5.0",
|
|
"jszip": "^3.5.0",
|
|
"koa": "^2.10.0",
|
|
"koa-bodyparser": "4.2.0",
|
|
"koa-compress": "2.0.0",
|
|
"koa-convert": "1.2.0",
|
|
"koa-helmet": "5.2.0",
|
|
"koa-jwt": "^3.6.0",
|
|
"koa-logger": "^2.0.1",
|
|
"koa-mount": "^3.0.0",
|
|
"koa-onerror": "^4.0.0",
|
|
"koa-router": "7.0.1",
|
|
"koa-sendfile": "2.0.0",
|
|
"koa-sslify": "2.1.2",
|
|
"koa-static": "^4.0.1",
|
|
"lodash": "^4.17.19",
|
|
"mobx": "4.6.0",
|
|
"mobx-react": "^6.2.5",
|
|
"natural-sort": "^1.0.0",
|
|
"nodemailer": "^4.4.0",
|
|
"outline-icons": "^1.21.0-6",
|
|
"oy-vey": "^0.10.0",
|
|
"pg": "^8.3.0",
|
|
"pg-hstore": "^2.3.3",
|
|
"polished": "3.6.5",
|
|
"query-string": "^4.3.4",
|
|
"randomstring": "1.1.5",
|
|
"raw-loader": "^0.5.1",
|
|
"react": "^16.8.6",
|
|
"react-autosize-textarea": "^6.0.0",
|
|
"react-avatar-editor": "^10.3.0",
|
|
"react-color": "^2.17.3",
|
|
"react-dom": "^16.8.6",
|
|
"react-dropzone": "4.2.1",
|
|
"react-helmet": "^5.2.0",
|
|
"react-keydown": "^1.7.3",
|
|
"react-modal": "^3.1.2",
|
|
"react-portal": "^4.0.0",
|
|
"react-router-dom": "^5.1.2",
|
|
"react-waypoint": "^9.0.2",
|
|
"rich-markdown-editor": "^11.0.0-4",
|
|
"semver": "^7.3.2",
|
|
"sequelize": "^6.3.4",
|
|
"sequelize-cli": "^6.2.0",
|
|
"sequelize-encrypted": "^1.0.0",
|
|
"slate": "0.45.0",
|
|
"slate-md-serializer": "5.5.4",
|
|
"slug": "^1.0.0",
|
|
"socket.io": "^2.2.0",
|
|
"socket.io-redis": "^5.2.0",
|
|
"socketio-auth": "^0.1.1",
|
|
"string-replace-to-array": "^1.0.3",
|
|
"styled-components": "^5.0.0",
|
|
"styled-components-breakpoint": "^2.1.1",
|
|
"styled-normalize": "^8.0.4",
|
|
"tiny-cookie": "^2.3.1",
|
|
"tmp": "0.0.33",
|
|
"uuid": "2.0.2",
|
|
"validator": "5.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.10.5",
|
|
"@relative-ci/agent": "^1.3.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^26.2.2",
|
|
"babel-loader": "^8.1.0",
|
|
"eslint": "^7.6.0",
|
|
"eslint-config-react-app": "3.0.6",
|
|
"eslint-plugin-flowtype": "^5.2.0",
|
|
"eslint-plugin-import": "^2.22.0",
|
|
"eslint-plugin-jsx-a11y": "^6.1.0",
|
|
"eslint-plugin-prettier": "^3.1.0",
|
|
"eslint-plugin-react": "^7.20.0",
|
|
"eslint-plugin-react-hooks": "^4.1.0",
|
|
"fetch-test-server": "^1.1.0",
|
|
"flow-bin": "^0.104.0",
|
|
"html-webpack-plugin": "3.2.0",
|
|
"jest-cli": "^26.0.0",
|
|
"koa-webpack-dev-middleware": "^1.4.5",
|
|
"koa-webpack-hot-middleware": "^1.0.3",
|
|
"nodemon": "^1.19.4",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^2.5.4",
|
|
"terser-webpack-plugin": "^4.1.0",
|
|
"url-loader": "^0.6.2",
|
|
"webpack": "4.44.1",
|
|
"webpack-cli": "^3.3.12",
|
|
"webpack-manifest-plugin": "^2.2.0"
|
|
},
|
|
"resolutions": {
|
|
"dot-prop": "^5.2.0",
|
|
"js-yaml": "^3.13.1"
|
|
},
|
|
"version": "0.47.1"
|
|
}
|