Skip to content

Commit

Permalink
feat: rename bundler to create-bundle
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree committed Oct 28, 2023
1 parent cf84b6c commit f64a5c9
Show file tree
Hide file tree
Showing 17 changed files with 81 additions and 78 deletions.
109 changes: 59 additions & 50 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/repo-state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
"pnpmShrinkwrapHash": "c1dce0c19a4eb476eb73dc80b6df2b2cd9d39a7d",
"pnpmShrinkwrapHash": "418ba6bcdb56844db65e8a29967843e698b30e80",
"preferredVersionsHash": "8ae0ba5bd02ec9c5763773a15e27aee08a6567f6"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions platform/bundlers/README.md → platform/create-bundle/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# @cats-cradle/bundlers
# @cats-cradle/create-bundle

This package contains various bundler profiles. The bundlers bundle another
projects source code to make it ready for deployment.
projects source code to make it ready for distribution.

## Usage

Install bundler as devDependency:

```bash
npm install @cats-cradle/bundlers --dev
npm install @cats-cradle/create-bundle --dev
```

Call the binary from within your package.json
Expand All @@ -17,8 +17,9 @@ Call the binary from within your package.json
{
"name": "your-package",
"scripts": {
"build": "nestjs-bundler",
"cdk:deploy": "nestjs-bundler && cdk deploy"
"build": "create-bundle",
"build:watch": "create-bundle --watch",
"cdk:deploy": "create-bundle && cdk deploy"
}
}
```
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@cats-cradle/bundlers",
"name": "@cats-cradle/create-bundle",
"license": "MIT",
"bin": {
"nestjs-bundler": "./dist/bin-nestjs.js"
"create-bundle": "./dist/create-bundle-bin.js"
},
"main": "./dist/index.js",
"version": "0.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { NestJsBundler } from './profiles/nestjs-bundler';
const projectRoot = process.cwd();
const watchMode = process.argv.includes('--watch');

// TODO add support for other bundle profiles based on flags as necessary

new NestJsBundler({
projectRoot,
watch: !!watchMode,
Expand Down
File renamed without changes.
File renamed without changes.
31 changes: 11 additions & 20 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
],
"projects": [
{
"packageName": "@cats-cradle/bundlers",
"projectFolder": "platform/bundlers",
"packageName": "@cats-cradle/create-bundle",
"projectFolder": "platform/create-bundle",
"reviewCategory": "rigs",
"decoupledLocalDependencies": ["@cats-cradle/eslint-config"],
"tags": [],
Expand Down Expand Up @@ -180,8 +180,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/validation-schemas",
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": [],
"shouldPublish": true
Expand All @@ -193,8 +192,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/validation-schemas",
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": []
},
Expand All @@ -205,8 +203,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/validation-schemas",
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": []
},
Expand Down Expand Up @@ -238,8 +235,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/validation-schemas",
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"],
"shouldPublish": true
Expand All @@ -251,8 +247,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/eslint-config",
"@cats-cradle/nestjs-modules",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"]
},
Expand All @@ -262,8 +257,7 @@
"reviewCategory": "apis",
"decoupledLocalDependencies": [
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"]
},
Expand All @@ -274,8 +268,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/validation-schemas",
"@cats-cradle/eslint-config",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"],
"shouldPublish": true
Expand All @@ -287,8 +280,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/eslint-config",
"@cats-cradle/nestjs-modules",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"],
"shouldPublish": true
Expand All @@ -300,8 +292,7 @@
"decoupledLocalDependencies": [
"@cats-cradle/eslint-config",
"@cats-cradle/nestjs-modules",
"@cats-cradle/create-artifact",
"@cats-cradle/bundlers"
"@cats-cradle/create-artifact"
],
"tags": ["deploy-app"]
}
Expand Down

0 comments on commit f64a5c9

Please sign in to comment.