Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Inject version
  • Loading branch information
simonwep committed Dec 5, 2020
1 parent a056616 commit 76e871d
Show file tree
Hide file tree
Showing 9 changed files with 1,413 additions and 1,452 deletions.
4 changes: 2 additions & 2 deletions dist/pickr.es5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/pickr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.js.map

Large diffs are not rendered by default.

2,804 changes: 1,382 additions & 1,422 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@
"test:ts": "tsc --target ES6 --noImplicitAny --noEmit spec/ts/index.ts"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-transform-parameters": "^7.10.5",
"@babel/preset-env": "^7.11.5",
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-transform-parameters": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"css-loader": "^4.2.2",
"eslint": "^7.8.1",
"babel-loader": "^8.2.2",
"css-loader": "^5.0.1",
"eslint": "^7.15.0",
"eslint-config-simon": "^2.1.0",
"eslint-loader": "^4.0.2",
"mini-css-extract-plugin": "^0.11.0",
"node-sass": "^4.14.1",
"mini-css-extract-plugin": "^1.3.2",
"node-sass": "^5.0.0",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"postcss-loader": "^3.0.0",
"sass-loader": "^10.0.2",
"typescript": "^4.0.2",
"webpack": "^4.44.1",
"postcss-loader": "^4.1.0",
"sass-loader": "^10.1.0",
"typescript": "^4.1.2",
"webpack": "^4.44.2",
"webpack-cleanup-plugin": "^0.5.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
Expand All @@ -53,6 +53,6 @@
},
"dependencies": {
"nanopop": "^2.1.0",
"core-js": "^3.6.5"
"core-js": "^3.8.0"
}
}
3 changes: 3 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ const path = require('path');
banner,
new webpack.SourceMapDevToolPlugin({
filename: `${filename}.map`
}),
new webpack.DefinePlugin({
VERSION: JSON.stringify(version)
})
]
}).catch(console.error);
Expand Down
3 changes: 1 addition & 2 deletions src/js/pickr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as _ from './utils/utils';
import {version} from '../../package';
import {parseToHSVA} from './utils/color';
import {HSVaColor} from './utils/hsvacolor';
import Moveable from './libs/moveable';
Expand All @@ -13,7 +12,7 @@ class Pickr {
static utils = _;

// Assign version and export
static version = version;
static version = VERSION;

// Default strings
static I18N_DEFAULTS = {
Expand Down
13 changes: 6 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const {version} = require('./package.json');
const webpack = require('webpack');

module.exports = {
entry: {
Expand Down Expand Up @@ -32,13 +34,7 @@ module.exports = {
{
test: /\.scss$/,
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
hmr: true,
reloadAll: true
},
},
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader'
]
Expand All @@ -49,6 +45,9 @@ module.exports = {
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css'
}),
new webpack.DefinePlugin({
VERSION: JSON.stringify(version)
})
]
};

0 comments on commit 76e871d

Please sign in to comment.