Skip to content

Commit

Permalink
Merge pull request thi-ng#326 from ja0nz/feature/yarn3
Browse files Browse the repository at this point in the history
build: migrate to the new version of yarn
  • Loading branch information
postspectacular authored Nov 17, 2021
2 parents 69f269a + ffd1b9a commit fc2d657
Show file tree
Hide file tree
Showing 496 changed files with 17,657 additions and 11,974 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ">=16.9.0"
- run: yarn install
- run: yarn test
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ coverage
dev
doc
docs

!examples/**/snowpack.config.js
!examples/**/*.d.ts
examples/crdt
examples/delaunay-draw
examples/diagram
Expand Down Expand Up @@ -51,4 +54,12 @@ export
lib
node_modules
tachyons.min.css
zig-cache
zig-cache

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
nodeLinker: node-modules

nmMode: "hardlinks-global"

npmRegistryServer: "https://registry.npmjs.org"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.1.0.cjs
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ template and then re-generate the actual readme like so:

```bash
cd umbrella
lerna run doc:readme --scope @thi.ng/<package-name>
yarn workspace @thi.ng/<package-name> run doc:readme
```

### Wiki additions, blog posts, examples
Expand Down Expand Up @@ -216,7 +216,7 @@ there.
Tests can be run via:

```bash
lerna run test --scope @thi.ng/<package-name>
yarn workspace @thi.ng/<package-name> run test

# or
(cd packages/<package-name> && yarn test)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Once the entire mono-repo has been fully built at least once before,
individual packages can then be (re)built like so:

```bash
lerna run build --scope @thi.ng/transducers
yarn workspace @thi.ng/transducers run build

# or

Expand All @@ -409,7 +409,7 @@ runner
yarn test

