react-js-banner 0.6.0-beta2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +7 -10
- package/README.md +13 -0
- package/build/index.js +2 -4682
- package/build/index.js.LICENSE.txt +1 -0
- package/package.json +21 -15
- package/webpack.config.js +5 -20
- package/.eslintrc.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-js-banner",
|
|
3
|
-
"version": "0.6.0
|
|
4
|
-
"description": "React JS Banner component customizable with
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "React JS Banner component customizable with auto hide option",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"react": "^16.
|
|
7
|
+
"react": "^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@babel/polyfill": "^7.
|
|
10
|
+
"@babel/polyfill": "^7.8.7",
|
|
11
|
+
"babel-preset-react": "^6.24.1",
|
|
12
|
+
"core-js": "^3.36.1",
|
|
13
|
+
"react": "^16.0.0",
|
|
14
|
+
"regenerator-runtime": "^0.14.1"
|
|
11
15
|
},
|
|
12
16
|
"scripts": {
|
|
13
17
|
"start": "webpack --watch",
|
|
@@ -18,18 +22,20 @@
|
|
|
18
22
|
"email": "jciccio@gmail.com"
|
|
19
23
|
},
|
|
20
24
|
"devDependencies": {
|
|
21
|
-
"@babel/core": "^7.
|
|
22
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
23
|
-
"@babel/preset-env": "^7.
|
|
24
|
-
"@babel/preset-react": "^7.
|
|
25
|
-
"babel-loader": "^
|
|
26
|
-
"css-loader": "^
|
|
25
|
+
"@babel/core": "^7.8.7",
|
|
26
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
27
|
+
"@babel/preset-env": "^7.8.7",
|
|
28
|
+
"@babel/preset-react": "^7.24.1",
|
|
29
|
+
"babel-loader": "^9.1.3",
|
|
30
|
+
"css-loader": "^6.10.0",
|
|
27
31
|
"eslint": "^6.8.0",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
32
|
+
"eslint-config-airbnb-base": "^14.0.0",
|
|
33
|
+
"eslint-plugin-import": "^2.20.1",
|
|
34
|
+
"eslint-plugin-react": "^7.19.0",
|
|
35
|
+
"react-dom": "^16.6.3",
|
|
36
|
+
"style-loader": "^1.0.1",
|
|
37
|
+
"webpack": "^5.9.0",
|
|
38
|
+
"webpack-cli": "^4.2.0"
|
|
33
39
|
},
|
|
34
40
|
"repository": {
|
|
35
41
|
"type": "git",
|
package/webpack.config.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//const HTMLWebpackPlugin = require('html-webpack-plugin');
|
|
4
|
-
|
|
1
|
+
var path = require('path');
|
|
5
2
|
module.exports = {
|
|
3
|
+
mode: 'production',
|
|
6
4
|
entry: './src/index.js',
|
|
7
|
-
mode: 'development',
|
|
8
5
|
output: {
|
|
9
6
|
path: path.resolve(__dirname, 'build'),
|
|
10
7
|
filename: 'index.js',
|
|
@@ -21,14 +18,6 @@ module.exports = {
|
|
|
21
18
|
loader: 'babel-loader'
|
|
22
19
|
}
|
|
23
20
|
},
|
|
24
|
-
{
|
|
25
|
-
test:/\.html$/i,
|
|
26
|
-
use: [
|
|
27
|
-
{
|
|
28
|
-
loader: 'html-loader'
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
21
|
{
|
|
33
22
|
test: /\.css$/,
|
|
34
23
|
include: path.resolve(__dirname, 'src'),
|
|
@@ -37,11 +26,7 @@ module.exports = {
|
|
|
37
26
|
}
|
|
38
27
|
]
|
|
39
28
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
devtool: 'inline-source-map'
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
externals: {
|
|
30
|
+
'react': 'commonjs react' // this line is just to use the React dependency of our parent-testing-project instead of using our own React.
|
|
31
|
+
}
|
|
47
32
|
};
|
package/.eslintrc.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|