Skip to content

Commit ff4d6a6

Browse files
authored
refactor: rename board config files community.* to meith.* (#291)
1 parent 5ff4ee3 commit ff4d6a6

66 files changed

Lines changed: 189 additions & 191 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ MAIL_DRIVER=log # log | http | smtp
288288
# and Clubhouse alongside the default — rather than the default alone. This is what the public demo
289289
# runs, so that it can be a shop window without deciding anything for a board
290290
# you deploy yourself: yours starts with the default theme and adds what it
291-
# wants in community.config.ts, a file you own and this flag never touches.
291+
# wants in meith.config.ts, a file you own and this flag never touches.
292292
# SHOWCASE_THEMES=0
293293

294294
# ─────────────────────────────────────────────────────────────────────────────

apps/cli/bin/community.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function toPosixRelative(from, to) {
2121
}
2222

2323
function materialize() {
24-
const boardConfig = join(workspaceRoot, 'community.config.ts')
25-
const boardPlugins = join(workspaceRoot, 'community.plugins.ts')
24+
const boardConfig = join(workspaceRoot, 'meith.config.ts')
25+
const boardPlugins = join(workspaceRoot, 'meith.plugins.ts')
2626

2727
if (!existsSync(boardConfig)) {
2828
fail(
29-
`no community.config.ts in ${workspaceRoot}. Run community from a board's own ` +
29+
`no meith.config.ts in ${workspaceRoot}. Run community from a board's own ` +
3030
'directory — the one create-meith scaffolded, or one shaped like it.',
3131
)
3232
}

apps/cli/src/board-eject.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ describe('boardEject', () => {
152152
])
153153
})
154154

