mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 06:35:56 +08:00
Update webpacker to version 5.4.4 [SCI-7926]
This commit is contained in:
parent
b966d3ba54
commit
babb46baa7
11
Dockerfile
11
Dockerfile
|
@ -3,14 +3,21 @@ MAINTAINER BioSistemika <info@biosistemika.com>
|
|||
|
||||
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
|
||||
|
||||
# install nvm and node
|
||||
ENV NODE_VERSION=16.13.0
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
|
||||
ENV NVM_DIR=/root/.nvm
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
|
||||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
|
||||
|
||||
# additional dependecies
|
||||
# libreoffice for file preview generation
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -y \
|
||||
libjemalloc2 \
|
||||
libssl-dev \
|
||||
nodejs \
|
||||
npm \
|
||||
postgresql-client \
|
||||
default-jre-headless \
|
||||
poppler-utils \
|
||||
|
|
|
@ -3,14 +3,21 @@ MAINTAINER BioSistemika <info@biosistemika.com>
|
|||
|
||||
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
|
||||
|
||||
# install nvm and node
|
||||
ENV NODE_VERSION=16.13.0
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
|
||||
ENV NVM_DIR=/root/.nvm
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
|
||||
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
|
||||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
|
||||
|
||||
# additional dependecies
|
||||
# libreoffice for file preview generation
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -y \
|
||||
libjemalloc2 \
|
||||
libssl-dev \
|
||||
nodejs \
|
||||
npm \
|
||||
groff-base \
|
||||
awscli \
|
||||
postgresql-client \
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
// After upgrading webpacker to 4.0.0 this causes issues.
|
||||
// When reviving the project it will have to be changed anyway
|
||||
|
||||
//import "babel-polyfill";
|
||||
//import "intl";
|
||||
//import "intl/locale-data/jsonp/en-US.js"
|
||||
//import React from "react";
|
||||
//import ReactDOM from "react-dom";
|
||||
//import App from "../src/";
|
||||
|
||||
//document.addEventListener("DOMContentLoaded", () => {
|
||||
//ReactDOM.render(<App />, document.getElementById("root"));
|
||||
//});
|
|
@ -1,8 +0,0 @@
|
|||
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
|
||||
|
||||
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
|
||||
@import "~react-bootstrap-table/dist/react-bootstrap-table.min";
|
||||
@import "react-tagsinput/react-tagsinput.css";
|
||||
@import "react-bootstrap-timezone-picker/dist/react-bootstrap-timezone-picker.min.css";
|
||||
|
||||
@import "../src/styles/main";
|
|
@ -3,3 +3,4 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development'
|
|||
const environment = require('./environment')
|
||||
|
||||
module.exports = environment.toWebpackConfig()
|
||||
module.exports.output.filename = 'js/[name]-[hash].js';
|
||||
|
|
|
@ -3,3 +3,4 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
|||
const environment = require('./environment')
|
||||
|
||||
module.exports = environment.toWebpackConfig()
|
||||
module.exports.output.filename = 'js/[name]-[hash].js';
|
||||
|
|
|
@ -61,8 +61,8 @@ development:
|
|||
dev_server:
|
||||
https: false
|
||||
host: 0.0.0.0
|
||||
port: 3035
|
||||
public: 0.0.0.0:3035
|
||||
port: 8080
|
||||
public: 0.0.0.0:8080
|
||||
hmr: false
|
||||
# Inline should be set to true if using HMR
|
||||
inline: true
|
||||
|
|
|
@ -45,7 +45,7 @@ services:
|
|||
stdin_open: true
|
||||
tty: true
|
||||
ports:
|
||||
- "3035:3035"
|
||||
- "8080:8080"
|
||||
command: >
|
||||
bash -c "./bin/webpack-dev-server"
|
||||
environment:
|
||||
|
|
44
package.json
44
package.json
|
@ -22,10 +22,7 @@
|
|||
},
|
||||
"postinstall": "./engines_yarn_install.js",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-transform-react-jsx-source": "^7.0.0",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"@webpack-cli/serve": "^2.0.1",
|
||||
"eslint": "^5.14.1",
|
||||
"eslint-config-airbnb": "^15.1.0",
|
||||
"eslint-config-airbnb-base": "^13.0.0",
|
||||
|
@ -41,24 +38,14 @@
|
|||
"flow-typed": "^2.5.1",
|
||||
"prettier": "^1.13.7",
|
||||
"prettier-eslint": "^8.8.2",
|
||||
"webpack-dev-server": "^3.7.2"
|
||||
"webpack-dev-server": "^4.13.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
||||
"@babel/plugin-transform-runtime": "^7.18.10",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@fortawesome/fontawesome-free": "^5.2.0",
|
||||
"@joeattardi/emoji-button": "^4.6.2",
|
||||
"@rails/webpacker": "^4.0.7",
|
||||
"@rails/webpacker": "^5.4.4",
|
||||
"autoprefixer": "^7.2.6",
|
||||
"axios": "0.21.2",
|
||||
"babel-loader": "^8.0.0",
|
||||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
||||
"bootstrap-sass": "^3.3.7",
|
||||
"bwip-js": "^3.0.1",
|
||||
"coffee-loader": "^0.8.0",
|
||||
|
@ -79,7 +66,6 @@
|
|||
"moment": "^2.29.4",
|
||||
"moment-timezone": "^0.5.35",
|
||||
"node-gyp": "^3.8.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"path-complete-extname": "^0.1.0",
|
||||
"pdfjs-dist": "^2.5.207",
|
||||
"postcss-loader": "^2.1.6",
|
||||
|
@ -88,27 +74,9 @@
|
|||
"prop-types": "^15.7.2",
|
||||
"rails-erb-loader": "^5.4.2",
|
||||
"raw-loader": "^4.0.2",
|
||||
"react": "^16.8.6",
|
||||
"react-bootstrap": "^0.31.5",
|
||||
"react-bootstrap-table": "^4.3.1",
|
||||
"react-bootstrap-timezone-picker": "^1.0.12",
|
||||
"react-data-grid": "^2.0.80",
|
||||
"react-document-title": "^2.0.3",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-intl": "^2.4.0",
|
||||
"react-intl-redux": "^0.6.0",
|
||||
"react-moment": "^0.6.9",
|
||||
"react-redux": "^5.0.7",
|
||||
"react-router-bootstrap": "^0.24.4",
|
||||
"react-router-dom": "^4.3.1",
|
||||
"react-tagsinput": "^3.17.0",
|
||||
"react-timezone": "^0.2.0",
|
||||
"react-transition-group": "^2.4.0",
|
||||
"redux": "^3.7.2",
|
||||
"redux-thunk": "^2.3.0",
|
||||
"resolve-url-loader": "^2.3.0",
|
||||
"safe-umd-webpack-plugin": "^4.0.0",
|
||||
"sass-loader": "^6.0.7",
|
||||
"sass-loader": "^10.4.1",
|
||||
"shortid": "^2.2.12",
|
||||
"style-loader": "^0.18.2",
|
||||
"styled-components": "^2.4.1",
|
||||
|
@ -123,8 +91,8 @@
|
|||
"vue-template-compiler": "^2.6.12",
|
||||
"vue-turbolinks": "^2.2.1",
|
||||
"vuedraggable": "^2.24.3",
|
||||
"webpack": "^4.35.2",
|
||||
"webpack-cli": "^3.3.5",
|
||||
"webpack": "^4.46.0",
|
||||
"webpack-cli": "^4.3.0",
|
||||
"webpack-manifest-plugin": "^1.3.2",
|
||||
"webpack-merge": "^4.1.3"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue