Skip to content

Commit 49d17e6

Browse files
add fujowebdev projects
1 parent d62b51f commit 49d17e6

5 files changed

Lines changed: 121 additions & 73 deletions

File tree

code/check.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ async function getContributor() {
2525
}
2626

2727
const TEAM_DIR = path.resolve(process.cwd(), "contributors");
28-
const PROJECTS_FILE = path.resolve(
28+
const PROJECTS_DIR = path.resolve(
2929
process.cwd(),
30-
"contributors/_schema/projects.ts"
30+
"contributors/_schema/projects"
3131
);
3232
const SCHEMA_FILE = path.resolve(
3333
process.cwd(),
@@ -209,8 +209,8 @@ async function printResults(
209209
console.log(
210210
` • Project names and roles must match those in ./${path.relative(
211211
process.cwd(),
212-
PROJECTS_FILE
213-
)}`
212+
PROJECTS_DIR
213+
)}/`
214214
);
215215
console.log(
216216
` • Ensure all required fields (${Object.entries(Contributor.shape)
@@ -281,9 +281,15 @@ function startWatchMode(): void {
281281
);
282282
watchers.push(teamWatcher);
283283

284-
const projectsWatcher = watch(PROJECTS_FILE, () => {
285-
runValidation(true);
286-
});
284+
const projectsWatcher = watch(
285+
PROJECTS_DIR,
286+
{ recursive: true },
287+
(eventType, filename) => {
288+
if (filename && filename.endsWith(".ts")) {
289+
runValidation(true);
290+
}
291+
}
292+
);
287293
watchers.push(projectsWatcher);
288294

289295
const schemaWatcher = watch(SCHEMA_FILE, () => {

contributors/_schema/projects.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const FANDOM_COOKIES_ROLES = [
2+
"Additional Research, Feedback, Development, and Assistance",
3+
"Alt Text",
4+
"Art Direction",
5+
"Artist",
6+
"Cookie Catcher Design",
7+
"CSS & Design",
8+
"Digital Item Pack Assembly",
9+
"Digital Item Pack Wallpapers",
10+
"Extra",
11+
"Extra Hands (and Brains)",
12+
"Feedback",
13+
"Programming",
14+
"Project Management",
15+
"Promo Campaign Assistance",
16+
];
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
export const VOLUME_0_KICKSTARTER_ROLES = [
2+
"Additional Art & Layout",
3+
"Additional Research, Feedback, Development, and Assistance",
4+
"Art Director",
5+
"Artist",
6+
"Character Designer",
7+
"Editor",
8+
"Graphic Design",
9+
"Lead Research",
10+
"Merch Designer",
11+
"Project Lead",
12+
"Project Organizing",
13+
"QA Testing",
14+
"Sensitivity Reading",
15+
"Social Media & Marketing",
16+
"Technical Writer",
17+
"Writer",
18+
];
19+
20+
export const VOLUME_0_ROLES = [
21+
"Additional Coding",
22+
"Artist",
23+
"Beta Reader",
24+
"Beta Wrangler",
25+
"Character Designer",
26+
"Editor",
27+
"Project Organizing",
28+
"Technical Writer",
29+
];
30+
31+
export const VOLUME_0_ISSUE_1_ROLES = [
32+
"Additional Coding",
33+
"Artist",
34+
"Beta Reader",
35+
"Beta Reading Coordinator",
36+
"Character Designer",
37+
"Communications",
38+
"Data Collection & Entry",
39+
"Project Management",
40+
"Proofreader",
41+
"Scenario Writer",
42+
"Tasks Coordinator",
43+
"Technical Writer",
44+
];
45+
46+
export const WEBSITES_ROLES = ["fujoweb.dev", "fujocoded.com"];
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import {
2+
VOLUME_0_KICKSTARTER_ROLES,
3+
VOLUME_0_ROLES,
4+
VOLUME_0_ISSUE_1_ROLES,
5+
WEBSITES_ROLES,
6+
} from "./fujoguide";
7+
8+
import { FANDOM_COOKIES_ROLES } from "./fandom-cookies";
9+
10+
export {
11+
VOLUME_0_KICKSTARTER_ROLES,
12+
VOLUME_0_ROLES,
13+
VOLUME_0_ISSUE_1_ROLES,
14+
WEBSITES_ROLES,
15+
} from "./fujoguide";
16+
17+
export { FANDOM_COOKIES_ROLES } from "./fandom-cookies";
18+
19+
export const FUJOCODED_ROLES = ["HimeOps", "FujoCoded"];
20+
export const LEARN_AT_ROLES = ["Article Writer", "Writers Coordinator"];
21+
export const CODE_CONTRIBUTOR_ROLES = ["Documentation", "Maintainer"];
22+
23+
export const PROJECTS = [
24+
"Volume 0 Kickstarter",
25+
"Volume 0",
26+
"Volume 0 Issue 1",
27+
"Websites",
28+
"Fandom Cookies",
29+
"FujoCoded",
30+
"Learn@",
31+
"Code Contributor",
32+
] as const;
33+
export type Project = (typeof PROJECTS)[number];
34+
35+
export const PROJECT_ROLES: Record<Project, string[]> = {
36+
"Volume 0 Kickstarter": VOLUME_0_KICKSTARTER_ROLES,
37+
"Volume 0": VOLUME_0_ROLES,
38+
"Volume 0 Issue 1": VOLUME_0_ISSUE_1_ROLES,
39+
Websites: WEBSITES_ROLES,
40+
"Fandom Cookies": FANDOM_COOKIES_ROLES,
41+
FujoCoded: FUJOCODED_ROLES,
42+
"Learn@": LEARN_AT_ROLES,
43+
"Code Contributor": CODE_CONTRIBUTOR_ROLES,
44+
};
45+
46+
export default PROJECTS;

0 commit comments

Comments
 (0)