@emulsify/core 3.1.0 → 3.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.
|
@@ -17,5 +17,5 @@ jobs:
|
|
|
17
17
|
with:
|
|
18
18
|
# You can target a repository in a different organization
|
|
19
19
|
# to the issue
|
|
20
|
-
project-url: https://github.com/
|
|
20
|
+
project-url: https://github.com/emulsify-ds/emulsify-core
|
|
21
21
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
@@ -94,7 +94,8 @@ const CleanPlugin = new CleanWebpackPlugin({
|
|
|
94
94
|
protectWebpackAssets: false,
|
|
95
95
|
cleanOnceBeforeBuildPatterns: [
|
|
96
96
|
// wipe all compiled assets
|
|
97
|
-
`${distPath}
|
|
97
|
+
`${distPath}/**/*.css`,
|
|
98
|
+
`${distPath}/**/*.js`,
|
|
98
99
|
// but keep any images
|
|
99
100
|
`!${distPath}/**/*.png`,
|
|
100
101
|
`!${distPath}/**/*.jpg`,
|
|
@@ -23,6 +23,10 @@ const srcDir = fs.pathExistsSync(resolve(projectDir, 'src'))
|
|
|
23
23
|
? resolve(projectDir, 'src')
|
|
24
24
|
: resolve(projectDir, 'components');
|
|
25
25
|
|
|
26
|
+
if (!fs.pathExistsSync(resolve(srcDir))) {
|
|
27
|
+
fs.mkdirSync(srcDir, { recursive: true });
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
const aliasPattern = resolve(srcDir, '**/!(_*).twig');
|
|
27
31
|
|
|
28
32
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
1
|
+
import fs from 'fs-extra';
|
|
2
2
|
import { resolve, dirname } from 'path';
|
|
3
3
|
import { merge } from 'webpack-merge';
|
|
4
4
|
import common from './webpack.common.js';
|
|
@@ -16,16 +16,18 @@ if (process.platform === 'win32' && _filename.startsWith('/')) {
|
|
|
16
16
|
|
|
17
17
|
const _dirname = dirname(_filename);
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// Get directories for file contexts.
|
|
20
|
+
const projectDir = resolve(_dirname, '../../../../..');
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
const
|
|
22
|
+
const srcPath = resolve(projectDir, 'src');
|
|
23
|
+
const srcExists = fs.pathExistsSync(srcPath);
|
|
24
|
+
const isDrupal = emulsifyConfig.project.platform === 'drupal';
|
|
23
25
|
|
|
24
26
|
// Always ignore dist
|
|
25
27
|
const ignored = ['**/dist/**'];
|
|
26
28
|
|
|
27
29
|
// If it’s Drupal and there is no src/, also ignore components
|
|
28
|
-
if (isDrupal &&
|
|
30
|
+
if (isDrupal && srcExists) {
|
|
29
31
|
ignored.push('**/components/**');
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -33,7 +35,6 @@ export default merge(common, {
|
|
|
33
35
|
mode: 'development',
|
|
34
36
|
devtool: 'source-map',
|
|
35
37
|
watchOptions: {
|
|
36
|
-
// You can supply a RegExp, glob strings, or an array thereof
|
|
37
38
|
ignored,
|
|
38
39
|
},
|
|
39
40
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"twatch": "jest --no-coverage --watch --verbose"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@babel/core": "^7.27.
|
|
53
|
+
"@babel/core": "^7.27.7",
|
|
54
54
|
"@babel/eslint-parser": "^7.27.5",
|
|
55
55
|
"@babel/preset-env": "^7.27.2",
|
|
56
56
|
"@emulsify/cli": "^1.11.4",
|
|
57
|
-
"@eslint/js": "^9.
|
|
57
|
+
"@eslint/js": "^9.30.0",
|
|
58
58
|
"@storybook/addon-a11y": "^8.6.14",
|
|
59
59
|
"@storybook/addon-actions": "^8.6.14",
|
|
60
60
|
"@storybook/addon-essentials": "^8.6.14",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"breakpoint-sass": "^3.0.0",
|
|
75
75
|
"chalk": "^5.4.1",
|
|
76
76
|
"clean-webpack-plugin": "^4.0.0",
|
|
77
|
-
"concurrently": "^9.
|
|
77
|
+
"concurrently": "^9.2.0",
|
|
78
78
|
"copy-webpack-plugin": "^13.0.0",
|
|
79
79
|
"css-loader": "^7.1.1",
|
|
80
|
-
"eslint": "^9.
|
|
80
|
+
"eslint": "^9.30.0",
|
|
81
81
|
"eslint-config-prettier": "^10.1.5",
|
|
82
|
-
"eslint-plugin-import": "^2.
|
|
82
|
+
"eslint-plugin-import": "^2.32.0",
|
|
83
83
|
"eslint-plugin-jest": "^29.0.1",
|
|
84
|
-
"eslint-plugin-prettier": "^5.5.
|
|
84
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
85
85
|
"eslint-plugin-security": "^3.0.1",
|
|
86
86
|
"eslint-plugin-storybook": "^0.12.0",
|
|
87
87
|
"eslint-webpack-plugin": "^5.0.2",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"imagemin-gifsicle": "^7.0.0",
|
|
96
96
|
"imagemin-jpegtran": "^8.0.0",
|
|
97
97
|
"imagemin-optipng": "^8.0.0",
|
|
98
|
-
"jest": "^30.0.
|
|
98
|
+
"jest": "^30.0.3",
|
|
99
99
|
"jest-environment-jsdom": "^30.0.2",
|
|
100
100
|
"js-yaml": "^4.1.0",
|
|
101
101
|
"js-yaml-loader": "^1.2.2",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"postcss": "^8.5.6",
|
|
108
108
|
"postcss-loader": "^8.1.1",
|
|
109
109
|
"postcss-scss": "^4.0.9",
|
|
110
|
-
"ramda": "^0.
|
|
110
|
+
"ramda": "^0.31.3",
|
|
111
111
|
"regenerator-runtime": "^0.14.1",
|
|
112
112
|
"sass": "^1.89.2",
|
|
113
113
|
"sass-loader": "^16.0.5",
|