Skip to content

Commit

Permalink
ci: remove .github files during remix.init
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks committed Sep 17, 2024
1 parent 9832a13 commit 2ef11f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions remix.init/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console,sonarjs/no-os-command-from-path */
import {execSync} from 'node:child_process';
import {rename} from 'node:fs';
import {rename, unlinkSync} from 'node:fs';
import path from 'node:path';

const renameEnvironmentFile = (rootDirectory) => {
Expand All @@ -20,9 +20,15 @@ const initializeHuskyAndPlaywright = (rootDirectory) => {
});
};

const main = ({rootDirectory}) => {
const cleanup = (rootDirectory) => {
unlinkSync(path.join(rootDirectory, '.github/CODEOWNERS'));
unlinkSync(path.join(rootDirectory, '.github/FUNDING.yml'));
};

const main = async ({rootDirectory}) => {
renameEnvironmentFile(rootDirectory);
initializeHuskyAndPlaywright(rootDirectory);
cleanup(rootDirectory);
};

export default main;

0 comments on commit 2ef11f5

Please sign in to comment.