Skip to content

Commit 74270b0

Browse files
Merge pull request #176 from emulsify-ds/develop
Release: Contributor workflow and fix recursive compiling
2 parents 6527895 + 25a3883 commit 74270b0

6 files changed

Lines changed: 5135 additions & 2380 deletions

File tree

.all-contributorsrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

.github/workflows/contributors.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
name: Add contributors
22
on:
3-
schedule:
4-
- cron: "20 20 * * *"
53
push:
64
branches:
75
- main
6+
- develop
7+
workflow_dispatch:
88

99
jobs:
1010
add-contributors:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
13-
- uses: actions/checkout@v2
14-
- uses: BobAnkh/add-contributors@master
15+
- uses: actions/checkout@v4
1516
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 }}

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,25 @@ To facilitate automatic semantic release versioning, we utilize the [Conventiona
7272

7373
Emulsify® is a product of [Four Kitchens](https://fourkitchens.com).
7474

75-
### Contributors
75+
## Contributors
7676

77+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
78+
<!-- prettier-ignore-start -->
79+
<!-- markdownlint-disable -->
7780
<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>
9489
</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!

config/webpack/webpack.dev.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
1+
import fs from 'fs';
2+
import { resolve, dirname } from 'path';
13
import { merge } from 'webpack-merge';
24
import common from './webpack.common.js';
35

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+
432
export default merge(common, {
533
mode: 'development',
634
devtool: 'source-map',
35+
watchOptions: {
36+
// You can supply a RegExp, glob strings, or an array thereof
37+
ignored,
38+
},
739
});

0 commit comments

Comments
 (0)