amotify 0.0.71 → 0.1.1

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.
Files changed (84) hide show
  1. package/bundler.ts +60 -0
  2. package/dist/{src/@declations → @declaration}/_.d.ts +4 -11
  3. package/dist/{src/@declations → @declaration}/amotify.d.ts +64 -68
  4. package/dist/@declaration/module.d.ts +2 -0
  5. package/dist/{src/@declations/styles.d.ts → @declaration/property.d.ts} +1 -4
  6. package/dist/{src/@global.d.ts → @global.d.ts} +1 -1
  7. package/dist/@globalJsmin.d.ts +4 -0
  8. package/dist/{src/@molecules.d.ts → @molecules.d.ts} +1 -1
  9. package/dist/{src/@variables.d.ts → @variables.d.ts} +2 -2
  10. package/dist/amotify.d.ts +12 -0
  11. package/dist/amotify.min.css +1 -36
  12. package/dist/amotify.min.js +1173 -0
  13. package/dist/{src/atoms → atoms}/FAI/parts.d.ts +1 -1
  14. package/dist/{src/atoms → atoms}/Logo/parts.d.ts +1 -1
  15. package/dist/{src/atoms → atoms}/Various/parts.d.ts +2 -2
  16. package/dist/{src/config.d.ts → config.d.ts} +1 -1
  17. package/dist/fin.d.ts +1 -0
  18. package/dist/{src/functions → functions}/Button/_.d.ts +1 -1
  19. package/dist/{src/functions → functions}/Cropper/parts.d.ts +1 -1
  20. package/dist/{src/functions → functions}/Effects/Fade.d.ts +1 -1
  21. package/dist/functions/Effects/Ripple.d.ts +1 -0
  22. package/dist/{src/functions → functions}/Effects/_.d.ts +1 -1
  23. package/dist/{src/functions → functions}/Input/Chips/Selector.d.ts +1 -1
  24. package/dist/{src/functions → functions}/Input/Chips/_.d.ts +1 -1
  25. package/dist/{src/functions → functions}/Input/Contenteditable.d.ts +1 -1
  26. package/dist/{src/functions → functions}/Input/DigitCharacters.d.ts +1 -1
  27. package/dist/{src/functions → functions}/Input/File/_.d.ts +1 -1
  28. package/dist/{src/functions → functions}/Input/Hidden.d.ts +1 -1
  29. package/dist/{src/functions → functions}/Input/List/_.d.ts +1 -1
  30. package/dist/{src/functions → functions}/Input/RichSelect/_.d.ts +1 -1
  31. package/dist/{src/functions → functions}/Input/Segmented/_.d.ts +1 -1
  32. package/dist/{src/functions → functions}/Input/Select/_.d.ts +1 -1
  33. package/dist/{src/functions → functions}/Input/Slider/_.d.ts +1 -1
  34. package/dist/{src/functions → functions}/Input/Switch/_.d.ts +1 -1
  35. package/dist/{src/functions → functions}/Input/Text.d.ts +1 -1
  36. package/dist/{src/functions → functions}/Input/TextArea.d.ts +1 -1
  37. package/dist/{src/functions → functions}/Input/Time/Picker.d.ts +1 -1
  38. package/dist/{src/functions → functions}/Input/Time/_.d.ts +1 -1
  39. package/dist/{src/functions → functions}/Input/_.d.ts +1 -1
  40. package/dist/{src/functions → functions}/Input/core.d.ts +1 -1
  41. package/dist/{src/functions → functions}/Layout/PageRouter.d.ts +1 -1
  42. package/dist/{src/functions → functions}/Layout/PageViewController/parts.d.ts +1 -1
  43. package/dist/{src/functions → functions}/Layout/Plate.d.ts +1 -1
  44. package/dist/{src/functions → functions}/Layout/RootViewController/parts.d.ts +1 -1
  45. package/dist/{src/functions → functions}/Layout/SwipeView/parts.d.ts +1 -1
  46. package/dist/{src/functions → functions}/Layout/TabBar.d.ts +1 -1
  47. package/dist/{src/functions → functions}/Layout/_.d.ts +1 -1
  48. package/dist/functions/Loader/mini.d.ts +7 -0
  49. package/dist/{src/functions → functions}/Loader/parts.d.ts +1 -1
  50. package/dist/{src/functions → functions}/Sheet/parts.d.ts +1 -1
  51. package/dist/{src/functions → functions}/SnackBar/parts.d.ts +1 -1
  52. package/dist/{src/functions → functions}/Table/Data/parts.d.ts +1 -1
  53. package/dist/{src/functions → functions}/Table/Drag/parts.d.ts +1 -1
  54. package/dist/{src/functions → functions}/Table/Normal/parts.d.ts +1 -1
  55. package/dist/{src/functions → functions}/Table/_.d.ts +3 -3
  56. package/dist/{src/functions → functions}/Tooltips/parts.d.ts +1 -1
  57. package/dist/{src/global → global}/LaunchReactApplication.d.ts +1 -1
  58. package/dist/{src/global → global}/styleConverter.d.ts +1 -1
  59. package/dist/{src/molecules → molecules}/Accordion/parts.d.ts +1 -1
  60. package/dist/{src/molecules → molecules}/LinkifyText/parts.d.ts +1 -1
  61. package/dist/{src/molecules → molecules}/List.d.ts +1 -1
  62. package/package.json +42 -15
  63. package/tsconfig.json +5 -31
  64. package/webpack.config.js +148 -0
  65. package/dist/amotify.js +0 -13
  66. package/dist/coreVender.js +0 -25
  67. package/dist/src/@declations/module.d.ts +0 -1
  68. package/dist/src/@templates.d.ts +0 -2
  69. package/dist/src/functions/Loader/mini.d.ts +0 -36
  70. package/dist/src/launch.d.ts +0 -12
  71. package/dist/src/templates/PlayGround/parts.d.ts +0 -2
  72. package/dist/{src/@atoms.d.ts → @atoms.d.ts} +0 -0
  73. package/dist/{src/@functions.d.ts → @functions.d.ts} +0 -0
  74. package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/_.d.ts +0 -0
  75. package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/formCollect.d.ts +0 -0
  76. package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/spreadSheet.d.ts +1 -1
  77. /package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/variables.d.ts +0 -0
  78. /package/dist/{src/@organisms.d.ts → @organisms.d.ts} +0 -0
  79. /package/dist/{src/functions/Effects/Ripple.d.ts → @templates.d.ts} +0 -0
  80. /package/dist/{src/functions → functions}/Inputs/_.d.ts +0 -0
  81. /package/dist/{src/functions → functions}/Inputs/text.d.ts +0 -0
  82. /package/dist/{src/functions → functions}/Layout/PageNotFound.d.ts +0 -0
  83. /package/dist/{src/functions → functions}/Loader/corner.d.ts +0 -0
  84. /package/dist/{src/functions → functions}/Loader/top.d.ts +0 -0
