Skip to content

Commit

Permalink
rename examples package, simplify changeset config and pipeline (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Nov 7, 2022
1 parent ab908d8 commit ad50229
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ steps:
- echo "--- Install dependencies"
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable
- echo "--- Build bundles"
- yarn workspaces foreach -vtR --from '{with-next-js,with-vite}' run build
- yarn turbo run --filter='./examples/*' build
- echo "+++ Run tests"
- yarn workspaces foreach -vt --from 'with-next-js' run lint
- yarn turbo run --filter='./examples/*' lint
plugins:
- ssh://git@github.com/segmentio/cache-buildkite-plugin#v2.0.0:
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"
Expand Down
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"ignore": ["standalone-playground", "with-next-js", "with-vite"],
"ignore": ["@example/*", "@internal/*"],
"changelog": [
"@changesets/changelog-github",
{
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone-playground/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "standalone-playground",
"name": "@example/standalone-playground",
"private": true,
"installConfig": {
"hoistingLimits": "workspaces"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-next-js",
"name": "@example/with-next-js",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion examples/with-next-js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": [
"next-env.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-vite",
"name": "@example/with-vite",
"private": true,
"scripts": {
"concurrently": "yarn run -T concurrently",
Expand Down
92 changes: 46 additions & 46 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,52 @@ __metadata:
languageName: node
linkType: hard

"@example/standalone-playground@workspace:examples/standalone-playground":
version: 0.0.0-use.local
resolution: "@example/standalone-playground@workspace:examples/standalone-playground"
dependencies:
"@segment/analytics-next": "workspace:^"
concurrently: ^7.2.1
languageName: unknown
linkType: soft

"@example/with-next-js@workspace:examples/with-next-js":
version: 0.0.0-use.local
resolution: "@example/with-next-js@workspace:examples/with-next-js"
dependencies:
"@next/bundle-analyzer": ^12.1.5
"@segment/analytics-next": "workspace:^"
"@types/faker": ^5.1.2
"@types/react": ^17.0.37
eslint-config-next: ^12.1.6
faker: ^5.1.0
lodash: ^4.17.21
next: ^12.1.0
prismjs: ^1.27.0
rc-table: ^7.10.0
react: ^17.0.2
react-dom: ^17.0.2
react-json-tree: ^0.13.0
react-simple-code-editor: ^0.11.0
source-map-loader: ^3.0.1
languageName: unknown
linkType: soft

"@example/with-vite@workspace:examples/with-vite":
version: 0.0.0-use.local
resolution: "@example/with-vite@workspace:examples/with-vite"
dependencies:
"@segment/analytics-next": "workspace:^"
"@types/react": ^18.0.0
"@types/react-dom": ^18.0.0
"@vitejs/plugin-react": ^1.3.0
react: ^18.0.0
react-dom: ^18.0.0
typescript: ^4.6.4
vite: ^2.9.12
languageName: unknown
linkType: soft

"@gar/promisify@npm:^1.1.3":
version: 1.1.3
resolution: "@gar/promisify@npm:1.1.3"
Expand Down Expand Up @@ -12647,15 +12693,6 @@ __metadata:
languageName: node
linkType: hard

"standalone-playground@workspace:examples/standalone-playground":
version: 0.0.0-use.local
resolution: "standalone-playground@workspace:examples/standalone-playground"
dependencies:
"@segment/analytics-next": "workspace:^"
concurrently: ^7.2.1
languageName: unknown
linkType: soft

"statuses@npm:>= 1.5.0 < 2, statuses@npm:~1.5.0":
version: 1.5.0
resolution: "statuses@npm:1.5.0"
Expand Down Expand Up @@ -14272,43 +14309,6 @@ __metadata:
languageName: node
linkType: hard

"with-next-js@workspace:examples/with-next-js":
version: 0.0.0-use.local
resolution: "with-next-js@workspace:examples/with-next-js"
dependencies:
"@next/bundle-analyzer": ^12.1.5
"@segment/analytics-next": "workspace:^"
"@types/faker": ^5.1.2
"@types/react": ^17.0.37
eslint-config-next: ^12.1.6
faker: ^5.1.0
lodash: ^4.17.21
next: ^12.1.0
prismjs: ^1.27.0
rc-table: ^7.10.0
react: ^17.0.2
react-dom: ^17.0.2
react-json-tree: ^0.13.0
react-simple-code-editor: ^0.11.0
source-map-loader: ^3.0.1
languageName: unknown
linkType: soft

"with-vite@workspace:examples/with-vite":
version: 0.0.0-use.local
resolution: "with-vite@workspace:examples/with-vite"
dependencies:
"@segment/analytics-next": "workspace:^"
"@types/react": ^18.0.0
"@types/react-dom": ^18.0.0
"@vitejs/plugin-react": ^1.3.0
react: ^18.0.0
react-dom: ^18.0.0
typescript: ^4.6.4
vite: ^2.9.12
languageName: unknown
linkType: soft

"word-wrap@npm:^1.2.3, word-wrap@npm:~1.2.3":
version: 1.2.3
resolution: "word-wrap@npm:1.2.3"
Expand Down

0 comments on commit ad50229

Please sign in to comment.