Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental] Use yarn.build to build and test the framework #3851

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions .yarn/plugins/@ojkelly/plugin-build.cjs

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions .yarn/plugins/@ojkelly/plugin-test.cjs

Large diffs are not rendered by default.

631 changes: 0 additions & 631 deletions .yarn/releases/yarn-3.0.2.cjs

This file was deleted.

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

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ plugins:
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: "@yarnpkg/plugin-constraints"
- path: .yarn/plugins/@ojkelly/plugin-build.cjs
spec: "https://yarn.build/latest/build"
- path: .yarn/plugins/@ojkelly/plugin-test.cjs
spec: "https://yarn.build/latest/test"

preferInteractive: true

yarnPath: .yarn/releases/yarn-3.0.2.cjs
yarnPath: .yarn/releases/yarn-3.1.1.cjs
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@
},
"scripts": {
"framework": "yarn ./tasks/framework-tools",
"build": "yarn build:js && yarn build:types",
"build:js": "lerna run build:js",
"build:types": "tsc --build --verbose",
"build:clean": "rimraf packages/**/dist",
"build:watch": "lerna run build:watch --parallel; tsc --build",
"test": "lerna run test --stream -- --colors --maxWorkers=4",
"build:watch": "nodemon --watch packages --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build\"",
"e2e": "node ./tasks/run-e2e",
"clean:prisma": "rimraf node_modules/.prisma/client && node node_modules/@prisma/client/scripts/postinstall.js",
"lint": "RWJS_CWD=packages/create-redwood-app/template eslint --config .eslintrc.js packages",
Expand All @@ -62,5 +58,5 @@
"release-notes": "cd tasks/release-notes && yarn install && ./release-notes.js",
"publish:canary": "lerna publish --force-publish --canary --include-merged-tags --preid canary --dist-tag canary --yes --loglevel verbose"
},
"packageManager": "yarn@3.0.2"
"packageManager": "yarn@3.1.1"
}
7 changes: 6 additions & 1 deletion packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@
"typescript": "4.5.2"
},
"scripts": {
"build": "yarn build:js",
"build": "yarn build:js && yarn build:types",
"prepublishOnly": "NODE_ENV=production yarn build",
"build:js": "babel src -d dist --extensions \".js,.ts,.tsx\"",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build && yarn fix:permissions\"",
"fix:permissions": "chmod +x dist/index.js; chmod +x dist/watch.js"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"test": "NODE_ENV=test jest",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"devDependencies": {
"@types/babel__core": "7.1.16",
"@types/fs-extra": "9.0.13",
Expand Down
4 changes: 4 additions & 0 deletions packages/create-redwood-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762",
"devDependencies": {
"@babel/cli": "7.16.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
"directory": "packages/forms"
},
"scripts": {
"build": "yarn build:js",
"build": "yarn build:js && yarn build:types",
"prepublishOnly": "NODE_ENV=production yarn build",
"build:js": "babel src -d dist --extensions \".js,.ts,.tsx\"",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build\"",
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762",
"devDependencies": {
"@babel/cli": "7.16.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/graphql-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/prerender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"externals": {
"react": "react",
"react-dom": "react-dom"
Expand Down
4 changes: 4 additions & 0 deletions packages/record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "d583dfdf18f9433038098a64e71f6a421c6d1c04"
}
4 changes: 4 additions & 0 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,9 @@
"test:watch": "yarn test --watch",
"prettier": "prettier --write './src/**/*.{ts,tsx}'"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
4 changes: 4 additions & 0 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762",
"devDependencies": {
"@babel/cli": "7.16.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@
"test": "jest src",
"test:watch": "yarn test --watch"
},
"yarn.build": {
"input": "src",
"output": "dist"
},
"gitHead": "8be6a35c2dfd5aaeb12d55be4f0c77eefceb7762"
}
2 changes: 1 addition & 1 deletion tasks/framework-tools/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8c0

"@nodelib/fs.scandir@npm:2.1.5":
Expand Down
Loading