diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 460d1395..67775bc9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} - files: packages/clock/coverage/lcov.info,example/coverage/lcov.info + files: packages/clock/coverage/lcov.info,examples/simple/coverage/lcov.info flags: unittests name: codecov-umbrella fail_ci_if_error: true diff --git a/.gitignore b/.gitignore index a6ace5c8..55d76680 100644 --- a/.gitignore +++ b/.gitignore @@ -232,4 +232,4 @@ sketch # End of https://www.toptal.com/developers/gitignore/api/react packages/*/build/* -example/build/* +examples/*/build/* diff --git a/.gitignore.in b/.gitignore.in index 7138774e..f440cea6 100755 --- a/.gitignore.in +++ b/.gitignore.in @@ -9,4 +9,4 @@ gibo dump macOS gibo dump Node gi react echo 'packages/*/build/*' -echo 'example/build/*' +echo 'examples/*/build/*' diff --git a/example/tsconfig.json b/example/tsconfig.json deleted file mode 100644 index 3cf966d7..00000000 --- a/example/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../tsconfig.json", - "include": ["src"] -} diff --git a/example/.eslintrc.json b/examples/simple/.eslintrc.json similarity index 100% rename from example/.eslintrc.json rename to examples/simple/.eslintrc.json diff --git a/example/README.md b/examples/simple/README.md similarity index 100% rename from example/README.md rename to examples/simple/README.md diff --git a/example/package.json b/examples/simple/package.json similarity index 87% rename from example/package.json rename to examples/simple/package.json index 84411708..f6486d21 100644 --- a/example/package.json +++ b/examples/simple/package.json @@ -1,8 +1,13 @@ { - "name": "example", + "name": "simple", "version": "0.1.0", "private": true, "dependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0", + "@kitsuyui/react-clock": "file:../../packages/clock" + }, + "devDependencies": { "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.0.0", @@ -10,12 +15,9 @@ "@types/node": "^18.0.0", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-scripts": "5.0.1", - "typescript": "^5.0.0", "web-vitals": "^3.0.0", - "@kitsuyui/react-clock": "file:../packages/clock" + "react-scripts": "5.0.1", + "typescript": "^5.0.0" }, "scripts": { "start": "react-scripts start", diff --git a/example/public/favicon.ico b/examples/simple/public/favicon.ico similarity index 100% rename from example/public/favicon.ico rename to examples/simple/public/favicon.ico diff --git a/example/public/index.html b/examples/simple/public/index.html similarity index 100% rename from example/public/index.html rename to examples/simple/public/index.html diff --git a/example/public/logo192.png b/examples/simple/public/logo192.png similarity index 100% rename from example/public/logo192.png rename to examples/simple/public/logo192.png diff --git a/example/public/logo512.png b/examples/simple/public/logo512.png similarity index 100% rename from example/public/logo512.png rename to examples/simple/public/logo512.png diff --git a/example/public/manifest.json b/examples/simple/public/manifest.json similarity index 100% rename from example/public/manifest.json rename to examples/simple/public/manifest.json diff --git a/example/public/robots.txt b/examples/simple/public/robots.txt similarity index 100% rename from example/public/robots.txt rename to examples/simple/public/robots.txt diff --git a/example/src/App.css b/examples/simple/src/App.css similarity index 100% rename from example/src/App.css rename to examples/simple/src/App.css diff --git a/example/src/App.test.tsx b/examples/simple/src/App.test.tsx similarity index 100% rename from example/src/App.test.tsx rename to examples/simple/src/App.test.tsx diff --git a/example/src/App.tsx b/examples/simple/src/App.tsx similarity index 100% rename from example/src/App.tsx rename to examples/simple/src/App.tsx diff --git a/example/src/index.css b/examples/simple/src/index.css similarity index 100% rename from example/src/index.css rename to examples/simple/src/index.css diff --git a/example/src/index.tsx b/examples/simple/src/index.tsx similarity index 100% rename from example/src/index.tsx rename to examples/simple/src/index.tsx diff --git a/example/src/react-app-env.d.ts b/examples/simple/src/react-app-env.d.ts similarity index 100% rename from example/src/react-app-env.d.ts rename to examples/simple/src/react-app-env.d.ts diff --git a/example/src/reportWebVitals.ts b/examples/simple/src/reportWebVitals.ts similarity index 100% rename from example/src/reportWebVitals.ts rename to examples/simple/src/reportWebVitals.ts diff --git a/example/src/setupTests.ts b/examples/simple/src/setupTests.ts similarity index 100% rename from example/src/setupTests.ts rename to examples/simple/src/setupTests.ts diff --git a/examples/simple/tsconfig.json b/examples/simple/tsconfig.json new file mode 100644 index 00000000..596e2cf7 --- /dev/null +++ b/examples/simple/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src"] +} diff --git a/example/yarn.lock b/examples/simple/yarn.lock similarity index 100% rename from example/yarn.lock rename to examples/simple/yarn.lock diff --git a/package.json b/package.json index 6e9c7c1a..b84934ef 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "workspaces": [ "config/*", "packages/*", - "example" + "examples/*" ], "devDependencies": { "turbo": "^1.9.3"