From aa5578f181537f096113ab85adc5e8a4baab90d9 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Tue, 2 May 2023 14:21:36 -0500 Subject: [PATCH] chore(repo): add legacy packages for nx rescope (#238) --- README.md | 11 +++++++++++ executors.json | 15 +++++++++++++++ generators.json | 4 ++++ index.ts | 1 + package.json | 27 +++++++++++++++++++++++++++ project.json | 35 +++++++++++++++++++++++++++++++++++ tsconfig.json | 6 ++++++ 7 files changed, 99 insertions(+) create mode 100644 README.md create mode 100644 executors.json create mode 100644 generators.json create mode 100644 index.ts create mode 100644 package.json create mode 100644 project.json create mode 100644 tsconfig.json diff --git a/README.md b/README.md new file mode 100644 index 0000000000..12f09ec1da --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +## @nrwl/rspack has been deprecated! + +@nrwl/rspack has been deprecated in favor of [@nx/rspack](https://www.npmjs.com/package/@nx/rspack). Please use that instead. + +@nrwl/rspack will no longer be published in Nx v17. + +

Nx - Smart, Fast and Extensible Build System

+ +# Nx: Smart, Fast and Extensible Build System + +Nx is a next generation build system with first class monorepo support and powerful integrations. diff --git a/executors.json b/executors.json new file mode 100644 index 0000000000..292b254c51 --- /dev/null +++ b/executors.json @@ -0,0 +1,15 @@ +{ + "$schema": "http://json-schema.org/schema", + "executors": { + "rspack": { + "implementation": "@nx/rspack/src/executors/rspack/rspack.impl", + "schema": "@nx/rspack/src/executors/rspack/schema.json", + "description": "rspack executor" + }, + "dev-server": { + "implementation": "@nx/rspack/src/executors/dev-server/dev-server.impl", + "schema": "@nx/rspack/src/executors/dev-server/schema.json", + "description": "dev-server executor" + } + } +} diff --git a/generators.json b/generators.json new file mode 100644 index 0000000000..dc70c4a6af --- /dev/null +++ b/generators.json @@ -0,0 +1,4 @@ +{ + "extends": ["@nx/rspack"], + "schematics": {} +} diff --git a/index.ts b/index.ts new file mode 100644 index 0000000000..64c76247e0 --- /dev/null +++ b/index.ts @@ -0,0 +1 @@ +export * from '@nx/rspack'; diff --git a/package.json b/package.json new file mode 100644 index 0000000000..f5e2066f96 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "@nrwl/rspack", + "version": "0.0.1", + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/nrwl/nx-labs.git", + "directory": "packages-legacy/rspack" + }, + "keywords": [ + "Monorepo", + "Next", + "Vercel" + ], + "author": "Jack Hsu", + "license": "MIT", + "homepage": "https://nx.dev", + "main": "src/index.js", + "generators": "./generators.json", + "executors": "./executors.json", + "dependencies": { + "@nx/rspack": "file:../../packages/rspack" + }, + "nx-migrations": { + "migrations": "@nx/rspack/migrations.json" + } +} diff --git a/project.json b/project.json new file mode 100644 index 0000000000..b693391c8d --- /dev/null +++ b/project.json @@ -0,0 +1,35 @@ +{ + "name": "rspack-legacy", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "packages-legacy/rspack", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/js:tsc", + "dependsOn": ["^build"], + "options": { + "main": "packages-legacy/rspack/index.ts", + "tsConfig": "packages-legacy/rspack/tsconfig.json", + "outputPath": "dist/packages/rspack-legacy", + "updateBuildableProjectDepsInPackageJson": false, + "assets": [ + "packages-legacy/rspack/*.md", + + { + "input": "packages-legacy/rspack", + "glob": "**/*.json", + "ignore": ["**/tsconfig*.json", "project.json"], + "output": "/" + }, + { + "input": "packages-legacy/rspack", + "glob": "**/*.d.ts", + "output": "/" + }, + "LICENSE" + ] + } + } + }, + "tags": [] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000000..133314b126 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": {}, + "include": ["**/*.ts"], + "files": ["index.ts"] +}