mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 07:53:34 +01:00
chore: moved next deps to bruno-app package
This commit is contained in:
parent
819e8c2ccd
commit
f8fbc88239
52
package.json
52
package.json
@ -6,55 +6,5 @@
|
|||||||
"packages/bruno-electron",
|
"packages/bruno-electron",
|
||||||
"packages/bruno-tauri",
|
"packages/bruno-tauri",
|
||||||
"packages/bruno-testbench"
|
"packages/bruno-testbench"
|
||||||
],
|
]
|
||||||
"dependencies": {
|
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
|
||||||
"@fortawesome/react-fontawesome": "^0.1.16",
|
|
||||||
"@reduxjs/toolkit": "^1.8.0",
|
|
||||||
"@tabler/icons": "^1.46.0",
|
|
||||||
"@tippyjs/react": "^4.2.6",
|
|
||||||
"axios": "^0.26.0",
|
|
||||||
"classnames": "^2.3.1",
|
|
||||||
"codemirror": "^5.65.2",
|
|
||||||
"codemirror-graphql": "^1.2.5",
|
|
||||||
"escape-html": "^1.0.3",
|
|
||||||
"formik": "^2.2.9",
|
|
||||||
"graphiql": "^1.5.9",
|
|
||||||
"graphql": "^16.2.0",
|
|
||||||
"graphql-request": "^3.7.0",
|
|
||||||
"idb": "^7.0.0",
|
|
||||||
"immer": "^9.0.12",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"mousetrap": "^1.6.5",
|
|
||||||
"nanoid": "^3.1.30",
|
|
||||||
"next": "^12.1.0",
|
|
||||||
"qs": "^6.11.0",
|
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"react-hot-toast": "^2.4.0",
|
|
||||||
"react-redux": "^7.2.6",
|
|
||||||
"react-tabs": "^3.2.3",
|
|
||||||
"sass": "^1.46.0",
|
|
||||||
"split-on-first": "^3.0.0",
|
|
||||||
"styled-components": "^5.3.3",
|
|
||||||
"tailwindcss": "^2.2.19",
|
|
||||||
"yup": "^0.32.11"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@babel/core": "^7.16.0",
|
|
||||||
"@babel/plugin-transform-spread": "^7.16.7",
|
|
||||||
"@babel/preset-env": "^7.16.4",
|
|
||||||
"@babel/preset-react": "^7.16.0",
|
|
||||||
"@babel/runtime": "^7.16.3",
|
|
||||||
"babel-loader": "^8.2.3",
|
|
||||||
"css-loader": "^6.5.1",
|
|
||||||
"file-loader": "^6.2.0",
|
|
||||||
"html-loader": "^3.0.1",
|
|
||||||
"html-webpack-plugin": "^5.5.0",
|
|
||||||
"mini-css-extract-plugin": "^2.4.5",
|
|
||||||
"style-loader": "^3.3.1",
|
|
||||||
"webpack": "^5.64.4",
|
|
||||||
"webpack-cli": "^4.9.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,13 +2,59 @@
|
|||||||
"name": "@usebruno/app",
|
"name": "@usebruno/app",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "../../node_modules/.bin/next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||||
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||||
|
"@fortawesome/react-fontawesome": "^0.1.16",
|
||||||
|
"@reduxjs/toolkit": "^1.8.0",
|
||||||
|
"@tabler/icons": "^1.46.0",
|
||||||
|
"@tippyjs/react": "^4.2.6",
|
||||||
|
"axios": "^0.26.0",
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"codemirror": "^5.65.2",
|
||||||
|
"codemirror-graphql": "^1.2.5",
|
||||||
|
"escape-html": "^1.0.3",
|
||||||
|
"formik": "^2.2.9",
|
||||||
|
"graphiql": "^1.5.9",
|
||||||
|
"graphql": "^16.2.0",
|
||||||
|
"graphql-request": "^3.7.0",
|
||||||
|
"idb": "^7.0.0",
|
||||||
|
"immer": "^9.0.12",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"mousetrap": "^1.6.5",
|
||||||
|
"nanoid": "^3.1.30",
|
||||||
|
"next": "^12.1.0",
|
||||||
|
"qs": "^6.11.0",
|
||||||
|
"react": "^17.0.2",
|
||||||
|
"react-dom": "^17.0.2",
|
||||||
|
"react-hot-toast": "^2.4.0",
|
||||||
|
"react-redux": "^7.2.6",
|
||||||
|
"react-tabs": "^3.2.3",
|
||||||
|
"sass": "^1.46.0",
|
||||||
|
"split-on-first": "^3.0.0",
|
||||||
|
"styled-components": "^5.3.3",
|
||||||
|
"tailwindcss": "^2.2.19",
|
||||||
|
"yup": "^0.32.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.16.0",
|
||||||
|
"@babel/plugin-transform-spread": "^7.16.7",
|
||||||
|
"@babel/preset-env": "^7.16.4",
|
||||||
|
"@babel/preset-react": "^7.16.0",
|
||||||
|
"@babel/runtime": "^7.16.3",
|
||||||
|
"babel-loader": "^8.2.3",
|
||||||
|
"css-loader": "^6.5.1",
|
||||||
|
"file-loader": "^6.2.0",
|
||||||
|
"html-loader": "^3.0.1",
|
||||||
|
"html-webpack-plugin": "^5.5.0",
|
||||||
|
"mini-css-extract-plugin": "^2.4.5",
|
||||||
|
"style-loader": "^3.3.1",
|
||||||
|
"webpack": "^5.64.4",
|
||||||
|
"webpack-cli": "^4.9.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
"start": "electron .",
|
"dev": "electron .",
|
||||||
"build": "next build renderer && next export renderer",
|
"build": "next build renderer && next export renderer",
|
||||||
"pack-app": "npm run build && electron-builder --dir",
|
"pack-app": "npm run build && electron-builder --dir",
|
||||||
"dist": "npm run build && electron-builder"
|
"dist": "npm run build && electron-builder"
|
||||||
@ -19,7 +19,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.26.0",
|
"axios": "^0.26.0",
|
||||||
"electron-is-dev": "^2.0.0",
|
"electron-is-dev": "^2.0.0",
|
||||||
"electron-next": "^3.1.5",
|
|
||||||
"electron-util": "^0.17.2",
|
"electron-util": "^0.17.2",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const isDev = require('electron-is-dev');
|
const isDev = require('electron-is-dev');
|
||||||
const prepareNext = require('electron-next');
|
|
||||||
const { format } = require('url');
|
const { format } = require('url');
|
||||||
const { BrowserWindow, app, Menu } = require('electron');
|
const { BrowserWindow, app, Menu } = require('electron');
|
||||||
const { setContentSecurityPolicy } = require('electron-util');
|
const { setContentSecurityPolicy } = require('electron-util');
|
||||||
@ -24,8 +23,6 @@ let mainWindow;
|
|||||||
|
|
||||||
// Prepare the renderer once the app is ready
|
// Prepare the renderer once the app is ready
|
||||||
app.on('ready', async () => {
|
app.on('ready', async () => {
|
||||||
await prepareNext('../../packages/bruno-app');
|
|
||||||
|
|
||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
width: 1280,
|
width: 1280,
|
||||||
height: 768,
|
height: 768,
|
||||||
@ -37,7 +34,7 @@ app.on('ready', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const url = isDev
|
const url = isDev
|
||||||
? 'http://localhost:8000'
|
? 'http://localhost:3000'
|
||||||
: format({
|
: format({
|
||||||
pathname: path.join(__dirname, '../packages/bruno-app/out/index.html'),
|
pathname: path.join(__dirname, '../packages/bruno-app/out/index.html'),
|
||||||
protocol: 'file:',
|
protocol: 'file:',
|
||||||
|
Loading…
Reference in New Issue
Block a user