routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
@@ -0,0 +1 @@
to add to git.
@@ -0,0 +1,15 @@
{
"name": "npm-run-all-test",
"version": "0.0.0",
"private": true,
"description": "",
"config": {
"test": "OK"
},
"repository": {
"type": "git",
"url": "https://github.com/mysticatea/npm-run-all.git"
},
"author": "Toru Nagashima",
"license": "MIT"
}
+52
View File
@@ -0,0 +1,52 @@
{
"name": "npm-run-all-test",
"version": "0.0.0",
"private": true,
"description": "",
"engines": {
"node": ">=4"
},
"config": {
"DEST": "build",
"test": "OK"
},
"scripts": {
"start": "node tasks/append2.js start",
"stop": "node tasks/append2.js stop",
"test-task:package-config": "node tasks/package-config1.js",
"test-task:package-config2": "node tasks/package-config2.js",
"test-task:nested-package-config": "node ../bin/npm-run-all/index.js test-task:package-config",
"test-task:config": "node tasks/config1.js",
"test-task:config2": "node tasks/config2.js",
"test-task:nested-config": "node ../bin/npm-run-all/index.js test-task:config",
"test-task:append": "node tasks/append2.js",
"test-task:append:a": "node tasks/append2.js a",
"test-task:append:a:c": "node tasks/append2.js ac",
"test-task:append:a:d": "node tasks/append2.js ad",
"test-task:append:b": "node tasks/append2.js b",
"test-task:append1": "node tasks/append1.js",
"test-task:append2": "node tasks/append2.js",
"test-task:abort": "node tasks/abort.js",
"test-task:error": "node tasks/error.js",
"test-task:stdout": "node tasks/stdout.js > test.txt",
"test-task:stderr": "node tasks/stderr.js 2> test.txt",
"test-task:stdin": "echo STDIN | node tasks/stdin.js",
"test-task:issue14:win32": "rm -rf build && mkdir %npm_package_config_DEST% && cd build",
"test-task:issue14:posix": "rm -rf build && mkdir $npm_package_config_DEST && cd build",
"test-task:echo": "node tasks/echo.js",
"test-task:dump": "node tasks/dump.js",
"test-task:nest-append:npm-run-all": "node ../bin/npm-run-all/index.js test-task:append",
"test-task:nest-append:run-s": "node ../bin/run-s/index.js test-task:append",
"test-task:nest-append:run-p": "node ../bin/run-p/index.js test-task:append",
"test-task:delayed": "node tasks/output-with-delay.js",
"test-task:yarn": "node ../bin/npm-run-all/index.js test-task:append:{a,b} --npm-path yarn",
"!test": "node tasks/append1.js X",
"?test": "node tasks/append1.js Q"
},
"repository": {
"type": "git",
"url": "https://github.com/mysticatea/npm-run-all.git"
},
"author": "Toru Nagashima",
"license": "MIT"
}
@@ -0,0 +1,7 @@
{
"rules": {
"no-console": 0,
"no-process-env": 0,
"no-process-exit": 0
}
}
+5
View File
@@ -0,0 +1,5 @@
'use strict'
setTimeout(() => {
process.abort()
}, 500)
+6
View File
@@ -0,0 +1,6 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(process.argv[2])
process.exit(0)
+17
View File
@@ -0,0 +1,17 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(process.argv[2])
setTimeout(() => {
appendResult(process.argv[2])
process.exit(0)
}, 3000)
// SIGINT/SIGTERM Handling.
process.on('SIGINT', () => {
process.exit(0)
})
process.on('SIGTERM', () => {
process.exit(0)
})
+4
View File
@@ -0,0 +1,4 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(String(process.env.npm_config_test))
+4
View File
@@ -0,0 +1,4 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(`${process.env.npm_config_test}\n${process.env.npm_config_test2}\n${process.env.npm_config_test3}`)
+4
View File
@@ -0,0 +1,4 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(JSON.stringify(process.argv.slice(2)))
+49
View File
@@ -0,0 +1,49 @@
'use strict'
/**
* Executes functions sequentially.
*
* @param {function[]} arguments - Functions to execute.
* @returns {void}
*/
function flow () {
if (arguments.length === 0) {
return
}
const head = arguments[0]
const rest = [].slice.call(arguments, 1)
head()
setTimeout(() => {
flow.apply(null, rest)
}, 33)
}
const text = String(process.argv[2])
flow(
() => {
process.stdout.write(text)
},
() => {
process.stdout.write(`${text}\n`)
},
() => {
process.stdout.write(`${text}\n${text}`)
},
() => {
process.stdout.write(`${text}\n${text}\n`)
},
() => {
process.stdout.write(`${text}\n${text}\n${text}\n${text}\n`)
},
() => {
process.stdout.write(`\n${text}\n${text}`)
},
() => {
process.stdout.write(`${text}\n\n\n`)
},
() => {
process.stdout.write(`\n${text}`)
}
)
+5
View File
@@ -0,0 +1,5 @@
'use strict'
setTimeout(() => {
process.exit(1)
}, 500)
@@ -0,0 +1,7 @@
'use strict'
const text = process.argv[2]
const timeout = process.argv[3]
process.stdout.write(`[${text}]`)
setTimeout(() => process.stdout.write(`__[${text}]\n`), timeout)
@@ -0,0 +1,4 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(String(process.env.npm_package_config_test))
@@ -0,0 +1,4 @@
'use strict'
const appendResult = require('./lib/util').appendResult
appendResult(`${process.env.npm_package_config_test}\n${process.env.npm_package_config_test2}\n${process.env.npm_package_config_test3}`)
+3
View File
@@ -0,0 +1,3 @@
'use strict'
process.stderr.write('STDERR')
+11
View File
@@ -0,0 +1,11 @@
'use strict'
const appendResult = require('./lib/util').appendResult
process.stdin.on('data', (chunk) => {
appendResult(chunk.toString())
process.exit(0)
})
setTimeout(() => {
process.exit(1)
}, 5000)
+3
View File
@@ -0,0 +1,3 @@
'use strict'
process.stdout.write('STDOUT')