@@ -0,0 +1,148 @@
1
+ module.exports = ( () => {
2
+ let path = require( 'path' )
3
+ let MinCss = require( 'mini-css-extract-plugin' )
4
+ let RemoveWasteFiles = require( 'webpack-remove-empty-scripts' )
5
+ let webpack = require( 'webpack' )
6
+ let TerserPlugin = require( 'terser-webpack-plugin' )
7
+ let BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin
8
+ let BrowserSync = require( 'browser-sync-webpack-plugin' )
9
+ let BrowserSync_option = {
10
+ host: 'localhost',
11
+ // port: 10201,
12
+ // proxy: 'http://localhost:10300/',
13
+ port: 10201,
14
+ proxy: 'http://localhost:10200/',
15
+ open: false,
16
+ notify: false
17
+ }
18
+ let project = {
19
+ name: 'amotify',
20
+ ver: 'v0.0.53',
21
+ author: 'mingoo LLC.',
22
+ details: 'https://mingoo.co.jp/'
23
+ }
24
+
25
+ return {
26
+ mode: 'development',
27
+ entry: {
28
+ 'amotify': './src/amotify.tsx'
29
+ },
30
+ output: {
31
+ library: 'amotify',
32
+ libraryTarget: 'umd',
33
+ libraryExport: 'default',
34
+ path: __dirname + '/dist/',
35
+ filename: '[name].js',
36
+ devtoolModuleFilenameTemplate: 'src/[resource-path]'
37
+ },
38
+ optimization: {
39
+ minimize: true,
40
+ minimizer: [
41
+ new TerserPlugin( {
42
+ parallel: true,
43
+ extractComments: false,
44
+ terserOptions: {
45
+ compress: {
46
+ drop_console: true
47
+ },
48
+ output: {
49
+ comments: /^\*?!/
50
+ }
51
+ }
52
+ } )
53
+ ],
54
+ splitChunks: {
55
+ cacheGroups: {
56
+ vendor: {
57
+ test: /node_modules/,
58
+ filename: 'coreVender.js',
59
+ chunks: 'all',
60
+ enforce: true
61
+ }
62
+ }
63
+ }
64
+ },
65
+ externals: {
66
+ // 'react': 'React',
67
+ // 'react-dom': 'ReactDOM',
68
+ // 'react-router-dom': 'ReactRouterDOM'
69
+ },
70
+ module: {
71
+ rules: [
72
+ {
73
+ test: /\.scss/,
74
+ use: [
75
+ MinCss.loader,
76
+ 'css-loader',
77
+ 'sass-loader'
78
+ ]
79
+ },
80
+ {
81
+ test: /\.(j|t)sx?$/,
82
+ use: [
83
+ {
84
+ loader: 'babel-loader',
85
+ options: {
86
+ presets: [
87
+ '@babel/preset-env',
88
+ '@babel/preset-react',
89
+ '@babel/preset-typescript'
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ loader: "ts-loader",
95
+ options: {
96
+ // allowTsInNodeModules: true,
97
+ // transpileOnly:true,
98
+ configFile: path.resolve( __dirname, 'tsconfig.json' )
99
+ }
100
+ }
101
+ ],
102
+ }
103
+ ]
104
+ },
105
+ resolve: {
106
+ modules: [ 'node_modules' ],
107
+ extensions: [ '.js', '.jsx', '.tsx', '.ts' ],
108
+ alias: {
109
+ '~': `${ __dirname }/src`,
110
+
111
+ '@props': path.resolve( __dirname, 'src/@styles/props.scss' ),
112
+ '@mixin': path.resolve( __dirname, 'src/@styles/mixin.scss' ),
113
+
114
+ '@declaration': path.resolve( __dirname, 'src/@declaration/_' ),
115
+
116
+ '@global': path.resolve( __dirname, 'src/@global' ),
117
+ '@atoms': path.resolve( __dirname, 'src/@atoms' ),
118
+ '@mols': path.resolve( __dirname, 'src/@molecules' ),
119
+ '@orgs': path.resolve( __dirname, 'src/@organisms' ),
120
+ '@temps': path.resolve( __dirname, 'src/@templates' ),
121
+ '@fn': path.resolve( __dirname, 'src/@functions' ),
122
+ }
123
+ },
124
+ plugins: [
125
+ // new BundleAnalyzerPlugin(),
126
+ // new BrowserSync(
127
+ // BrowserSync_option,
128
+ // { reload: true }
129
+ // ),
130
+ new MinCss( {
131
+ filename: '[name].min.css'
132
+ } ),
133
+ new RemoveWasteFiles,
134
+ new webpack.BannerPlugin( {
135
+ banner: `
136
+ ${ project.name } JavaScript Library ${ project.ver }
137
+ ${ project.details }
138
+
139
+ Copyright ${ project.author }
140
+ Released under the MIT license
141
+ ${ project.details }license
142
+
143
+ Last updated: ${ new Date().toLocaleDateString() }
144
+ `
145
+ } )
146
+ ],
147
+ }
148
+ } )()