-
Notifications
You must be signed in to change notification settings - Fork 30
/
package.json
40 lines (40 loc) · 1.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "run-script-os",
"version": "1.1.6",
"description": "run-script-os is a tool that will let you use generic npm script commands that will pass through to os specific commands.",
"main": "index.js",
"scripts": {
"example": "echo '0. Call either npm test, npm run test, or npm run-script test and check out the output to see how pre and post commands work with run-script-os'",
"pretest": "echo '1. Pretest (Generic) called first when running npm test'",
"test": "echo '2. Test (Generic) runs transitioning to OS specific code' && run-script-os",
"pretest:win32": "echo '3. Pretest (Windows 32/64)'",
"test:win32": "echo '4. Test (Windows 32/64)'",
"posttest:win32": "echo '5. Posttest (Windows 32/64)'",
"pretest:linux:darwin": "echo '3. Pretest (Linux/MacOS)'",
"test:linux:darwin": "echo '4. Test (Linux/MacOS)'",
"posttest:linux:darwin": "echo '5. Posttest (Linux/MacOS)'",
"posttest": "echo '6. Posttest (Generic) is finally called after all of the OS specific commands are called'",
"test-error": "run-script-os",
"test-error:linux": "echo 'Run $? afterwards to confirm the error code is propagating appropriately.' && exit 11",
"test-error:win32": "echo 'Run $LASTEXITCODE (PowerShell) or %errorlevel% (CMD) afterwards to confirm the error code is propagating appropriately.' && exit 22",
"test-args": "run-script-os 'Hello,' 'run-script-os.'",
"test-args:default": "echo"
},
"author": "Charlie Guse (https://github.com/charlesguse/run-script-os)",
"license": "MIT",
"bin": {
"run-script-os": "./index.js",
"run-os": "./index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/charlesguse/run-script-os.git"
},
"files": [
"LICENSE",
"functions.js",
"index.js",
"package.json",
"README.md"
]
}