@emulsify/core 3.0.2 → 3.0.4

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.
@@ -0,0 +1,45 @@
1
+ {
2
+ "projectName": "emulsify-core",
3
+ "projectOwner": "fourkitchens",
4
+ "repoType": "github",
5
+ "repoHost": "https://github.com",
6
+ "files": [
7
+ "README.md"
8
+ ],
9
+ "imageSize": 100,
10
+ "commit": true,
11
+ "commitConvention": "angular",
12
+ "contributors": [
13
+ {
14
+ "login": "callinmullaney",
15
+ "name": "Callin Mullaney",
16
+ "avatar_url": "https://avatars.githubusercontent.com/u/369018?v=4",
17
+ "profile": "https://github.com/callinmullaney",
18
+ "contributions": ["code", "doc"]
19
+ },
20
+ {
21
+ "login": "amazingrando",
22
+ "name": "Randy Oest",
23
+ "avatar_url": "https://avatars.githubusercontent.com/u/409903?v=4",
24
+ "profile": "https://github.com/amazingrando",
25
+ "contributions": ["code", "doc"]
26
+ },
27
+ {
28
+ "login": "robherba",
29
+ "name": "Roberto Hernandez",
30
+ "avatar_url": "https://avatars.githubusercontent.com/u/9342274?v=4",
31
+ "profile": "https://github.com/robherba",
32
+ "contributions": ["code"]
33
+ },
34
+ {
35
+ "login": "dependabot",
36
+ "name": "Dependabot",
37
+ "avatar_url": "https://avatars.githubusercontent.com/u/49699333?v=4",
38
+ "profile": "https://github.com/dependabot",
39
+ "contributions": ["maintenance"]
40
+ }
41
+ ],
42
+
43
+ "contributorsPerLine": 6,
44
+ "skipCi": true
45
+ }
@@ -1,23 +1,37 @@
1
1
  name: Add contributors
2
2
  on:
3
- schedule:
4
- - cron: "20 20 * * *"
5
3
  push:
6
4
  branches:
7
5
  - main
6
+ - develop
7
+ workflow_dispatch:
8
8
 
9
9
  jobs:
10
10
  add-contributors:
11
11
  runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
12
14
  steps:
13
- - uses: actions/checkout@v2
14
- - uses: BobAnkh/add-contributors@master
15
+ - uses: actions/checkout@v4
15
16
  with:
