@emulsify/core 1.2.1 → 1.3.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/.history/config/webpack/{loaders_20240401184511.js → loaders_20240730152304.js} +3 -3
- package/.history/config/webpack/loaders_20240730152315.js +87 -0
- package/.history/config/webpack/plugins_20240730152746.js +77 -0
- package/.history/config/webpack/plugins_20240730152818.js +76 -0
- package/.history/config/webpack/plugins_20240730153144.js +76 -0
- package/.history/config/webpack/plugins_20240730153215.js +76 -0
- package/.history/config/webpack/{webpack.common_20240607090919.js → webpack.common_20240730152548.js} +5 -3
- package/.history/config/webpack/webpack.common_20240730152652.js +76 -0
- package/.history/package_20240730153116.json +136 -0
- package/.history/package_20240806081212.json +135 -0
- package/.history/package_20240806081229.json +135 -0
- package/.history/package_20240806081258.json +135 -0
- package/.history/package_20240806081538.json +135 -0
- package/.history/package_20240806082035.json +135 -0
- package/.history/package_20240806082121.json +135 -0
- package/.history/package_20240806082142.json +135 -0
- package/.history/package_20240806082313.json +135 -0
- package/.history/package_20240806082418.json +135 -0
- package/package.json +10 -10
- package/.history/config/webpack/plugins_20240401184104.js +0 -48
- /package/.history/config/webpack/{loaders_20240610084138.js → loaders_20240731075844.js} +0 -0
- /package/.history/config/webpack/{plugins_20240607163148.js → plugins_20240731075839.js} +0 -0
- /package/.history/config/webpack/{webpack.common_20240607163224.js → webpack.common_20240731075910.js} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emulsify/core",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"component library",
|
|
7
|
+
"design system",
|
|
8
|
+
"drupal",
|
|
9
|
+
"pattern library",
|
|
10
|
+
"storybook",
|
|
11
|
+
"styleguide"
|
|
12
|
+
],
|
|
13
|
+
"author": "Four Kitchens <shout@fourkitchens.com>",
|
|
14
|
+
"license": "GPL-2.0",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/emulsify-ds/emulsify-core.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/emulsify-ds/emulsify-core/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/emulsify-ds/emulsify-core#readme",
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"coverage": "npm run test && open-cli .coverage/lcov-report/index.html",
|
|
31
|
+
"format": "npm run lint-fix; npm run prettier-fix",
|
|
32
|
+
"husky:commit-msg": "commitlint --edit $1",
|
|
33
|
+
"husky:pre-commit": "npm run lint",
|
|
34
|
+
"lint": "npm run lint-js",
|
|
35
|
+
"lint-fix": "npm run lint-js -- --fix",
|
|
36
|
+
"lint-js": "eslint --config config/eslintrc.config.json --no-error-on-unmatched-pattern ./config ./storybook",
|
|
37
|
+
"lint-staged": "lint-staged",
|
|
38
|
+
"prepare": "[ -d '.git' ] && (husky install) || true",
|
|
39
|
+
"prettier": "prettier --config config/prettierrc.json --ignore-unknown \"**/*.{js,yml,scss,md}\"",
|
|
40
|
+
"prettier-fix": "prettier --config config/prettierrc.json --write --ignore-unknown \"**/*.{js,yml,scss,md}\"",
|
|
41
|
+
"semantic-release": "semantic-release",
|
|
42
|
+
"storybook": "storybook dev --ci -s ../../dist,../../assets/images,../../assets/icons,../../assets/videos -p 6006",
|
|
43
|
+
"storybook-build": "storybook build -s ../../dist,../../assets/images,../../assets/icons,../../assets/videos -o .out",
|
|
44
|
+
"storybook-deploy": "storybook-to-ghpages -o .out",
|
|
45
|
+
"test": "jest --coverage --config ./config/jest.config.js",
|
|
46
|
+
"twatch": "jest --no-coverage --watch --verbose"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@babel/core": "^7.25.2",
|
|
50
|
+
"@babel/eslint-parser": "^7.25.1",
|
|
51
|
+
"@emulsify/cli": "^1.10.2",
|
|
52
|
+
"@storybook/addon-a11y": "^7.6.17",
|
|
53
|
+
"@storybook/addon-actions": "^7.6.17",
|
|
54
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
55
|
+
"@storybook/addon-links": "^7.6.17",
|
|
56
|
+
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
57
|
+
"@storybook/addon-themes": "^7.6.17",
|
|
58
|
+
"@storybook/html": "^7.6.17",
|
|
59
|
+
"@storybook/html-webpack5": "^7.6.17",
|
|
60
|
+
"add-attributes-twig-extension": "^0.1.0",
|
|
61
|
+
"autoprefixer": "^10.4.20",
|
|
62
|
+
"babel-loader": "^9.1.3",
|
|
63
|
+
"babel-preset-minify": "^0.5.2",
|
|
64
|
+
"bem-twig-extension": "^0.1.1",
|
|
65
|
+
"breakpoint-sass": "^3.0.0",
|
|
66
|
+
"chalk": "^5.2.0",
|
|
67
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
68
|
+
"concurrently": "^8.2.2",
|
|
69
|
+
"css-loader": "^7.1.1",
|
|
70
|
+
"eslint": "^8.57.0",
|
|
71
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
72
|
+
"eslint-config-prettier": "^9.1.0",
|
|
73
|
+
"eslint-plugin-import": "^2.29.1",
|
|
74
|
+
"eslint-plugin-jest": "^27.9.0",
|
|
75
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
76
|
+
"eslint-plugin-security": "^2.1.1",
|
|
77
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
78
|
+
"eslint-webpack-plugin": "^4.1.0",
|
|
79
|
+
"file-loader": "^6.2.0",
|
|
80
|
+
"fs-extra": "^11.2.0",
|
|
81
|
+
"glob": "^10.3.12",
|
|
82
|
+
"graceful-fs": "^4.2.11",
|
|
83
|
+
"html-webpack-plugin": "^5.6.0",
|
|
84
|
+
"imagemin-webpack-plugin": "^2.4.2",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
87
|
+
"js-yaml": "^4.1.0",
|
|
88
|
+
"js-yaml-loader": "^1.2.2",
|
|
89
|
+
"lint-staged": "^15.2.8",
|
|
90
|
+
"mini-css-extract-plugin": "^2.9.0",
|
|
91
|
+
"node-sass-glob-importer": "^5.3.3",
|
|
92
|
+
"normalize.css": "^8.0.1",
|
|
93
|
+
"open-cli": "^8.0.0",
|
|
94
|
+
"pa11y": "^8.0.0",
|
|
95
|
+
"postcss": "^8.4.41",
|
|
96
|
+
"postcss-loader": "^8.1.1",
|
|
97
|
+
"postcss-scss": "^4.0.9",
|
|
98
|
+
"ramda": "^0.30.1",
|
|
99
|
+
"react": "^18.2.0",
|
|
100
|
+
"react-dom": "^18.2.0",
|
|
101
|
+
"regenerator-runtime": "^0.14.1",
|
|
102
|
+
"sass": "^1.75.0",
|
|
103
|
+
"sass-loader": "^16.0.0",
|
|
104
|
+
"storybook": "^7.6.17",
|
|
105
|
+
"style-dictionary": "^3.9.2",
|
|
106
|
+
"stylelint": "^16.8.1",
|
|
107
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
108
|
+
"stylelint-prettier": "^5.0.0",
|
|
109
|
+
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
110
|
+
"stylelint-webpack-plugin": "^5.0.1",
|
|
111
|
+
"svg-sprite-loader": "^6.0.11",
|
|
112
|
+
"token-transformer": "^0.0.33",
|
|
113
|
+
"twig-drupal-filters": "^3.2.0",
|
|
114
|
+
"twig-loader": "github:fourkitchens/twig-loader",
|
|
115
|
+
"twig-testing-library": "^1.2.0",
|
|
116
|
+
"webpack": "^5.91.0",
|
|
117
|
+
"webpack-cli": "^5.1.4",
|
|
118
|
+
"webpack-merge": "^6.0.1",
|
|
119
|
+
"yaml": "^2.5.0"
|
|
120
|
+
},
|
|
121
|
+
"devDependencies": {
|
|
122
|
+
"@commitlint/cli": "^19.3.0",
|
|
123
|
+
"@commitlint/config-conventional": "^19.1.0",
|
|
124
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
125
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
126
|
+
"@semantic-release/git": "^10.0.1",
|
|
127
|
+
"@semantic-release/github": "^10.1.3",
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
129
|
+
"husky": "^9.1.4",
|
|
130
|
+
"semantic-release": "^24.0.0"
|
|
131
|
+
},
|
|
132
|
+
"overrides": {
|
|
133
|
+
"graceful-fs": "^4.2.11"
|
|
134
|
+
}
|
|
135
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"twatch": "jest --no-coverage --watch --verbose"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/core": "^7.
|
|
49
|
+
"@babel/core": "^7.25.2",
|
|
50
50
|
"@babel/eslint-parser": "^7.25.1",
|
|
51
|
-
"@emulsify/cli": "^1.10.
|
|
51
|
+
"@emulsify/cli": "^1.10.2",
|
|
52
52
|
"@storybook/addon-a11y": "^7.6.17",
|
|
53
53
|
"@storybook/addon-actions": "^7.6.17",
|
|
54
54
|
"@storybook/addon-essentials": "^7.6.17",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@storybook/html": "^7.6.17",
|
|
59
59
|
"@storybook/html-webpack5": "^7.6.17",
|
|
60
60
|
"add-attributes-twig-extension": "^0.1.0",
|
|
61
|
-
"autoprefixer": "^10.4.
|
|
61
|
+
"autoprefixer": "^10.4.20",
|
|
62
62
|
"babel-loader": "^9.1.3",
|
|
63
63
|
"babel-preset-minify": "^0.5.2",
|
|
64
64
|
"bem-twig-extension": "^0.1.1",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"jest-environment-jsdom": "^29.7.0",
|
|
87
87
|
"js-yaml": "^4.1.0",
|
|
88
88
|
"js-yaml-loader": "^1.2.2",
|
|
89
|
-
"lint-staged": "^15.2.
|
|
89
|
+
"lint-staged": "^15.2.8",
|
|
90
90
|
"mini-css-extract-plugin": "^2.9.0",
|
|
91
91
|
"node-sass-glob-importer": "^5.3.3",
|
|
92
92
|
"normalize.css": "^8.0.1",
|
|
93
93
|
"open-cli": "^8.0.0",
|
|
94
|
-
"pa11y": "^
|
|
95
|
-
"postcss": "^8.4.
|
|
94
|
+
"pa11y": "^8.0.0",
|
|
95
|
+
"postcss": "^8.4.41",
|
|
96
96
|
"postcss-loader": "^8.1.1",
|
|
97
97
|
"postcss-scss": "^4.0.9",
|
|
98
98
|
"ramda": "^0.30.1",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"react-dom": "^18.2.0",
|
|
101
101
|
"regenerator-runtime": "^0.14.1",
|
|
102
102
|
"sass": "^1.75.0",
|
|
103
|
-
"sass-loader": "^
|
|
103
|
+
"sass-loader": "^16.0.0",
|
|
104
104
|
"storybook": "^7.6.17",
|
|
105
105
|
"style-dictionary": "^3.9.2",
|
|
106
|
-
"stylelint": "^16.8.
|
|
106
|
+
"stylelint": "^16.8.1",
|
|
107
107
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
108
108
|
"stylelint-prettier": "^5.0.0",
|
|
109
109
|
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"twig-testing-library": "^1.2.0",
|
|
116
116
|
"webpack": "^5.91.0",
|
|
117
117
|
"webpack-cli": "^5.1.4",
|
|
118
|
-
"webpack-merge": "^
|
|
118
|
+
"webpack-merge": "^6.0.1",
|
|
119
119
|
"yaml": "^2.5.0"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const webpack = require('webpack');
|
|
4
|
-
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
5
|
-
const _MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
6
|
-
const _ImageminPlugin = require('imagemin-webpack-plugin').default;
|
|
7
|
-
const _SpriteLoaderPlugin = require('svg-sprite-loader/plugin');
|
|
8
|
-
const glob = require('glob');
|
|
9
|
-
|
|
10
|
-
const imagePath = path.resolve(__dirname, '../../../../assets/images');
|
|
11
|
-
|
|
12
|
-
const MiniCssExtractPlugin = new _MiniCssExtractPlugin({
|
|
13
|
-
filename: '[name].css',
|
|
14
|
-
chunkFilename: '[id].css',
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const ImageminPlugin = new _ImageminPlugin({
|
|
18
|
-
disable: process.env.NODE_ENV !== 'production',
|
|
19
|
-
externalImages: {
|
|
20
|
-
context: imagePath,
|
|
21
|
-
sources: glob.sync(path.resolve(imagePath, '**/*.{png,jpg,gif,svg}')),
|
|
22
|
-
destination: imagePath,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const SpriteLoaderPlugin = new _SpriteLoaderPlugin({
|
|
27
|
-
plainSprite: true,
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const ProgressPlugin = new webpack.ProgressPlugin();
|
|
31
|
-
|
|
32
|
-
module.exports = {
|
|
33
|
-
ProgressPlugin,
|
|
34
|
-
MiniCssExtractPlugin,
|
|
35
|
-
ImageminPlugin,
|
|
36
|
-
SpriteLoaderPlugin,
|
|
37
|
-
CleanWebpackPlugin: new CleanWebpackPlugin({
|
|
38
|
-
protectWebpackAssets: false, // Required for removal of extra, unwanted dist/css/*.js files.
|
|
39
|
-
cleanOnceBeforeBuildPatterns: ['!*.{png,jpg,gif,svg}'],
|
|
40
|
-
cleanAfterEveryBuildPatterns: [
|
|
41
|
-
'remove/**',
|
|
42
|
-
'!js',
|
|
43
|
-
'css/**/*.js', // Remove all unwanted, auto generated JS files from dist/css folder.
|
|
44
|
-
'css/**/*.js.map',
|
|
45
|
-
'!*.{png,jpg,gif,svg}',
|
|
46
|
-
],
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|