0
1
Fork 0

feat: porposal remove dependencies

This commit is contained in:
Javier Segarra 2024-11-12 17:59:24 +01:00
parent e554dd1cb1
commit 247ad94199
2 changed files with 10 additions and 29 deletions

View File

@ -5,6 +5,7 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"productName": "Salix", "productName": "Salix",
"author": "Verdnatura", "author": "Verdnatura",
"packageManager": "pnpm@8.15.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.verdnatura.es/hedera-web" "url": "https://git.verdnatura.es/hedera-web"
@ -34,47 +35,28 @@
"glob": "^8.0.3", "glob": "^8.0.3",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"json-loader": "^0.5.7", "json-loader": "^0.5.7",
"mini-css-extract-plugin": "^2.7.0",
"node-sass": "^7.0.1",
"postcss": "^8.4.39",
"postcss-import": "^13.0.0",
"postcss-loader": "^4.3.0",
"postcss-url": "^10.1.3",
"raw-loader": "^4.0.2",
"sass-loader": "^12.6.0",
"style-loader": "^3.3.1",
"url-loader": "^4.1.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1",
"webpack-merge": "^5.8.0",
"yaml-loader": "^0.5.0" "yaml-loader": "^0.5.0"
}, },
"dependencies": { "dependencies": {
"@quasar/extras": "^1.0.0", "@quasar/cli": "^2.3.0",
"@quasar/extras": "^1.16.9",
"axios": "^0.21.1", "axios": "^0.21.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"eslint-plugin-cypress": "^2.13.3",
"js-yaml": "^3.12.1", "js-yaml": "^3.12.1",
"mootools": "^1.5.2",
"pinia": "^2.0.11", "pinia": "^2.0.11",
"promise-polyfill": "^8.2.3", "quasar": "^2.14.5",
"quasar": "^2.6.0",
"require-yaml": "0.0.1", "require-yaml": "0.0.1",
"tinymce": "^6.3.0",
"vue": "^3.3.4", "vue": "^3.3.4",
"vue-i18n": "^9.2.2", "vue-i18n": "^9.2.2",
"vue-router": "^4.0.0" "vue-router": "^4.0.0"
}, },
"scripts": { "scripts": {
"front": "webpack serve --open",
"back": "cd ../vn-database && myvc start && cd ../salix && gulp backOnly", "back": "cd ../vn-database && myvc start && cd ../salix && gulp backOnly",
"resetDatabase": "cd ../salix && gulp docker", "resetDatabase": "cd ../salix && gulp docker",
"cy:open": "npm run resetDatabase && cd ../hedera-web && cypress open", "cy:open": "npm run resetDatabase && cd ../hedera-web && cypress open",
"test:e2e": "npm run resetDatabase && cd ../hedera-web && cypress run", "test:e2e": "npm run resetDatabase && cd ../hedera-web && cypress run",
"cy:open-mindshore": "npm run resetDatabase && cd ../hedera-web-mindshore && cypress open", "cy:open-mindshore": "npm run resetDatabase && cd ../hedera-web-mindshore && cypress open",
"test:e2e-mindshore": "npm run resetDatabase && cd ../hedera-web-mindshore && cypress run", "test:e2e-mindshore": "npm run resetDatabase && cd ../hedera-web-mindshore && cypress run",
"build": "rm -rf build/ ; webpack",
"clean": "rm -rf build/", "clean": "rm -rf build/",
"lint": "eslint --ext .js,.vue ./" "lint": "eslint --ext .js,.vue ./"
}, },

View File

@ -5,7 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const merge = require('webpack-merge').merge; const merge = require('webpack-merge').merge;
const wpConfig = require('./webpack.config.json'); const wpConfig = require('./webpack.config.json');
let env = process.env.NODE_ENV || 'development'; const env = process.env.NODE_ENV || 'development';
const devMode = env === 'development'; const devMode = env === 'development';
const outputPath = path.join(__dirname, wpConfig.buildDir); const outputPath = path.join(__dirname, wpConfig.buildDir);
const publicPath = '/' + wpConfig.buildDir + '/'; const publicPath = '/' + wpConfig.buildDir + '/';
@ -15,7 +15,7 @@ const baseConfig = {
mode: devMode ? 'development' : 'production', mode: devMode ? 'development' : 'production',
output: { output: {
path: outputPath, path: outputPath,
publicPath: publicPath publicPath
}, },
module: { module: {
rules: [ rules: [
@ -31,16 +31,16 @@ const baseConfig = {
}, },
{ {
test: /tinymce\/.*\/skin\.css$/i, test: /tinymce\/.*\/skin\.css$/i,
use: [MiniCssExtractPlugin.loader, 'css-loader'] use: [MiniCssExtractPlugin.loader]
}, },
{ {
test: /tinymce\/.*\/content\.css$/i, test: /tinymce\/.*\/content\.css$/i,
loader: 'css-loader', url: false,
options: { esModule: false } options: { esModule: false }
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: ['style-loader', 'css-loader'], use: ['style-loader'],
exclude: [/node_modules/] exclude: [/node_modules/]
}, },
{ {
@ -59,9 +59,9 @@ const baseConfig = {
test: /\.scss$/, test: /\.scss$/,
use: [ use: [
'style-loader', 'style-loader',
'css-loader',
{ {
loader: 'sass-loader', loader: 'sass-loader',
url: false,
options: { options: {
sourceMap: true sourceMap: true
} }
@ -141,7 +141,6 @@ const devConfig = {
static: __dirname, static: __dirname,
port: wpConfig.devServerPort, port: wpConfig.devServerPort,
headers: { 'Access-Control-Allow-Origin': '*' }, headers: { 'Access-Control-Allow-Origin': '*' },
//stats: { chunks: false },
proxy: { proxy: {
'/api': 'http://localhost:3000', '/api': 'http://localhost:3000',
'/': { '/': {