16
- CONTRIBUTOR: "### Contributors"
17
- COLUMN_PER_ROW: "6"
18
- ACCESS_TOKEN: ${{secrets.ADD_TO_PROJECT_PAT}}
19
- IMG_WIDTH: "100"
20
- FONT_SIZE: "14"
21
- PATH: "/README.md"
22
- COMMIT_MESSAGE: "docs(README): update contributors"
23
- AVATAR_SHAPE: "round"
17
+ fetch-depth: 0
18
+ token: ${{ secrets.CONTRIBUTORS_TOKEN }}
19
+
20
+ - name: Setup Node.js
21
+ uses: actions/setup-node@v4
22
+ with:
23
+ node-version: "24"
24
+
25
+ - name: Install all-contributors-cli
26
+ run: npm install -g all-contributors-cli
27
+
28
+ - name: Generate contributors
29
+ run: |
30
+ all-contributors generate
31
+ git config --global user.name 'GitHub Actions'
32
+ git config --global user.email 'github-actions@github.com'
33
+ git add README.md
34
+ git commit -m "docs: update contributors" || exit 0
35
+ git push
36
+ env:
37
+ GITHUB_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
package/README.md CHANGED
@@ -72,23 +72,25 @@ To facilitate automatic semantic release versioning, we utilize the [Conventiona
72
72
 
73
73
  Emulsify® is a product of [Four Kitchens](https://fourkitchens.com).
74
74
 
75
- ### Contributors
75
+ ## Contributors
76
76
 
77
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
78
+ <!-- prettier-ignore-start -->
79
+ <!-- markdownlint-disable -->
77
80
  <table>
78
- <tr>
79
- <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0">
80
- <a href=https://github.com/callinmullaney>
81
- <img src=https://avatars.githubusercontent.com/u/369018?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Callin Mullaney/>
82
- <br />
83
- <sub style="font-size:14px"><b>Callin Mullaney</b></sub>
84
- </a>
85
- </td>
86
- <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0">
87
- <a href=https://github.com/amazingrando>
88
- <img src=https://avatars.githubusercontent.com/u/409903?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Randy Oest/>
89
- <br />
90
- <sub style="font-size:14px"><b>Randy Oest</b></sub>
91
- </a>
92
- </td>
93
- </tr>
81
+ <tbody>
82
+ <tr>
83
+ <td align="center" valign="top" width="16.66%"><a href="https://github.com/callinmullaney"><img src="https://avatars.githubusercontent.com/u/369018?v=4?s=100" width="100px;" alt="Callin Mullaney"/><br /><sub><b>Callin Mullaney</b></sub></a><br /><a href="https://github.com/fourkitchens/emulsify-core/commits?author=callinmullaney" title="Code">💻</a> <a href="https://github.com/fourkitchens/emulsify-core/commits?author=callinmullaney" title="Documentation">📖</a></td>
84
+ <td align="center" valign="top" width="16.66%"><a href="https://github.com/amazingrando"><img src="https://avatars.githubusercontent.com/u/409903?v=4?s=100" width="100px;" alt="Randy Oest"/><br /><sub><b>Randy Oest</b></sub></a><br /><a href="https://github.com/fourkitchens/emulsify-core/commits?author=amazingrando" title="Code">💻</a> <a href="https://github.com/fourkitchens/emulsify-core/commits?author=amazingrando" title="Documentation">📖</a></td>
85
+ <td align="center" valign="top" width="16.66%"><a href="https://github.com/robherba"><img src="https://avatars.githubusercontent.com/u/9342274?v=4?s=100" width="100px;" alt="Roberto Hernandez"/><br /><sub><b>Roberto Hernandez</b></sub></a><br /><a href="https://github.com/fourkitchens/emulsify-core/commits?author=robherba" title="Code">💻</a></td>
86
+ <td align="center" valign="top" width="16.66%"><a href="https://github.com/dependabot"><img src="https://avatars.githubusercontent.com/u/49699333?v=4?s=100" width="100px;" alt="Dependabot"/><br /><sub><b>Dependabot</b></sub></a><br /><a href="#maintenance-dependabot" title="Maintenance">🚧</a></td>
87
+ </tr>
88
+ </tbody>
94
89
  </table>
90
+
91
+ <!-- markdownlint-restore -->
92
+ <!-- prettier-ignore-end -->
93
+
94
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
95
+
96
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
@@ -36,7 +36,10 @@ const SpriteLoaderPlugin = new _SpriteLoaderPlugin({
36
36
 
37
37
  const ProgressPlugin = new webpack.ProgressPlugin();
38
38
 
39
- const componentFilesPattern = resolve(srcDir, '**/*.{twig,component.yml}');
39
+ const componentFilesPattern = resolve(
40
+ srcDir,
41
+ '**/*.{twig,component.yml,component.json}',
42
+ );
40
43
 
41
44
  /**
42
45
  * Prepare a list of patterns for copying Twig and component files.
@@ -1,7 +1,39 @@
1
+ import fs from 'fs';
2
+ import { resolve, dirname } from 'path';
1
3
  import { merge } from 'webpack-merge';
2
4
  import common from './webpack.common.js';
3
5
 
6
+ // JSON import syntax may vary; adjust if you need `assert { type: 'json' }` instead
7
+ import emulsifyConfig from '../../../../../project.emulsify.json' with { type: 'json' };
8
+
9
+ // Create __filename from import.meta.url without fileURLToPath
10
+ let _filename = decodeURIComponent(new URL(import.meta.url).pathname);
11
+
12
+ // On Windows, remove the leading slash (e.g. "/C:/path" -> "C:/path")
13
+ if (process.platform === 'win32' && _filename.startsWith('/')) {
14
+ _filename = _filename.slice(1);
15
+ }
16
+
17
+ const _dirname = dirname(_filename);
18
+
19
+ const isDrupal = emulsifyConfig.project.platform === 'drupal';
20
+
21
+ // Resolve the src directory alongside how you’re already locating project.emulsify.json
22
+ const srcDir = resolve(_dirname, '../../../../../src');
23
+
24
+ // Always ignore dist
25
+ const ignored = ['**/dist/**'];
26
+
27
+ // If it’s Drupal and there is no src/, also ignore components
28
+ if (isDrupal && !fs.existsSync(srcDir)) {
29
+ ignored.push('**/components/**');
30
+ }
31
+
4
32
  export default merge(common, {
5
33
  mode: 'development',
6
34
  devtool: 'source-map',
35
+ watchOptions: {
36
+ // You can supply a RegExp, glob strings, or an array thereof
37
+ ignored,
38
+ },
7
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/core",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
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.3",
54
- "@babel/eslint-parser": "^7.27.1",
53
+ "@babel/core": "^7.27.4",
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.27.0",
57
+ "@eslint/js": "^9.28.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",
@@ -77,17 +77,17 @@
77
77
  "concurrently": "^9.1.2",
78
78
  "copy-webpack-plugin": "^13.0.0",
79
79
  "css-loader": "^7.1.1",
80
- "eslint": "^9.27.0",
80
+ "eslint": "^9.28.0",
81
81
  "eslint-config-prettier": "^10.1.5",
82
82
  "eslint-plugin-import": "^2.31.0",
83
- "eslint-plugin-jest": "^28.11.1",
84
- "eslint-plugin-prettier": "^5.4.0",
83
+ "eslint-plugin-jest": "^28.13.5",
84
+ "eslint-plugin-prettier": "^5.4.1",
85
85
  "eslint-plugin-security": "^3.0.1",
86
86
  "eslint-plugin-storybook": "^0.12.0",
87
- "eslint-webpack-plugin": "^5.0.1",
87
+ "eslint-webpack-plugin": "^5.0.2",
88
88
  "file-loader": "^6.2.0",
89
89
  "fs-extra": "^11.3.0",
90
- "glob": "^11.0.2",
90
+ "glob": "^11.0.3",
91
91
  "graceful-fs": "^4.2.11",
92
92
  "html-webpack-plugin": "^5.6.3",
93
93
  "image-minimizer-webpack-plugin": "^4.1.3",
@@ -95,8 +95,8 @@
95
95
  "imagemin-gifsicle": "^7.0.0",
96
96
  "imagemin-jpegtran": "^8.0.0",
97
97
  "imagemin-optipng": "^8.0.0",
98
- "jest": "^29.7.0",
99
- "jest-environment-jsdom": "^29.7.0",
98
+ "jest": "^30.0.0",
99
+ "jest-environment-jsdom": "^30.0.0",
100
100
  "js-yaml": "^4.1.0",
101
101
  "js-yaml-loader": "^1.2.2",
102
102
  "mini-css-extract-plugin": "^2.9.2",
@@ -104,16 +104,16 @@
104
104
  "normalize.css": "^8.0.1",
105
105
  "open-cli": "^8.0.0",
106
106
  "pa11y": "^9.0.0",
107
- "postcss": "^8.5.1",
107
+ "postcss": "^8.5.5",
108
108
  "postcss-loader": "^8.1.1",
109
109
  "postcss-scss": "^4.0.9",
110
110
  "ramda": "^0.30.1",
111
111
  "regenerator-runtime": "^0.14.1",
112
- "sass": "^1.89.0",
112
+ "sass": "^1.89.2",
113
113
  "sass-loader": "^16.0.5",
114
114
  "storybook": "^8.6.14",
115
115
  "style-dictionary": "^4.4.0",
116
- "stylelint": "^16.19.1",
116
+ "stylelint": "^16.20.0",
117
117
  "stylelint-config-standard-scss": "^15.0.1",
118
118
  "stylelint-prettier": "^5.0.3",
119
119
  "stylelint-selector-bem-pattern": "^4.0.1",
@@ -136,6 +136,7 @@
136
136
  "@semantic-release/git": "^10.0.1",
137
137
  "@semantic-release/github": "^11.0.3",
138
138
  "@semantic-release/release-notes-generator": "^14.0.3",
139
+ "all-contributors-cli": "^6.26.1",
139
140
  "husky": "^9.1.7",
140
141
  "lint-staged": "^16.1.0",
141
142
  "semantic-release": "^24.2.5"
@@ -143,7 +144,7 @@
143
144
  "overrides": {
144
145
  "inflight": "^1.0.7",
145
146
  "graceful-fs": "^4.2.11",
146
- "glob": "^11.0.2",
147
+ "glob": "^11.0.3",
147
148
  "rimraf": "^4.3.0",
148
149
  "source-map-url": "^0.4.1",
149
150
  "source-map-resolve": "^0.6.0",