155-
it('renders an empty community.plugins.ts with no showcase wiring when the manifest is empty', async () => {
155+
it('renders an empty meith.plugins.ts with no showcase wiring when the manifest is empty', async () => {
156156
const target = join(targetParent, 'my-board')
157157
await boardEject([target])
158158

159-
const generated = await readFile(join(target, 'community.plugins.ts'), 'utf8')
159+
const generated = await readFile(join(target, 'meith.plugins.ts'), 'utf8')
160160
expect(generated).toContain('export const INSTALLED_PLUGINS: readonly InstalledPlugin[] = []')
161-
expect(generated).not.toContain('community.demo.plugins')
161+
expect(generated).not.toContain('meith.demo.plugins')
162162
expect(generated).not.toContain('showcasePlugins')
163163
})
164164

@@ -171,7 +171,7 @@ describe('boardEject', () => {
171171

172172
await boardEject([target])
173173

174-
const generated = await readFile(join(target, 'community.plugins.ts'), 'utf8')
174+
const generated = await readFile(join(target, 'meith.plugins.ts'), 'utf8')
175175
expect(generated).toContain(
176176
"import { messages as duesMessages, plugin as duesPlugin } from '@meith/plugin-dues'",
177177
)
@@ -185,7 +185,7 @@ describe('boardEject', () => {
185185
expect(generated).toContain(
186186
"{ key: 'reference', enabled: false, plugin: referencePlugin, messages: referenceMessages },",
187187
)
188-
expect(generated).not.toContain('community.demo.plugins')
188+
expect(generated).not.toContain('meith.demo.plugins')
189189
})
190190

191191
it('prints next steps naming what does not move', async () => {

apps/cli/src/board-eject.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function validateEjectManifest(plugins: readonly ManifestEntry[], path: s
7474
if (!IDENTIFIER_PATTERN.test(identifier)) {
7575
throw new ValidationError(
7676
`${path}: "${entry.key}" is a valid plugin key, but the identifier ` +
77-
`community.plugins.ts would bind for it, "${identifier}", is not a valid TypeScript ` +
77+
`meith.plugins.ts would bind for it, "${identifier}", is not a valid TypeScript ` +
7878
'identifier. Each hyphen must be followed by exactly one lower-case letter or digit, ' +
7979
'and a key cannot end in a hyphen.',
8080
)
@@ -84,7 +84,7 @@ export function validateEjectManifest(plugins: readonly ManifestEntry[], path: s
8484
if (collidingKey !== undefined) {
8585
throw new ValidationError(
8686
`${path}: "${entry.key}" and "${collidingKey}" both generate the identifier ` +
87-
`"${identifier}" for community.plugins.ts. Rename one of the keys so the generated ` +
87+
`"${identifier}" for meith.plugins.ts. Rename one of the keys so the generated ` +
8888
'imports do not collide.',
8989
)
9090
}
@@ -208,7 +208,7 @@ export async function boardEject(args: readonly string[]): Promise<number> {
208208
}
209209
files.set('package.json', mergePluginDependencies(packageJson, manifest.plugins))
210210
files.set('board.plugins.json', `${JSON.stringify({ plugins: manifest.plugins }, null, 2)}\n`)
211-
files.set('community.plugins.ts', renderInstalledPluginsModule(manifest.plugins))
211+
files.set('meith.plugins.ts', renderInstalledPluginsModule(manifest.plugins))
212212

213213
for (const [relative, contents] of files) {
214214
const path = join(target, relative)

apps/cli/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const commands: Command[] = [
211211

212212
{
213213
name: 'plugin:add',
214-
summary: 'Add a package to board.plugins.json and regenerate community.plugins.ts.',
214+
summary: 'Add a package to board.plugins.json and regenerate meith.plugins.ts.',
215215
usage: 'community plugin:add <package> [--key <key>] [--disabled]',
216216
async run(args: readonly string[]) {
217217
const { pluginAdd } = await import('./plugin-manifest')
@@ -221,7 +221,7 @@ const commands: Command[] = [
221221

222222
{
223223
name: 'plugin:remove',
224-
summary: 'Remove a plugin from board.plugins.json and regenerate community.plugins.ts.',
224+
summary: 'Remove a plugin from board.plugins.json and regenerate meith.plugins.ts.',
225225
usage: 'community plugin:remove <key>',
226226
async run(args: readonly string[]) {
227227
const { pluginRemove } = await import('./plugin-manifest')

apps/cli/src/plugin-manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function readManifestFor(board: Board): Promise<Manifest> {
5252
'repository carries — apps/community and boards/stock — and reruns the generator, ' +
5353
'so it needs a checkout of the repository, not the deployed image — run it where you ' +
5454
'would run `pnpm add`, commit both board.plugins.json files and both ' +
55-
'community.plugins.ts files, then rebuild and redeploy.',
55+
'meith.plugins.ts files, then rebuild and redeploy.',
5656
)
5757
}
5858
throw error

apps/cli/src/plugins.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ describe('purge', () => {
8181
it('says what is left to do by hand', async () => {
8282
await purge({ key: 'dues', plugins: [dues], confirmed: true, log })
8383

84-
expect(lines.join('\n')).toContain('community.plugins.ts')
84+
expect(lines.join('\n')).toContain('meith.plugins.ts')
8585
})
8686
})

apps/cli/src/plugins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function purge(options: PurgeOptions): Promise<number> {
1717
options.log('')
1818
options.log('Purging runs the plugin’s own onUninstall before dropping its data, so it')
1919
options.log('has to happen while the code is still installed. Put the plugin back into')
20-
options.log('community.plugins.ts, deploy, purge, and then remove it.')
20+
options.log('meith.plugins.ts, deploy, purge, and then remove it.')
2121
return 1
2222
}
2323

@@ -53,7 +53,7 @@ export async function purge(options: PurgeOptions): Promise<number> {
5353
`${result.navigation} navigation item(s).`,
5454
)
5555
options.log('')
56-
options.log('Now take it out of community.plugins.ts, pnpm remove it, and redeploy.')
56+
options.log('Now take it out of meith.plugins.ts, pnpm remove it, and redeploy.')
5757

5858
return 0
5959
}

apps/community/app/admin/plugins/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default async function AdminPluginsPage() {
3333
title={t.t('page.plugins')}
3434
lede={
3535
<>
36-
{t.t('adminPlugins.ledeBefore')} <code className="text-xs">community.config.ts</code>{' '}
36+
{t.t('adminPlugins.ledeBefore')} <code className="text-xs">meith.config.ts</code>{' '}
3737
{t.t('adminPlugins.ledeAfter')}
3838
</>
3939
}

apps/community/app/admin/themes/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default async function AdminThemesPage() {
169169
{translator.t('adminThemes.deployBefore')} <em>exist</em>
170170
{translator.t('adminThemes.deployAfterExist')} <code className="text-xs">pnpm add</code>{' '}
171171
{translator.t('adminThemes.deployAfterAdd')}{' '}
172-
<code className="text-xs">community.config.ts</code>
172+
<code className="text-xs">meith.config.ts</code>
173173
{translator.t('adminThemes.deployAfterConfig')}{' '}
174174
<code className="text-xs">defaultTheme</code> {translator.t('adminThemes.deployEnd')}
175175
</p>

0 commit comments

Comments
 (0)