uni-run 1.1.20 → 1.1.22
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.
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
6
7
|
const as_1 = __importDefault(require("../helpers/as"));
|
|
7
8
|
const os_1 = __importDefault(require("../helpers/os"));
|
|
8
9
|
const helpers_1 = require("./helpers");
|
|
@@ -142,6 +143,16 @@ exports.default = (0, as_1.default)([
|
|
|
142
143
|
};
|
|
143
144
|
},
|
|
144
145
|
},
|
|
146
|
+
{
|
|
147
|
+
name: 'Dart',
|
|
148
|
+
exts: ['dart'],
|
|
149
|
+
getRuntime(args, options, config) {
|
|
150
|
+
return {
|
|
151
|
+
exec: ['dartvm', ...args],
|
|
152
|
+
installHints: ['Please install Dart from https://dart.dev'],
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
},
|
|
145
156
|
{
|
|
146
157
|
name: 'Powershell',
|
|
147
158
|
exts: ['ps1'],
|
|
@@ -290,11 +301,11 @@ exports.default = (0, as_1.default)([
|
|
|
290
301
|
exts: ['html', 'htm'],
|
|
291
302
|
getRuntime([script, ...args], options, config) {
|
|
292
303
|
return {
|
|
293
|
-
exec: ['
|
|
304
|
+
exec: ['live-server', path_1.default.dirname(script), ...args],
|
|
294
305
|
watchExts: ['css', 'js', 'javascript'],
|
|
295
|
-
install: ['npm', 'install', '-g', '
|
|
306
|
+
install: ['npm', 'install', '-g', 'live-server'],
|
|
296
307
|
installHints: [
|
|
297
|
-
'Please install
|
|
308
|
+
'Please install live-server from https://www.npmjs.com/package/live-server',
|
|
298
309
|
],
|
|
299
310
|
};
|
|
300
311
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uni-run",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "Universal Runner for many language",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"uni-run": "./dist/bin.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@inquirer/confirm": "^5.1.19",
|
|
21
22
|
"@inquirer/prompts": "^6.0.1",
|
|
22
23
|
"ansi-colors": "^4.1.3",
|
|
23
24
|
"chokidar": "^4.0.1",
|