Working yarn workspace build

This commit is contained in:
Matthew Rathbone
2021-06-11 09:23:06 -05:00
parent 487011954b
commit 18ccc5af46
6 changed files with 15320 additions and 38 deletions

View File

@@ -6,10 +6,6 @@
"license": "MIT",
"private": true,
"workspaces": {
"packages": ["packages/*"],
"nohoist": [
"**/**",
"**/**/**"
]
"packages": ["packages/*"]
}
}

View File

@@ -103,14 +103,14 @@
"@types/pg": "^7.14.7",
"@types/sql-formatter": "^2.3.0",
"@types/tabulator-tables": "^4.7.2",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"@vue/cli-plugin-babel": "^4.1.2",
"@vue/cli-plugin-eslint": "^4.1.2",
"@vue/cli-plugin-typescript": "~4.5.4",
"@vue/cli-plugin-unit-jest": "~4.4.0",
"@vue/cli-service": "^4.1.2",
"@vue/eslint-config-typescript": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-plugin-unit-jest": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/eslint-config-typescript": "^7.0.0",
"@vue/test-utils": "^1.0.3",
"aws-sdk": "^2.645.0",
"babel-eslint": "^10.0.1",
@@ -120,13 +120,13 @@
"electron-download": "^4.1.1",
"electron-rebuild": "^1.8.5",
"electron-updater": "^4.2.5",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sqlite3": "^5.0.2",
"testcontainers": "^4.6.0",
"typescript": "^3.9.7",
"typescript": "~4.1.5",
"vue-cli-plugin-electron-builder": "^2.0.0",
"vue-template-compiler": "^2.6.10",
"vue-template-compiler": "^2.6.11",
"vuepress": "^1.5.0"
},
"eslintConfig": {

View File

@@ -4,30 +4,9 @@ import fs from 'fs';
import {homedir} from 'os';
import path from 'path';
import mkdirp from 'mkdirp';
import envPaths from 'env-paths';
import { Error as CustomError } from '../lib/errors'
let configPath = '';
export function getConfigPath() {
if (configPath) {
return configPath;
}
const configName = 'sqlectron.json';
const oldConfigPath = path.join(homedir(), `.${configName}`);
if (fileExistsSync(oldConfigPath)) {
configPath = oldConfigPath;
} else {
const newConfigDir = envPaths('Sqlectron', { suffix: '' }).config;
configPath = path.join(newConfigDir, configName);
}
return configPath;
}
export function fileExists(filename: string) {
return new Promise((resolve) => {
fs.stat(filename, (err, stats) => {

View File

@@ -13,6 +13,7 @@ const externals = ['better-sqlite3', 'sequelize', 'typeorm', 'reflect-metadata',
module.exports = {
pluginOptions: {
electronBuilder: {
nodeModulesPath: ['./node_modules', '../../node_modules'],
chainWebpackMainProcess: config => {
config.module
.rule('babel')
@@ -32,6 +33,8 @@ module.exports = {
plugins: [
['@babel/plugin-proposal-decorators', {legacy: true}],
['@babel/plugin-proposal-class-properties', {loose: true}],
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
]
})
},

1
postcss.config.js Normal file
View File

@@ -0,0 +1 @@
module.exports = {}

15303
yarn.lock Normal file
View File

File diff suppressed because it is too large Load Diff