milkee 3.2.1-dev.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-ja.md +10 -4
- package/README.md +11 -5
- package/dist/options/copy.js +5 -4
- package/package.json +1 -1
package/README-ja.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
# Milkee
|
|
2
2
|
|
|
3
|
+
[](https://github.com/prettier/prettier)
|
|
3
4
|
[](https://github.com/otoneko1102/coffeescript-milkee/actions)
|
|
4
5
|
[](https://www.npmjs.com/package/milkee)
|
|
5
6
|
[](https://www.npmjs.com/package/milkee)
|
|
6
7
|
[](./LICENSE)
|
|
7
8
|
|
|
8
|
-
<a href="https://www.buymeacoffee.com/devuloper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
9
|
-
|
|
10
|
-
<a href='https://ko-fi.com/E1E41LY2C9' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
|
11
|
-
|
|
12
9
|
[English](./README.md) | **日本語**
|
|
13
10
|
|
|
14
11
|
[](https://milkee.org)
|
|
@@ -86,6 +83,8 @@ module.exports = {
|
|
|
86
83
|
// (任意) Milkee ビルダーの追加オプション / プラグイン。
|
|
87
84
|
milkee: {
|
|
88
85
|
options: {
|
|
86
|
+
// アップデート通知を無視します。
|
|
87
|
+
// ignoreUpdate: false,
|
|
89
88
|
// コンパイル前に出力ディレクトリをリセットします。
|
|
90
89
|
// refresh: false,
|
|
91
90
|
// コンパイル前に「実行しますか?」と確認します。
|
|
@@ -121,6 +120,7 @@ module.exports = {
|
|
|
121
120
|
|
|
122
121
|
| オプション | 型 | デフォルト | 説明 |
|
|
123
122
|
| :--- | :--- | :--- | :--- |
|
|
123
|
+
| `ignoreUpdate` | `boolean` | `false` | アップデート通知を無視する |
|
|
124
124
|
| `refresh` | `boolean` | `false` | コンパイル前に出力ディレクトリをリセットする |
|
|
125
125
|
| `confirm` | `boolean` | `false` | コンパイル前に「実行しますか?」と確認する |
|
|
126
126
|
| `copy` | `boolean` | `false` | コンパイル後に entry から output へ非 CoffeeScript ファイルをコピーする(`options.join` が false の場合のみ) |
|
|
@@ -164,3 +164,9 @@ npx milkee
|
|
|
164
164
|
|
|
165
165
|
- [English](./docs/PLUGIN.md)
|
|
166
166
|
- [日本語](./docs/PLUGIN-ja.md)
|
|
167
|
+
|
|
168
|
+
## 寄付
|
|
169
|
+
|
|
170
|
+
<a href="https://www.buymeacoffee.com/devuloper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
171
|
+
|
|
172
|
+
<a href='https://ko-fi.com/E1E41LY2C9' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
package/README.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
# Milkee
|
|
2
2
|
|
|
3
|
+
[](https://github.com/prettier/prettier)
|
|
3
4
|
[](https://github.com/otoneko1102/coffeescript-milkee/actions)
|
|
4
5
|
[](https://www.npmjs.com/package/milkee)
|
|
5
6
|
[](https://www.npmjs.com/package/milkee)
|
|
6
7
|
[](./LICENSE)
|
|
7
8
|
|
|
8
|
-
<a href="https://www.buymeacoffee.com/devuloper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
9
|
-
|
|
10
|
-
<a href='https://ko-fi.com/E1E41LY2C9' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
|
11
|
-
|
|
12
9
|
**English** | [日本語](./README-ja.md)
|
|
13
10
|
|
|
14
11
|
[](https://milkee.org)
|
|
@@ -86,9 +83,11 @@ module.exports = {
|
|
|
86
83
|
// (Optional) Additional options/plugins for the Milkee builder.
|
|
87
84
|
milkee: {
|
|
88
85
|
options: {
|
|
86
|
+
// Ignore update notifications.
|
|
87
|
+
// ignoreUpdate: false,
|
|
89
88
|
// Before compiling, reset the directory.
|
|
90
89
|
// refresh: false,
|
|
91
|
-
// Before compiling,
|
|
90
|
+
// Before compiling, confirm "Do you want to Continue?"
|
|
92
91
|
// confirm: false,
|
|
93
92
|
// After compiling, copy non-coffee files from entry to output directory. (Only works when options.join is false)
|
|
94
93
|
// copy: false,
|
|
@@ -121,6 +120,7 @@ These options control Milkee's behavior.
|
|
|
121
120
|
|
|
122
121
|
| Option | Type | Default | Description |
|
|
123
122
|
| :--- | :--- | :--- | :--- |
|
|
123
|
+
| `ignoreUpdate` | `boolean` | `false` | Ignore update notifications. |
|
|
124
124
|
| `refresh` | `boolean` | `false` | Before compiling, reset the output directory. |
|
|
125
125
|
| `confirm` | `boolean` | `false` | Before compiling, prompt "Do you want to Continue?". |
|
|
126
126
|
| `copy` | `boolean` | `false` | After compiling, copy non-coffee files from entry to output directory. (Only works when `options.join` is `false`) |
|
|
@@ -164,3 +164,9 @@ Want to create your own Milkee plugin? Check out the plugin documentation:
|
|
|
164
164
|
|
|
165
165
|
- [English](./docs/PLUGIN.md)
|
|
166
166
|
- [日本語](./docs/PLUGIN-ja.md)
|
|
167
|
+
|
|
168
|
+
## Donate
|
|
169
|
+
|
|
170
|
+
<a href="https://www.buymeacoffee.com/devuloper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
171
|
+
|
|
172
|
+
<a href='https://ko-fi.com/E1E41LY2C9' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
package/dist/options/copy.js
CHANGED
|
@@ -49,8 +49,11 @@ executeCopy = function(config) {
|
|
|
49
49
|
}
|
|
50
50
|
results.push(copyNonCoffeeFiles(srcItemPath, destItemPath));
|
|
51
51
|
} else {
|
|
52
|
-
// Skip .coffee files
|
|
53
|
-
if (
|
|
52
|
+
// Skip .coffee and .litcoffee files
|
|
53
|
+
if (/\.coffee$|\.litcoffee$/i.test(item)) {
|
|
54
|
+
// Skip
|
|
55
|
+
results.push(null);
|
|
56
|
+
} else {
|
|
54
57
|
// Create parent directory if needed
|
|
55
58
|
parentDir = path.dirname(destItemPath);
|
|
56
59
|
if (!fs.existsSync(parentDir)) {
|
|
@@ -60,8 +63,6 @@ executeCopy = function(config) {
|
|
|
60
63
|
}
|
|
61
64
|
// Copy file
|
|
62
65
|
results.push(fs.copyFileSync(srcItemPath, destItemPath));
|
|
63
|
-
} else {
|
|
64
|
-
results.push(void 0);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
}
|