diff options
| author | 2023-04-28 01:36:44 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:36:44 +0800 | |
| commit | dd84b9d64fb98746a230cd24233ff50a562c39c9 (patch) | |
| tree | b583261ef00b3afe72ec4d6dacb31e57779a6faf /packages/eslint-plugin-turbo/__fixtures__/workspace | |
| parent | 0b46fcd72ac34382387b2bcf9095233efbcc52f4 (diff) | |
| download | HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.tar.gz HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.zip | |
Diffstat (limited to 'packages/eslint-plugin-turbo/__fixtures__/workspace')
6 files changed, 104 insertions, 0 deletions
diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/.eslintrc.js b/packages/eslint-plugin-turbo/__fixtures__/workspace/.eslintrc.js new file mode 100644 index 0000000..8dc66dc --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ["plugin:turbo/recommended"], +}; diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/child/child.js b/packages/eslint-plugin-turbo/__fixtures__/workspace/child/child.js new file mode 100644 index 0000000..9e799a2 --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/child/child.js @@ -0,0 +1,2 @@ +process.env.NONEXISTENT; +process.env.CI; diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/package-lock.json b/packages/eslint-plugin-turbo/__fixtures__/workspace/package-lock.json new file mode 100644 index 0000000..301f072 --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/package-lock.json @@ -0,0 +1,58 @@ +{ + "name": "workspace", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "dependencies": { + "eslint-plugin-turbo": "../../" + } + }, + "../..": { + "version": "1.9.0", + "license": "MPL-2.0", + "devDependencies": { + "@turbo/test-utils": "workspace:*", + "@turbo/tsconfig": "workspace:*", + "@turbo/types": "workspace:*", + "@turbo/utils": "workspace:*", + "@types/eslint": "^8.4.5", + "@types/estree": "^1.0.0", + "@types/jest": "^27.4.0", + "@types/node": "^16.11.12", + "jest": "^27.4.3", + "json5": "^2.2.1", + "ts-jest": "^27.1.1", + "tsup": "^6.2.0", + "typescript": "^4.7.4" + }, + "peerDependencies": { + "eslint": ">6.6.0" + } + }, + "node_modules/eslint-plugin-turbo": { + "resolved": "../..", + "link": true + } + }, + "dependencies": { + "eslint-plugin-turbo": { + "version": "file:../..", + "requires": { + "@turbo/test-utils": "workspace:*", + "@turbo/tsconfig": "workspace:*", + "@turbo/types": "workspace:*", + "@turbo/utils": "workspace:*", + "@types/eslint": "^8.4.5", + "@types/estree": "^1.0.0", + "@types/jest": "^27.4.0", + "@types/node": "^16.11.12", + "jest": "^27.4.3", + "json5": "^2.2.1", + "ts-jest": "^27.1.1", + "tsup": "^6.2.0", + "typescript": "^4.7.4" + } + } + } +} diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/package.json b/packages/eslint-plugin-turbo/__fixtures__/workspace/package.json new file mode 100644 index 0000000..a1b2929 --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "eslint-plugin-turbo": "../../" + } +} diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/peer.js b/packages/eslint-plugin-turbo/__fixtures__/workspace/peer.js new file mode 100644 index 0000000..16c8bb0 --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/peer.js @@ -0,0 +1 @@ +process.env.CI; diff --git a/packages/eslint-plugin-turbo/__fixtures__/workspace/turbo.json b/packages/eslint-plugin-turbo/__fixtures__/workspace/turbo.json new file mode 100644 index 0000000..8079eb2 --- /dev/null +++ b/packages/eslint-plugin-turbo/__fixtures__/workspace/turbo.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalEnv": ["UNORDERED", "CI"], + "pipeline": { + "build": { + // A workspace's `build` task depends on that workspace's + // topological dependencies' and devDependencies' + // `build` tasks being completed first. The `^` symbol + // indicates an upstream dependency. + "dependsOn": ["^build"] + }, + "test": { + // A workspace's `test` task depends on that workspace's + // own `build` task being completed first. + "dependsOn": ["build"], + "outputs": [], + // A workspace's `test` task should only be rerun when + // either a `.tsx` or `.ts` file has changed. + "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] + }, + "lint": { + // A workspace's `lint` task has no dependencies and + // can be run whenever. + "outputs": [] + }, + "deploy": { + // A workspace's `deploy` task depends on the `build`, + // `test`, and `lint` tasks of the same workspace + // being completed. + "dependsOn": ["build", "test", "lint"], + "outputs": [] + } + } +} |