Skip to content

Commit 0eba61a

Browse files
committed
Rename apps to frameworks
1 parent a08af11 commit 0eba61a

35 files changed

+8
-387
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ node_modules/
22
dist/
33
CHANGELOG.md
44
.yarn_home/
5-
src/test/apps/
5+
src/test/frameworks/
66
src/test/types/
77
src/tools/types/

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
src/test/apps/**/* linguist-documentation
1+
src/test/frameworks/**/* linguist-documentation
22
.eslintrc.js linguist-documentation
33
next.config.js linguist-documentation
44
src/bin/copy_dsfr_dist_to_public.ts -linguist-detectable

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ jobs:
153153
- run: |
154154
yarn build
155155
yarn yarn_link
156-
cd src/test/apps/cra
156+
cd src/test/frameworks/cra
157157
yarn build
158158
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
159159
env:
160160
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161-
- run: npx -y -p gh-pages@3.1.0 gh-pages -d src/test/apps/cra/build --dest test --add -u "github-actions-bot <actions@github.com>"
161+
- run: npx -y -p gh-pages@3.1.0 gh-pages -d src/test/frameworks/cra/build --dest test --add -u "github-actions-bot <actions@github.com>"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ node_modules/
22
/dist/
33
/CHANGELOG.md
44
/.yarn_home/
5-
/src/test/apps/
5+
/src/test/frameworks/
66
/src/tools/types/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"types": "dist/lib/index.d.ts",
1111
"scripts": {
1212
"build": "rimraf dist/ && tsc -p src/bin && tsc -p src && yarn grant_exec_perms && yarn copy_dsfr_dist_to_root",
13-
"start_cra": "yarn yarn_link && cd src/test/apps/cra && yarn start",
14-
"start_next": "yarn yarn_link && cd src/test/apps/next && yarn dev",
13+
"start_cra": "yarn yarn_link && cd src/test/frameworks/cra && yarn start",
14+
"start_next": "yarn yarn_link && cd src/test/frameworks/next && yarn dev",
1515
"lint:check": "eslint . --ext .ts,.tsx",
1616
"lint": "yarn lint:check --fix",
1717
"_format": "prettier '**/*.{ts,tsx,json,md}'",

src/bin/yarn_link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => {
109109
const testAppNames = ["cra", "next"] as const;
110110

111111
const getTestAppPath = (testAppName: typeof testAppNames[number]) =>
112-
pathJoin(projectDirPath, "src", "test", "apps", testAppName);
112+
pathJoin(projectDirPath, "src", "test", "frameworks", testAppName);
113113

114114
testAppNames.forEach(testAppName =>
115115
execSync("yarn install", { "cwd": getTestAppPath(testAppName) })

0 commit comments

Comments
 (0)