amotify 0.0.15 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "UI Component for React",
5
5
  "main": "dist/launch.js",
6
6
  "types": "dist/@types.d.ts",
@@ -33,7 +33,7 @@
33
33
  "@fortawesome/pro-regular-svg-icons": "^6.4.2",
34
34
  "@fortawesome/pro-solid-svg-icons": "^6.4.2",
35
35
  "@fortawesome/react-fontawesome": "^0.2.0",
36
- "jsmin-front": "^0.0.15",
36
+ "jsmin-front": "^0.0.16",
37
37
  "react": "^18.2.0",
38
38
  "react-dom": "^18.2.0",
39
39
  "react-router-dom": "^6.19.0"
@@ -13,7 +13,9 @@ const Styles = {
13
13
  size: amotify.fn.Buttons.Sizes,
14
14
  color: amotify.fn.Buttons.Colors
15
15
  ) => {
16
- let styles: amotifyUniStyleParams = {}
16
+ let styles: amotifyUniStyleParams = {
17
+ fontSize: 'inherit'
18
+ }
17
19
  size = size || 'R';
18
20
  if ( [ 'Plain','Link' ].includes( tone ) ) return {}
19
21
 
@@ -59,7 +61,6 @@ const Styles = {
59
61
  ) => {
60
62
  let styles: amotifyUniStyleParams = {
61
63
  display: 'inlineBlock',
62
- fontSize: 'inherit',
63
64
  fontWeight: 'inherit',
64
65
  fontColor: 'inherit',
65
66
  border: 'unset'
package/src/launch.tsx CHANGED
@@ -1,9 +1,8 @@
1
1
  import 'jsmin-front/@types';
2
- import 'jsmin-front/dist/jsmin';
3
-
4
2
  import '../@types/_';
5
3
 
6
4
  if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange;' );
5
+
7
6
  import { launchID } from './@variables';
8
7
  export const baseElements = {
9
8
  rootID: 'ROOT_' + launchID,
package/webpack.config.js CHANGED
@@ -2,6 +2,7 @@ module.exports = ( () => {
2
2
  let path = require( 'path' );
3
3
  let MinCss = require( 'mini-css-extract-plugin' );
4
4
  let RemoveWasteFiles = require( 'webpack-remove-empty-scripts' );
5
+ let webpack = require( 'webpack' );
5
6
  let TerserPlugin = require( 'terser-webpack-plugin' );
6
7
  let BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin;
7
8
  let BrowserSync = require( 'browser-sync-webpack-plugin' );
@@ -14,6 +15,12 @@ module.exports = ( () => {
14
15
  open: false,
15
16
  notify: false
16
17
  }
18
+ let project = {
19
+ name: 'amotify',
20
+ ver: 'v3.1.2',
21
+ author: 'mingoo LLC.',
22
+ details: 'https://mingoo.co.jp/'
23
+ }
17
24
 
18
25
  let entry = {
19
26
  'amotify': './src/launch.tsx'
@@ -45,6 +52,12 @@ module.exports = ( () => {
45
52
  ],
46
53
  splitChunks: {
47
54
  cacheGroups: {
55
+ // jsminFront: {
56
+ // test: /node_modules\/jsmin-front/,
57
+ // filename: 'jsminFront.js',
58
+ // chunks: 'all',
59
+ // enforce: true
60
+ // },
48
61
  vendor: {
49
62
  test: /node_modules/,
50
63
  filename: 'coreVender.js',
@@ -69,6 +82,18 @@ module.exports = ( () => {
69
82
  filename: '[name].min.css'
70
83
  } ),
71
84
  new RemoveWasteFiles,
85
+ new webpack.BannerPlugin( {
86
+ banner: `
87
+ ${ project.name } JavaScript Library ${ project.ver }
88
+ ${ project.details }
89
+
90
+ Copyright ${ project.author }
91
+ Released under the MIT license
92
+ ${ project.details }license
93
+
94
+ Last updated: ${ new Date().toLocaleDateString() }
95
+ `
96
+ } )
72
97
  ],
73
98
  module: {
74
99
  rules: [