Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
29 changes: 26 additions & 3 deletions README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@
Milkee をインストールします:

```bash
# グローバルインストール
# npm
npm i -g milkee

# ローカルインストール
# pnpm
pnpm add -g milkee
# yarn
yarn global add milkee
# bun
bun add -g milkee

# ローカルインストールの場合
npm i -D milkee
pnpm add -D milkee
```

CoffeeScript と `@babel/core` が必要です。
Expand Down Expand Up @@ -82,6 +89,9 @@ module.exports = {
},
// (任意) Milkee ビルダーの追加オプション / プラグイン。
milkee: {
// 使用するパッケージマネージャー。ロックファイルや package.json から自動検出されます。
// 対応: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'aube' | 'nub' | 'vlt' | 'bower'
// packageManager: 'npm',
options: {
// アップデート通知を無視します。
// ignoreUpdate: false,
Expand Down Expand Up @@ -114,6 +124,19 @@ module.exports = {

[CoffeeScript - command.coffee](https://coffeescript.org/annotated-source/command.html)

##### `milkee.packageManager` (パッケージマネージャー)

Milkee はロックファイルや `package.json` の `packageManager` フィールドからパッケージマネージャーを自動検出します。明示的に指定することもできます。

| 検出元 | 優先度 |
| :--- | :--- |
| `coffee.config.cjs` の `milkee.packageManager` | 1位(最高) |
| `package.json` の `packageManager` フィールド | 2位 |
| ロックファイル(`pnpm-lock.yaml`、`yarn.lock`、`bun.lockb`、`vlt-lock.json`、`bower.json`) | 3位 |
| デフォルト | `npm` |

対応する値: `'npm'` `'pnpm'` `'yarn'` `'bun'` `'aube'` `'nub'` `'vlt'` `'bower'`

##### `milkee.options` (Milkee 固有オプション)

これらのオプションは Milkee の動作を制御します。
Expand Down
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@ Official site: https://milkee.org
Install Milkee:

```bash
# global installation
# npm
npm i -g milkee
# pnpm
pnpm add -g milkee
# yarn
yarn global add milkee
# bun
bun add -g milkee

# or local installation
npm i -D milkee
pnpm add -D milkee
```

CoffeeScript & @babel/core are required.
Expand Down Expand Up @@ -82,6 +89,9 @@ module.exports = {
},
// (Optional) Additional options/plugins for the Milkee builder.
milkee: {
// Package manager used in this project. Auto-detected from lock files and package.json.
// Supported: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'aube' | 'nub' | 'vlt' | 'bower'
// packageManager: 'npm',
options: {
// Ignore update notifications.
// ignoreUpdate: false,
Expand Down Expand Up @@ -114,6 +124,19 @@ These options are passed directly to the `coffee` compiler.

[CoffeeScript - command.coffee](https://coffeescript.org/annotated-source/command.html)

##### `milkee.packageManager` (Package Manager)

Milkee auto-detects the package manager from lock files and the `packageManager` field in `package.json`. You can override it explicitly.

| Detection source | Priority |
| :--- | :--- |
| `milkee.packageManager` in `coffee.config.cjs` | 1st (highest) |
| `packageManager` field in `package.json` | 2nd |
| Lock file (`pnpm-lock.yaml`, `yarn.lock`, `bun.lockb`, `vlt-lock.json`, `bower.json`) | 3rd |
| Default | `npm` |

Supported values: `'npm'` `'pnpm'` `'yarn'` `'bun'` `'aube'` `'nub'` `'vlt'` `'bower'`

##### `milkee.options` (Milkee Specific Options)

These options control Milkee's behavior.
Expand Down
19 changes: 12 additions & 7 deletions dist/commands/compile.js

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

54 changes: 39 additions & 15 deletions dist/commands/plugin.js

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

Loading
Loading