mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
removed craco, updated next
This commit is contained in:
parent
07b4874f69
commit
4d780758ce
4 changed files with 66 additions and 152 deletions
|
@ -1,87 +0,0 @@
|
||||||
const CracoAlias = require('craco-alias');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
webpack: {
|
|
||||||
alias: {
|
|
||||||
'~': `src`,
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
publicPath: '/',
|
|
||||||
},
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.svg/,
|
|
||||||
type: 'asset/resource',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
eslint: {
|
|
||||||
enable: false,
|
|
||||||
mode: 'file',
|
|
||||||
rules: {
|
|
||||||
'sort-imports': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
ignoreCase: false,
|
|
||||||
ignoreDeclarationSort: false,
|
|
||||||
ignoreMemberSort: false,
|
|
||||||
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
|
|
||||||
allowSeparatedGroups: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'import/order': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
groups: ['builtin', 'external', 'internal', 'sibling', 'type', 'object'],
|
|
||||||
pathGroups: [
|
|
||||||
{
|
|
||||||
pattern: '~/**',
|
|
||||||
group: 'internal',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
pattern: '../**',
|
|
||||||
group: 'sibling',
|
|
||||||
position: 'after',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
pattern: './**',
|
|
||||||
group: 'sibling',
|
|
||||||
position: 'after',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'newlines-between': 'always',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
jest: {
|
|
||||||
setupTestFrameworkScriptFile: '<rootDir>/src/setupTests.js',
|
|
||||||
configure: {
|
|
||||||
moduleNameMapper: {
|
|
||||||
'^~/(.*)$': '<rootDir>/src/$1',
|
|
||||||
'^.+\\.scss$': 'identity-obj-proxy',
|
|
||||||
},
|
|
||||||
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
||||||
moduleFileExtensions: ['js', 'json', 'ts', 'tsx', 'jsx', 'node'],
|
|
||||||
verbose: true,
|
|
||||||
roots: ['<rootDir>/src'],
|
|
||||||
transform: {
|
|
||||||
'^.+\\.tsx?$': 'ts-jest',
|
|
||||||
'^.+\\.ts?$': 'babel-jest',
|
|
||||||
'^.+\\.js?$': 'ts-jest',
|
|
||||||
'^.+\\.jsx?$': 'babel-jest',
|
|
||||||
},
|
|
||||||
preset: 'ts-jest/presets/js-with-ts',
|
|
||||||
testEnvironment: 'node',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
{
|
|
||||||
plugin: CracoAlias,
|
|
||||||
options: {
|
|
||||||
source: 'tsconfig',
|
|
||||||
tsConfigPath: 'tsconfig.paths.json',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
|
@ -2,6 +2,7 @@
|
||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
});
|
});
|
||||||
|
|
||||||
const withTM = require('next-transpile-modules')(['ramda']);
|
const withTM = require('next-transpile-modules')(['ramda']);
|
||||||
|
|
||||||
module.exports = withBundleAnalyzer(
|
module.exports = withBundleAnalyzer(
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"mobx": "^6.3.10",
|
"mobx": "^6.3.10",
|
||||||
"mobx-persist-store": "^1.0.4",
|
"mobx-persist-store": "^1.0.4",
|
||||||
"mobx-react-lite": "^3.2.3",
|
"mobx-react-lite": "^3.2.3",
|
||||||
"next": "^12.0.7",
|
"next": "^12.1.0",
|
||||||
"photoswipe": "^4.1.3",
|
"photoswipe": "^4.1.3",
|
||||||
"raleway-cyrillic": "^4.0.2",
|
"raleway-cyrillic": "^4.0.2",
|
||||||
"ramda": "^0.26.1",
|
"ramda": "^0.26.1",
|
||||||
|
|
128
yarn.lock
128
yarn.lock
|
@ -92,10 +92,10 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
webpack-bundle-analyzer "4.3.0"
|
webpack-bundle-analyzer "4.3.0"
|
||||||
|
|
||||||
"@next/env@12.0.9":
|
"@next/env@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.0.9.tgz#4c9e9eef00226145d9629a846b8cc31878e1328c"
|
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.0.tgz#73713399399b34aa5a01771fb73272b55b22c314"
|
||||||
integrity sha512-oBlkyDop0Stf7MPIzETGv5r0YT/G/weBrknoPOUTaa5qwOeGjuy6gsOVc/SBtrBkOoBmRpD+fFhQJPvmo1mS+g==
|
integrity sha512-nrIgY6t17FQ9xxwH3jj0a6EOiQ/WDHUos35Hghtr+SWN/ntHIQ7UpuvSi0vaLzZVHQWaDupKI+liO5vANcDeTQ==
|
||||||
|
|
||||||
"@next/eslint-plugin-next@^12.0.8":
|
"@next/eslint-plugin-next@^12.0.8":
|
||||||
version "12.0.9"
|
version "12.0.9"
|
||||||
|
@ -104,60 +104,60 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
glob "7.1.7"
|
glob "7.1.7"
|
||||||
|
|
||||||
"@next/swc-android-arm64@12.0.9":
|
"@next/swc-android-arm64@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.0.9.tgz#2cdbcc1814471044ea0e057b475090d25654833c"
|
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.1.0.tgz#865ba3a9afc204ff2bdeea49dd64d58705007a39"
|
||||||
integrity sha512-aVqgsEn5plmUH2X58sjzhHsH/6majucWTMaaBEs7hHO2+GCwCZc7zaLH4XCBMKPES9Yaja8/pYUbvZQE9DqgFw==
|
integrity sha512-/280MLdZe0W03stA69iL+v6I+J1ascrQ6FrXBlXGCsGzrfMaGr7fskMa0T5AhQIVQD4nA/46QQWxG//DYuFBcA==
|
||||||
|
|
||||||
"@next/swc-darwin-arm64@12.0.9":
|
"@next/swc-darwin-arm64@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.0.9.tgz#ea200929d7116de12c6f3b13ff75f9522c2153e3"
|
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.0.tgz#08e8b411b8accd095009ed12efbc2f1d4d547135"
|
||||||
integrity sha512-uAgRKm4a2nVdyBiPPJokvmDD1saugOvxljz9ld2ih0CCg5S9vBhqaj3kPGCQBj9hSu3q+Lng2CHnQqG3ga1jzA==
|
integrity sha512-R8vcXE2/iONJ1Unf5Ptqjk6LRW3bggH+8drNkkzH4FLEQkHtELhvcmJwkXcuipyQCsIakldAXhRbZmm3YN1vXg==
|
||||||
|
|
||||||
"@next/swc-darwin-x64@12.0.9":
|
"@next/swc-darwin-x64@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.0.9.tgz#32800a7a9aff4bfd2038b0bce3657ece8708a87b"
|
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.0.tgz#fcd684497a76e8feaca88db3c394480ff0b007cd"
|
||||||
integrity sha512-fDOs2lZIyrAdU18IxMA5orBPn9qLbOdu55gXSTNZOhyRJ8ugtbUAejsK7OL0boJy0CCHPAdVRXm01Mwk8tZ9RQ==
|
integrity sha512-ieAz0/J0PhmbZBB8+EA/JGdhRHBogF8BWaeqR7hwveb6SYEIJaDNQy0I+ZN8gF8hLj63bEDxJAs/cEhdnTq+ug==
|
||||||
|
|
||||||
"@next/swc-linux-arm-gnueabihf@12.0.9":
|
"@next/swc-linux-arm-gnueabihf@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.0.9.tgz#da012dfb69ad2abc3d4045395581b650048bdd7c"
|
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.0.tgz#9ec6380a27938a5799aaa6035c205b3c478468a7"
|
||||||
integrity sha512-/ni0p9DBvATUML9RQ1ycQuf05uOYKdzA6iI8+eRsARjpGbFVUFbge7XPzlj9g2Q9YWgoN8CSjFGnKRlyky5uHA==
|
integrity sha512-njUd9hpl6o6A5d08dC0cKAgXKCzm5fFtgGe6i0eko8IAdtAPbtHxtpre3VeSxdZvuGFh+hb0REySQP9T1ttkog==
|
||||||
|
|
||||||
"@next/swc-linux-arm64-gnu@12.0.9":
|
"@next/swc-linux-arm64-gnu@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.0.9.tgz#fe704c0a1cb048ef19d4a24b2c990574c96c933b"
|
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.0.tgz#7f4196dff1049cea479607c75b81033ae2dbd093"
|
||||||
integrity sha512-AphxilJDf95rUxJDHgM9Ww1DaYXZWqTvoKwXeej/0SgSvICcRZrLaFDrkojdXz0Rxr4igX2OdYR1S4/Hj1jWOQ==
|
integrity sha512-OqangJLkRxVxMhDtcb7Qn1xjzFA3s50EIxY7mljbSCLybU+sByPaWAHY4px97ieOlr2y4S0xdPKkQ3BCAwyo6Q==
|
||||||
|
|
||||||
"@next/swc-linux-arm64-musl@12.0.9":
|
"@next/swc-linux-arm64-musl@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.0.9.tgz#b2bb68940903cd64f7875979ed9907e946dc4f3e"
|
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.0.tgz#b445f767569cdc2dddee785ca495e1a88c025566"
|
||||||
integrity sha512-K5jbvNNzF3mRjWmPdxP5Bg87i7FHivfBj/L0KJlxpkLSC8sffBJDmB6jtMnI7wiPj9J6vmLkbGtSosln78xAlQ==
|
integrity sha512-hB8cLSt4GdmOpcwRe2UzI5UWn6HHO/vLkr5OTuNvCJ5xGDwpPXelVkYW/0+C3g5axbDW2Tym4S+MQCkkH9QfWA==
|
||||||
|
|
||||||
"@next/swc-linux-x64-gnu@12.0.9":
|
"@next/swc-linux-x64-gnu@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.0.9.tgz#b700ba095551d4f6e830b92d4593a3b6e73bba82"
|
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.0.tgz#67610e9be4fbc987de7535f1bcb17e45fe12f90e"
|
||||||
integrity sha512-bJZ9bkMkQzsY+UyWezEZ77GWQ4TzwKeXdayX3U3+aEkL8k5C6eKBXlidWdrhu0teLmaUXIyWerWrLnJzwGXdfw==
|
integrity sha512-OKO4R/digvrVuweSw/uBM4nSdyzsBV5EwkUeeG4KVpkIZEe64ZwRpnFB65bC6hGwxIBnTv5NMSnJ+0K/WmG78A==
|
||||||
|
|
||||||
"@next/swc-linux-x64-musl@12.0.9":
|
"@next/swc-linux-x64-musl@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.0.9.tgz#678460266f544b52f1190ef0c3494e436608591e"
|
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.0.tgz#ea19a23db08a9f2e34ac30401f774cf7d1669d31"
|
||||||
integrity sha512-SR9p0R+v1T32DTXPVAXZw31pmJAkSDotC6Afy+mfC0xrEL3pp95R8sGXYAAUCEPkQp0MEeUOVy2LrToe92X7hQ==
|
integrity sha512-JohhgAHZvOD3rQY7tlp7NlmvtvYHBYgY0x5ZCecUT6eCCcl9lv6iV3nfu82ErkxNk1H893fqH0FUpznZ/H3pSw==
|
||||||
|
|
||||||
"@next/swc-win32-arm64-msvc@12.0.9":
|
"@next/swc-win32-arm64-msvc@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.0.9.tgz#f70e5bd0821ca168aeef117e51ab870265ceeeb1"
|
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.0.tgz#eadf054fc412085659b98e145435bbba200b5283"
|
||||||
integrity sha512-mzQ1A8vfHhJrvEy5KJZGZWEByXthyKfWofvFaf+oo/5nJl/0Bz1ODP2ajSmbLG++77Eo2AROgbm9pkW1ucvG2A==
|
integrity sha512-T/3gIE6QEfKIJ4dmJk75v9hhNiYZhQYAoYm4iVo1TgcsuaKLFa+zMPh4056AHiG6n9tn2UQ1CFE8EoybEsqsSw==
|
||||||
|
|
||||||
"@next/swc-win32-ia32-msvc@12.0.9":
|
"@next/swc-win32-ia32-msvc@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.0.9.tgz#0b853793754642cde9f9099087d4a86b6a99a24d"
|
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.0.tgz#68faeae10c89f698bf9d28759172b74c9c21bda1"
|
||||||
integrity sha512-MpD2vj1zjo1u3J3wiz3pEKse19Etz+P0GL6XfQkB/9a84vJQ1JWMaWBjmIdivzZv718Il2pRSSx8hymwPfguYQ==
|
integrity sha512-iwnKgHJdqhIW19H9PRPM9j55V6RdcOo6rX+5imx832BCWzkDbyomWnlzBfr6ByUYfhohb8QuH4hSGEikpPqI0Q==
|
||||||
|
|
||||||
"@next/swc-win32-x64-msvc@12.0.9":
|
"@next/swc-win32-x64-msvc@12.1.0":
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.0.9.tgz#f7d3b59000082cf65c84fdc61930b708aa5446e5"
|
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.0.tgz#d27e7e76c87a460a4da99c5bfdb1618dcd6cd064"
|
||||||
integrity sha512-1c/sxp/4Qz4F6rCxiYqAnrmghCOFt5hHZ9Kd+rXFW5Mqev4C4XDOUMHdBH55HgnJZqngYhOE0r/XNkCtsIojig==
|
integrity sha512-aBvcbMwuanDH4EMrL2TthNJy+4nP59Bimn8egqv6GHMVj0a44cU6Au4PjOhLNqEh9l+IpRGBqMTzec94UdC5xg==
|
||||||
|
|
||||||
"@nodelib/fs.scandir@2.1.5":
|
"@nodelib/fs.scandir@2.1.5":
|
||||||
version "2.1.5"
|
version "2.1.5"
|
||||||
|
@ -2007,28 +2007,28 @@ next-transpile-modules@^9.0.0:
|
||||||
enhanced-resolve "^5.7.0"
|
enhanced-resolve "^5.7.0"
|
||||||
escalade "^3.1.1"
|
escalade "^3.1.1"
|
||||||
|
|
||||||
next@^12.0.7:
|
next@^12.1.0:
|
||||||
version "12.0.9"
|
version "12.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/next/-/next-12.0.9.tgz#4eb3006b63bb866f5c2918ca0003e98f4259e063"
|
resolved "https://registry.yarnpkg.com/next/-/next-12.1.0.tgz#c33d753b644be92fc58e06e5a214f143da61dd5d"
|
||||||
integrity sha512-omfYqoR/DvbdOIJ6SS1unKJ4mGIxUPs0RPa7wr/Mft22OCKgJhuG+aI9KFYi5ZJBwoFQk1vqaMKpWz5qr+dN0Q==
|
integrity sha512-s885kWvnIlxsUFHq9UGyIyLiuD0G3BUC/xrH0CEnH5lHEWkwQcHOORgbDF0hbrW9vr/7am4ETfX4A7M6DjrE7Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@next/env" "12.0.9"
|
"@next/env" "12.1.0"
|
||||||
caniuse-lite "^1.0.30001283"
|
caniuse-lite "^1.0.30001283"
|
||||||
postcss "8.4.5"
|
postcss "8.4.5"
|
||||||
styled-jsx "5.0.0"
|
styled-jsx "5.0.0"
|
||||||
use-subscription "1.5.1"
|
use-subscription "1.5.1"
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
"@next/swc-android-arm64" "12.0.9"
|
"@next/swc-android-arm64" "12.1.0"
|
||||||
"@next/swc-darwin-arm64" "12.0.9"
|
"@next/swc-darwin-arm64" "12.1.0"
|
||||||
"@next/swc-darwin-x64" "12.0.9"
|
"@next/swc-darwin-x64" "12.1.0"
|
||||||
"@next/swc-linux-arm-gnueabihf" "12.0.9"
|
"@next/swc-linux-arm-gnueabihf" "12.1.0"
|
||||||
"@next/swc-linux-arm64-gnu" "12.0.9"
|
"@next/swc-linux-arm64-gnu" "12.1.0"
|
||||||
"@next/swc-linux-arm64-musl" "12.0.9"
|
"@next/swc-linux-arm64-musl" "12.1.0"
|
||||||
"@next/swc-linux-x64-gnu" "12.0.9"
|
"@next/swc-linux-x64-gnu" "12.1.0"
|
||||||
"@next/swc-linux-x64-musl" "12.0.9"
|
"@next/swc-linux-x64-musl" "12.1.0"
|
||||||
"@next/swc-win32-arm64-msvc" "12.0.9"
|
"@next/swc-win32-arm64-msvc" "12.1.0"
|
||||||
"@next/swc-win32-ia32-msvc" "12.0.9"
|
"@next/swc-win32-ia32-msvc" "12.1.0"
|
||||||
"@next/swc-win32-x64-msvc" "12.0.9"
|
"@next/swc-win32-x64-msvc" "12.1.0"
|
||||||
|
|
||||||
normalize-path@^3.0.0, normalize-path@~3.0.0:
|
normalize-path@^3.0.0, normalize-path@~3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue