Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat: extract ncc builder to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Netzer committed Jul 11, 2021
1 parent 5ec945e commit cc444bd
Show file tree
Hide file tree
Showing 13 changed files with 597 additions and 520 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/e-square-io/nx-github-actions/Main%20Workflow?style=flat-square)](https://github.com/e-square-io/nx-github-actions/actions/workflows/main.yml)
[![Codecov](https://img.shields.io/codecov/c/github/e-square-io/nx-github-actions?logo=codecov&style=flat-square&token=PVPVUJAD1X)](https://app.codecov.io/gh/e-square-io/nx-github-actions)
[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](.github/PULL_REQUEST_TEMPLATE.md)
[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![commitizen](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](CONTRIBUTING.md#commit-message-format)
[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?style=flat-square)](LICENSE)
Expand Down
580 changes: 574 additions & 6 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@commitlint/cli": "^12.1.4",
"@commitlint/config-angular": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@e-square/nx-ncc": "^1.0.7",
"@nrwl/cli": "12.5.2",
"@nrwl/devkit": "12.5.2",
"@nrwl/eslint-plugin-nx": "12.5.2",
Expand All @@ -55,7 +56,6 @@
"@types/node": "14.14.33",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@vercel/ncc": "^0.28.5",
"all-contributors-cli": "^6.19.0",
"cross-env": "^7.0.3",
"dotenv": "8.2.0",
Expand Down
13 changes: 10 additions & 3 deletions packages/nx-affected-matrix/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@
}
},
"build": {
"executor": "./tools/executors/package:package",
"executor": "@e-square/nx-ncc:build",
"outputs": ["{options.outputPath}"],
"options": {
"main": "packages/nx-affected-matrix/src/index.ts",
"actionPath": "packages/nx-affected-matrix/action.yml",
"tsConfig": "packages/nx-affected-matrix/tsconfig.lib.json",
"outputPath": "dist/packages/nx-affected-matrix",
"assets": ["README.md"]
"assets": [
"README.md",
{
"input": "packages/nx-affected-matrix",
"glob": "action.yml",
"output": "."
}
]
}
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/nx-affected-matrix/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts"],
Expand Down
13 changes: 10 additions & 3 deletions packages/nx-distributed-task/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@
}
},
"build": {
"executor": "./tools/executors/package:package",
"executor": "@e-square/nx-ncc:build",
"outputs": ["{options.outputPath}"],
"options": {
"main": "packages/nx-distributed-task/src/index.ts",
"actionPath": "packages/nx-distributed-task/action.yml",
"tsConfig": "packages/nx-distributed-task/tsconfig.lib.json",
"outputPath": "dist/packages/nx-distributed-task",
"assets": ["README.md"]
"assets": [
"README.md",
{
"input": "packages/nx-distributed-task",
"glob": "action.yml",
"output": "."
}
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { endGroup, getInput, info, setFailed, setOutput, startGroup } from '@actions/core';
import { endGroup, getInput, info, setFailed, startGroup } from '@actions/core';
import { Inputs } from './inputs';
import {
assertNxInstalled,
Expand Down
1 change: 0 additions & 1 deletion packages/nx-distributed-task/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts"],
Expand Down
9 changes: 0 additions & 9 deletions tools/executors/package/builder.json

This file was deleted.

Loading

0 comments on commit cc444bd

Please sign in to comment.