Web: Editor: added nextjs

This commit is contained in:
Artem Tarasov 2022-01-27 16:45:36 +03:00
parent be750d3f6b
commit 1ec56b19de
2 changed files with 21 additions and 6 deletions

View File

@ -1,7 +1,16 @@
{
"presets": ["@babel/preset-react", "@babel/preset-env"],
"presets": ["@babel/preset-react", "@babel/preset-env", "next/babel"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties"
"@babel/plugin-proposal-class-properties",
[
"styled-components",
{
"ssr": true,
"displayName": true,
"preprocess": false
}
]
]
}

View File

@ -4,14 +4,17 @@
"private": true,
"homepage": "/products/files/doceditor",
"scripts": {
"build": "webpack --mode production",
"build-old": "webpack --mode production",
"build:test": "webpack --env minimize=false --mode production",
"build:test.translation": "webpack --env minimize=false hideText=true --mode production",
"clean": "shx rm -rf dist",
"deploy": "shx --silent mkdir -p ../../build/deploy/products/ASC.Files/editor && shx cp -r dist/* ../../build/deploy/products/ASC.Files/editor",
"serve": "serve dist -p 5013",
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5013"
"start-old": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5013",
"dev": "next dev -p 5013",
"build": "next build",
"start-ssr": "yarn build && next start -p 5013"
},
"devDependencies": {
"@babel/core": "^7.15.5",
@ -45,6 +48,9 @@
"id": "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
"title": "ONLYOFFICE",
"dependencies": {
"next": "^12.0.8"
"cookies-next": "^2.0.3",
"next": "^12.0.8",
"next-compose-plugins": "^2.2.1",
"next-transpile-modules": "^9.0.0"
}
}