Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleface committed Aug 19, 2020
1 parent 358e5e0 commit 4cbf06a
Show file tree
Hide file tree
Showing 3 changed files with 1,559 additions and 1,862 deletions.
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
"onDeleteAccount": "cozy-konnector-dev src/onDeleteAccount.js",
"standalone": "cozy-konnector-standalone",
"pretest": "npm run clean",
"test": "konitor testit .",
"jest": "jest",
"check": "konitor check .",
"clean": "rm -rf ./data",
"build": "webpack",
"lint": "eslint --fix .",
Expand All @@ -41,30 +39,29 @@
"travisDeployKey": "./bin/generate_travis_deploy_key"
},
"dependencies": {
"cozy-client": "13.14.1",
"cozy-client": "13.20.2",
"cozy-konnector-libs": "4.34.5",
"googleapis": "48.0.0",
"json-loader": "0.5.7",
"lodash": "4.17.19",
"lodash": "4.17.20",
"p-limit": "2.3.0"
},
"devDependencies": {
"chalk": "4.0.0",
"chalk": "4.1.0",
"clear": "0.1.0",
"configstore": "5.0.1",
"copy-webpack-plugin": "5.1.1",
"cozy-app-publish": "0.24.0",
"copy-webpack-plugin": "6.0.3",
"cozy-app-publish": "0.25.0",
"cozy-jobs-cli": "1.13.6",
"eslint-config-cozy-app": "1.5.0",
"figlet": "1.5.0",
"git-directory-deploy": "1.5.1",
"husky": "4.2.5",
"jest": "25.5.4",
"konitor": "0.10.3",
"jest": "26.4.0",
"minimist": "1.2.5",
"mockdate": "2.0.5",
"svgo": "1.3.2",
"webpack": "4.43.0",
"webpack": "4.44.1",
"webpack-cli": "3.3.12"
}
}
33 changes: 24 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
var path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
const webpack = require('webpack')
const fs = require('fs')
const SvgoInstance = require('svgo')

const index = require('./package.json').main

const svgo = new SvgoInstance()
const readManifest = () =>
JSON.parse(fs.readFileSync(path.join(__dirname, './manifest.konnector')))

const svgo = new SvgoInstance({
plugins: [
{
inlineStyles: { onlyMatchedOnce: false }
}
]
})

let iconName
try {
Expand All @@ -29,14 +39,19 @@ module.exports = {
filename: '[name].js'
},
plugins: [
new CopyPlugin([
{ from: 'manifest.konnector' },
{ from: 'package.json' },
{ from: 'README.md' },
{ from: 'assets', transform: optimizeSVGIcon },
{ from: '.travis.yml' },
{ from: 'LICENSE' }
])
new CopyPlugin({
patterns: [
{ from: 'manifest.konnector' },
{ from: 'package.json' },
{ from: 'README.md' },
{ from: 'assets', transform: optimizeSVGIcon },
{ from: '.travis.yml' },
{ from: 'LICENSE' }
]
}),
new webpack.DefinePlugin({
__WEBPACK_PROVIDED_MANIFEST__: JSON.stringify(readManifest())
})
],
module: {
// to ignore the warnings like :
Expand Down
Loading

0 comments on commit 4cbf06a

Please sign in to comment.