Fix build issues (#104)
* fix linting issues on webpack.config.js * sync with demo plugin, go mod tidy * npm audit fix There's a rash of lodash issues right now that have no available fix, but I'm fixing the remaining issues. * use exact versions * update webapp/package-lock.json too * manually clean up go.mod/go.sum * private package.json
This commit is contained in:
parent
a49d6f6dd4
commit
becbbc9685
5 changed files with 5006 additions and 1333 deletions
|
@ -49,6 +49,7 @@ issues:
|
|||
exclude-rules:
|
||||
- path: server/manifest.go
|
||||
linters:
|
||||
- deadcode
|
||||
- unused
|
||||
- varcheck
|
||||
- path: server/configuration.go
|
||||
|
@ -56,5 +57,6 @@ issues:
|
|||
- unused
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- bodyclose
|
||||
- goconst
|
||||
- scopelint # https://github.com/kyoh86/scopelint/issues/4
|
||||
|
|
|
@ -23,11 +23,13 @@ const config = {
|
|||
allExtensions: true,
|
||||
isTSX: true,
|
||||
}],
|
||||
['@emotion/babel-preset-css-prop'],
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'@babel/proposal-object-rest-spread',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'babel-plugin-typescript-to-proptypes',
|
||||
],
|
||||
};
|
||||
|
|
6316
webapp/package-lock.json
generated
6316
webapp/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
"name": "plugin-starter",
|
||||
"version": "0.0.1",
|
||||
"description": "This plugin serves as a starting point for writing a Mattermost plugin.",
|
||||
"main": "src/index.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "webpack --mode=production",
|
||||
"build:watch": "webpack --mode=production --watch",
|
||||
|
@ -14,19 +11,20 @@
|
|||
"test:watch": "jest --watch",
|
||||
"test-ci": "jest --forceExit --detectOpenHandles --maxWorkers=2"
|
||||
},
|
||||
"author": "",
|
||||
"license": "",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.4.4",
|
||||
"@babel/core": "7.4.5",
|
||||
"@babel/plugin-proposal-class-properties": "7.4.4",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.5.5",
|
||||
"@babel/plugin-proposal-optional-chaining": "7.10.4",
|
||||
"@babel/plugin-syntax-dynamic-import": "7.2.0",
|
||||
"@babel/polyfill": "7.4.4",
|
||||
"@babel/preset-env": "7.4.5",
|
||||
"@babel/preset-react": "7.0.0",
|
||||
"@babel/preset-typescript": "7.3.3",
|
||||
"@babel/runtime": "7.4.5",
|
||||
"@emotion/babel-preset-css-prop": "10.0.27",
|
||||
"@emotion/core": "10.0.28",
|
||||
"@types/enzyme": "3.10.4",
|
||||
"@types/jest": "24.0.25",
|
||||
"@types/node": "12.12.24",
|
||||
|
@ -38,7 +36,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "1.13.0",
|
||||
"@typescript-eslint/parser": "1.13.0",
|
||||
"babel-eslint": "10.0.2",
|
||||
"babel-jest": "24.9.0",
|
||||
"babel-jest": "26.1.0",
|
||||
"babel-loader": "8.0.6",
|
||||
"babel-plugin-typescript-to-proptypes": "0.17.1",
|
||||
"css-loader": "3.6.0",
|
||||
|
@ -51,7 +49,7 @@
|
|||
"eslint-plugin-react": "7.14.2",
|
||||
"file-loader": "4.0.0",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "24.9.0",
|
||||
"jest": "25.1.0",
|
||||
"jest-canvas-mock": "2.2.0",
|
||||
"jest-junit": "10.0.0",
|
||||
"mattermost-webapp": "github:mattermost/mattermost-webapp#23f5f93d9f12a7e2b5623e5cee6814366abd9a0f",
|
||||
|
|
|
@ -42,6 +42,7 @@ module.exports = {
|
|||
modules: [
|
||||
'src',
|
||||
'node_modules',
|
||||
path.resolve(__dirname),
|
||||
],
|
||||
extensions: ['*', '.js', '.jsx', '.ts', '.tsx'],
|
||||
},
|
||||
|
@ -69,7 +70,9 @@ module.exports = {
|
|||
{
|
||||
loader: 'sass-loader',
|
||||
options: {
|
||||
includePaths: ['node_modules/compass-mixins/lib', 'sass'],
|
||||
sassOptions: {
|
||||
includePaths: ['node_modules/compass-mixins/lib', 'sass'],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Reference in a new issue