@modernpoacher/gremlins 0.0.7 → 0.0.10
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 +9 -10
- package/transform.sh +0 -3
- package/tsconfig.json +0 -11
- package/webpack.config.mjs +0 -105
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/gremlins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Gremlins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Gremlins",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"email": "modernpoacher@modernpoacher.com",
|
|
15
15
|
"url": "https://modernpoacher.com"
|
|
16
16
|
},
|
|
17
|
-
"license": "
|
|
17
|
+
"license": "ISC",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=18.5.0"
|
|
20
20
|
},
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@babel/register": "^7.22.15",
|
|
53
53
|
"@modernpoacher/design-system": "1.0.77",
|
|
54
54
|
"@modernpoacher/hooks": "^1.0.436",
|
|
55
|
-
"@storybook/addon-actions": "^7.4.
|
|
56
|
-
"@storybook/addon-essentials": "^7.4.
|
|
57
|
-
"@storybook/addon-links": "^7.4.
|
|
58
|
-
"@storybook/react": "^7.4.
|
|
59
|
-
"@storybook/react-webpack5": "^7.4.
|
|
55
|
+
"@storybook/addon-actions": "^7.4.4",
|
|
56
|
+
"@storybook/addon-essentials": "^7.4.4",
|
|
57
|
+
"@storybook/addon-links": "^7.4.4",
|
|
58
|
+
"@storybook/react": "^7.4.4",
|
|
59
|
+
"@storybook/react-webpack5": "^7.4.4",
|
|
60
60
|
"@types/react": "^18.2.22",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
62
62
|
"@typescript-eslint/parser": "^6.7.2",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"clean-webpack-plugin": "^4.0.0",
|
|
65
65
|
"core-js": "^3.32.2",
|
|
66
66
|
"cross-env": "^7.0.3",
|
|
67
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.50.0",
|
|
68
68
|
"eslint-config-standard": "^17.1.0",
|
|
69
69
|
"eslint-config-standard-with-typescript": "^39.0.0",
|
|
70
70
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
@@ -83,8 +83,7 @@
|
|
|
83
83
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
84
84
|
"sass": "^1.68.0",
|
|
85
85
|
"sass-loader": "^13.3.2",
|
|
86
|
-
"storybook": "^7.4.
|
|
87
|
-
"vinyl-paths": "^5.0.0",
|
|
86
|
+
"storybook": "^7.4.4",
|
|
88
87
|
"webpack": "^5.88.2",
|
|
89
88
|
"webpack-cli": "^5.1.4"
|
|
90
89
|
},
|
package/transform.sh
DELETED
package/tsconfig.json
DELETED
package/webpack.config.mjs
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import Webpack from 'webpack'
|
|
3
|
-
import {
|
|
4
|
-
CleanWebpackPlugin
|
|
5
|
-
} from 'clean-webpack-plugin'
|
|
6
|
-
import RemoveFilesPlugin from 'remove-files-webpack-plugin'
|
|
7
|
-
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
sourcePath as SOURCE_PATH,
|
|
11
|
-
targetPath as TARGET_PATH,
|
|
12
|
-
modulePath as MODULE_PATH
|
|
13
|
-
} from '#build/paths'
|
|
14
|
-
|
|
15
|
-
const {
|
|
16
|
-
SourceMapDevToolPlugin
|
|
17
|
-
} = Webpack
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
mode: 'production',
|
|
21
|
-
entry: {
|
|
22
|
-
'preview-head': path.join(SOURCE_PATH, 'sass/preview-head.scss')
|
|
23
|
-
},
|
|
24
|
-
output: {
|
|
25
|
-
path: path.join(TARGET_PATH, 'css')
|
|
26
|
-
},
|
|
27
|
-
stats: {
|
|
28
|
-
colors: true
|
|
29
|
-
},
|
|
30
|
-
module: {
|
|
31
|
-
rules: [
|
|
32
|
-
{
|
|
33
|
-
test: /\.scss$/i,
|
|
34
|
-
use: [
|
|
35
|
-
MiniCssExtractPlugin.loader,
|
|
36
|
-
{
|
|
37
|
-
loader: 'css-loader',
|
|
38
|
-
options: {
|
|
39
|
-
importLoaders: 1,
|
|
40
|
-
sourceMap: false
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
loader: 'postcss-loader',
|
|
45
|
-
options: {
|
|
46
|
-
sourceMap: false,
|
|
47
|
-
postcssOptions: {
|
|
48
|
-
config: false,
|
|
49
|
-
plugins: [
|
|
50
|
-
'postcss-import',
|
|
51
|
-
[
|
|
52
|
-
'postcss-map', {
|
|
53
|
-
maps: [
|
|
54
|
-
path.join(MODULE_PATH, '@modernpoacher/design-system/src/tokens/palette.json')
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
loader: 'sass-loader',
|
|
64
|
-
options: {
|
|
65
|
-
sourceMap: false,
|
|
66
|
-
sassOptions: {
|
|
67
|
-
includePaths: [
|
|
68
|
-
path.join(MODULE_PATH, '@modernpoacher/design-system/src/sass')
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
plugins: [
|
|
78
|
-
new CleanWebpackPlugin({
|
|
79
|
-
verbose: false,
|
|
80
|
-
cleanOnceBeforeBuildPatterns: [
|
|
81
|
-
path.join(TARGET_PATH, 'css/*.css'),
|
|
82
|
-
path.join(TARGET_PATH, 'css/*.css.map')
|
|
83
|
-
]
|
|
84
|
-
}),
|
|
85
|
-
new MiniCssExtractPlugin({
|
|
86
|
-
filename: '[name].css'
|
|
87
|
-
}),
|
|
88
|
-
new SourceMapDevToolPlugin({
|
|
89
|
-
test: /\.css$/i,
|
|
90
|
-
filename: '[name].css.map'
|
|
91
|
-
}),
|
|
92
|
-
new RemoveFilesPlugin({
|
|
93
|
-
after: {
|
|
94
|
-
test: [
|
|
95
|
-
{
|
|
96
|
-
folder: path.join(TARGET_PATH, 'css'),
|
|
97
|
-
method (filePath) {
|
|
98
|
-
return /\.js$/m.test(filePath)
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
]
|
|
105
|
-
}
|