# or individually
lerna run test --scope @thi.ng/rstream
yarn workspace @thi.ng/rstream run test
```

### Documentation
Expand Down
6 changes: 0 additions & 6 deletions examples/adaptive-threshold/.gitignore

This file was deleted.

23 changes: 13 additions & 10 deletions examples/adaptive-threshold/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{
"name": "adaptive-threshold",
"private": true,
"version": "0.0.1",
"description": "Interactive image processing (adaptive threshold)",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache",
"start": "../../node_modules/.bin/snowpack dev --reload",
"build": "yarn clean && ../../node_modules/.bin/snowpack build"
"clean": "rimraf build node_modules/.cache",
"start": "snowpack dev --reload",
"build": "yarn clean && snowpack build"
},
"dependencies": {
"@thi.ng/api": "latest",
"@thi.ng/paths": "latest",
"@thi.ng/pixel": "latest",
"@thi.ng/rstream": "latest",
"@thi.ng/transducers": "latest",
"@thi.ng/transducers-hdom": "latest"
"@thi.ng/api": "workspace:^",
"@thi.ng/paths": "workspace:^",
"@thi.ng/pixel": "workspace:^",
"@thi.ng/rstream": "workspace:^",
"@thi.ng/transducers": "workspace:^",
"@thi.ng/transducers-hdom": "workspace:^"
},
"browserslist": [
"last 3 Chrome versions"
Expand All @@ -36,6 +37,8 @@
"screenshot": "examples/adaptive-threshold.png"
},
"devDependencies": {
"@types/snowpack-env": "^2.3.3"
"@types/snowpack-env": "^2.3.3",
"rimraf": "^3.0.2",
"snowpack": "^3.8.8"
}
}
3 changes: 1 addition & 2 deletions examples/adaptive-threshold/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"paths": { "*": ["web_modules/.types/*"] }
"baseUrl": "./"
}
}
6 changes: 0 additions & 6 deletions examples/async-effect/.gitignore

This file was deleted.

17 changes: 10 additions & 7 deletions examples/async-effect/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "async-effect",
"private": true,
"version": "0.0.1",
"description": "Minimal demo using interceptors with an async side effect",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache",
"start": "../../node_modules/.bin/snowpack dev --reload",
"build": "yarn clean && ../../node_modules/.bin/snowpack build"
"clean": "rimraf build node_modules/.cache",
"start": "snowpack dev --reload",
"build": "yarn clean && snowpack build"
},
"dependencies": {
"@thi.ng/api": "latest",
"@thi.ng/hdom": "latest",
"@thi.ng/interceptors": "latest"
"@thi.ng/api": "workspace:^",
"@thi.ng/hdom": "workspace:^",
"@thi.ng/interceptors": "workspace:^"
},
"browserslist": [
"last 3 Chrome versions"
Expand All @@ -29,6 +30,8 @@
]
},
"devDependencies": {
"@types/snowpack-env": "^2.3.3"
"@types/snowpack-env": "^2.3.3",
"rimraf": "^3.0.2",
"snowpack": "^3.8.8"
}
}
3 changes: 1 addition & 2 deletions examples/async-effect/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"paths": { "*": ["web_modules/.types/*"] }
"baseUrl": "./"
}
}
6 changes: 0 additions & 6 deletions examples/bitmap-font/.gitignore

This file was deleted.

25 changes: 14 additions & 11 deletions examples/bitmap-font/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"name": "bitmap-font",
"private": true,
"version": "0.0.1",
"description": "Figlet-style bitmap font creation with transducers",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache",
"start": "../../node_modules/.bin/snowpack dev --reload",
"build": "yarn clean && ../../node_modules/.bin/snowpack build"
"clean": "rimraf build node_modules/.cache",
"start": "snowpack dev --reload",
"build": "yarn clean && snowpack build"
},
"dependencies": {
"@thi.ng/api": "latest",
"@thi.ng/hdom-components": "latest",
"@thi.ng/math": "latest",
"@thi.ng/rstream": "latest",
"@thi.ng/transducers": "latest",
"@thi.ng/transducers-binary": "latest",
"@thi.ng/transducers-hdom": "latest"
"@thi.ng/api": "workspace:^",
"@thi.ng/hdom-components": "workspace:^",
"@thi.ng/math": "workspace:^",
"@thi.ng/rstream": "workspace:^",
"@thi.ng/transducers": "workspace:^",
"@thi.ng/transducers-binary": "workspace:^",
"@thi.ng/transducers-hdom": "workspace:^"
},
"browserslist": [
"last 3 Chrome versions"
Expand All @@ -38,6 +39,8 @@
"screenshot": "examples/bitmap-font.gif"
},
"devDependencies": {
"@types/snowpack-env": "^2.3.3"
"@types/snowpack-env": "^2.3.3",
"rimraf": "^3.0.2",
"snowpack": "^3.8.8"
}
}
3 changes: 1 addition & 2 deletions examples/bitmap-font/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"paths": { "*": ["web_modules/.types/*"] }
"baseUrl": "./"
}
}
6 changes: 0 additions & 6 deletions examples/canvas-dial/.gitignore

This file was deleted.

33 changes: 18 additions & 15 deletions examples/canvas-dial/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "canvas-dial",
"private": true,
"version": "0.0.1",
"description": "Canvas based dial widget",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache",
"start": "../../node_modules/.bin/snowpack dev --reload",
"build": "yarn clean && ../../node_modules/.bin/snowpack build"
"clean": "rimraf build node_modules/.cache",
"start": "snowpack dev --reload",
"build": "yarn clean && snowpack build"
},
"dependencies": {
"@thi.ng/api": "latest",
"@thi.ng/arrays": "latest",
"@thi.ng/checks": "latest",
"@thi.ng/hdom-components": "latest",
"@thi.ng/math": "latest",
"@thi.ng/rstream": "latest",
"@thi.ng/rstream-gestures": "latest",
"@thi.ng/strings": "latest",
"@thi.ng/transducers": "latest",
"@thi.ng/transducers-hdom": "latest",
"@thi.ng/vectors": "latest"
"@thi.ng/api": "workspace:^",
"@thi.ng/arrays": "workspace:^",
"@thi.ng/checks": "workspace:^",
"@thi.ng/hdom-components": "workspace:^",
"@thi.ng/math": "workspace:^",
"@thi.ng/rstream": "workspace:^",
"@thi.ng/rstream-gestures": "workspace:^",
"@thi.ng/strings": "workspace:^",
"@thi.ng/transducers": "workspace:^",
"@thi.ng/transducers-hdom": "workspace:^",
"@thi.ng/vectors": "workspace:^"
},
"browserslist": [
"last 3 Chrome versions"
Expand All @@ -42,6 +43,8 @@
"screenshot": "examples/canvas-dial.png"
},
"devDependencies": {
"@types/snowpack-env": "^2.3.3"
"@types/snowpack-env": "^2.3.3",
"rimraf": "^3.0.2",
"snowpack": "^3.8.8"
}
}
3 changes: 1 addition & 2 deletions examples/canvas-dial/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"paths": { "*": ["web_modules/.types/*"] }
"baseUrl": "./"
}
}
6 changes: 0 additions & 6 deletions examples/cellular-automata/.gitignore

This file was deleted.

19 changes: 11 additions & 8 deletions examples/cellular-automata/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"name": "cellular-automata",
"private": true,
"version": "0.0.1",
"description": "2D transducer based cellular automata",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache",
"start": "../../node_modules/.bin/snowpack dev --reload",
"build": "yarn clean && ../../node_modules/.bin/snowpack build"
"clean": "rimraf build node_modules/.cache",
"start": "snowpack dev --reload",
"build": "yarn clean && snowpack build"
},
"dependencies": {
"@thi.ng/hdom": "latest",
"@thi.ng/hdom-components": "latest",
"@thi.ng/transducers": "latest",
"@thi.ng/transducers-binary": "latest"
"@thi.ng/hdom": "workspace:^",
"@thi.ng/hdom-components": "workspace:^",
"@thi.ng/transducers": "workspace:^",
"@thi.ng/transducers-binary": "workspace:^"
},
"browserslist": [
"last 3 Chrome versions"
Expand All @@ -34,6 +35,8 @@
"screenshot": "examples/cellular-automata.png"
},
"devDependencies": {
"@types/snowpack-env": "^2.3.3"
"@types/snowpack-env": "^2.3.3",
"rimraf": "^3.0.2",
"snowpack": "^3.8.8"
}
}
3 changes: 1 addition & 2 deletions examples/cellular-automata/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"paths": { "*": ["web_modules/.types/*"] }
"baseUrl": "./"
}
}
6 changes: 0 additions & 6 deletions examples/color-themes/.gitignore

This file was deleted.

Loading

0 comments on commit fc2d657

Please sign in to comment.