Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): move add-nx into main nx repo (#9382)
* chore(repo): move add-nx into main nx repo * fix(misc): fix publishing of add nx projects Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
- Loading branch information
1 parent
3627c3a
commit 19e9b46
Showing
42 changed files
with
1,554 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"rules": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# `> npx add-nx-to-monorepo` | ||
|
||
<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600"></p> | ||
|
||
<div align="center"> | ||
|
||
[![License](https://img.shields.io/npm/l/@nrwl/workspace.svg?style=flat-square)]() | ||
[![NPM Version](https://badge.fury.io/js/%40nrwl%2Fworkspace.svg)](https://www.npmjs.com/@nrwl/workspace) | ||
[![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![Join us @nrwl/community on slack](https://img.shields.io/badge/slack-%40nrwl%2Fcommunity-brightgreen)](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc) | ||
|
||
</div> | ||
|
||
An easy way to add Nx computation caching to any monorepo (Yarn Workspaces, PNPM, Lerna, etc). | ||
|
||
Simply run: `npx add-nx-to-monorepo` in your monorepo. | ||
|
||
## Learn More | ||
|
||
- See [https://github.com/nrwl/nx](https://github.com/nrwl/nx) to learn more about Nx. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
displayName: 'add-nx-to-monorepo', | ||
preset: '../../jest.preset.js', | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
transform: { | ||
'^.+\\.[tj]sx?$': 'ts-jest', | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
coverageDirectory: '../../coverage/projects/add-nx-to-monorepo', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "add-nx-to-monorepo", | ||
"version": "0.0.1", | ||
"description": "Make any monorepo faster by adding Nx to it", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nrwl/add-nx.git" | ||
}, | ||
"keywords": [ | ||
"Monorepo", | ||
"React", | ||
"Web", | ||
"Node", | ||
"Nest", | ||
"Lerna", | ||
"Yarn", | ||
"CLI" | ||
], | ||
"bin": { | ||
"add-nx-to-monorepo": "./src/add-nx-to-monorepo.js" | ||
}, | ||
"author": "Victor Savkin", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/nrwl/add-nx/issues" | ||
}, | ||
"homepage": "https://nx.dev", | ||
"dependencies": { | ||
"strip-json-comments": "^3.1.1", | ||
"ignore": "^5.0.4", | ||
"@nrwl/workspace": "*", | ||
"enquirer": "~2.3.6", | ||
"yargs-parser": "20.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"root": "packages/add-nx-to-monorepo", | ||
"sourceRoot": "packages/add-nx-to-monorepo/src", | ||
"projectType": "library", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["packages/add-nx-to-monorepo/**/*.ts"] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"outputs": ["coverage/packages/add-nx-to-monorepo"], | ||
"options": { | ||
"jestConfig": "packages/add-nx-to-monorepo/jest.config.js", | ||
"passWithNoTests": true | ||
} | ||
}, | ||
"build-base": { | ||
"executor": "@nrwl/js:tsc", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "build/packages/add-nx-to-monorepo", | ||
"tsConfig": "packages/add-nx-to-monorepo/tsconfig.lib.json", | ||
"packageJson": "packages/add-nx-to-monorepo/package.json", | ||
"main": "packages/add-nx-to-monorepo/src/index.ts", | ||
"updateBuildableProjectDepsInPackageJson": false, | ||
"assets": [ | ||
"packages/add-nx-to-monorepo/*.md", | ||
{ | ||
"input": "", | ||
"glob": "LICENSE", | ||
"output": "/" | ||
} | ||
] | ||
} | ||
}, | ||
"build": { | ||
"executor": "@nrwl/workspace:run-commands", | ||
"outputs": ["build/packages/add-nx-to-monorepo"], | ||
"options": { | ||
"commands": [ | ||
{ | ||
"command": "node ./scripts/chmod build/packages/add-nx-to-monorepo/src/add-nx-to-monorepo.js" | ||
}, | ||
{ | ||
"command": "node ./scripts/copy-readme.js add-nx-to-monorepo" | ||
} | ||
], | ||
"parallel": false | ||
} | ||
}, | ||
"test-against-repo": { | ||
"executor": "@nrwl/workspace:run-commands", | ||
"options": { | ||
"commands": [ | ||
{ | ||
"command": "nx build add-nx-to-monorepo", | ||
"forwardAllArgs": false | ||
}, | ||
{ | ||
"command": "export JS_SCRIPT=$PWD/dist/packages/add-nx-to-monorepo/src/add-nx-to-monorepo.js && cd {args.repo} && echo $PWD && node $JS_SCRIPT", | ||
"forwardAllArgs": false | ||
} | ||
], | ||
"parallel": false | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
19e9b46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: