pax_global_header 0000666 0000000 0000000 00000000064 15156663521 0014524 g ustar 00root root 0000000 0000000 52 comment=1f30d7aba606c8d700ad1ae7e5fe0bd05d47328d
jaywcjlove-auto-config-loader-849af3a/ 0000775 0000000 0000000 00000000000 15156663521 0017777 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/.github/ 0000775 0000000 0000000 00000000000 15156663521 0021337 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/.github/FUNDING.yml 0000664 0000000 0000000 00000000170 15156663521 0023152 0 ustar 00root root 0000000 0000000 github: [jaywcjlove]
# ko_fi: jaywcjlove
# buy_me_a_coffee: jaywcjlove
# custom: ["https://wangchujiang.com/#/sponsor"]
jaywcjlove-auto-config-loader-849af3a/.github/workflows/ 0000775 0000000 0000000 00000000000 15156663521 0023374 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/.github/workflows/main.yml 0000664 0000000 0000000 00000010404 15156663521 0025042 0 ustar 00root root 0000000 0000000 name: Node.js CI
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
working-directory: core
- run: npm install idoc@1 -g
- name: Create idoc config.
working-directory: core
run: |
cat > idoc.yml << EOF
site: "Auto Config Loader {{version}}"
menus:
Home: index.html
Apps:
url: https://wangchujiang.com/#/app
target: __blank
Sponsor:
url: https://wangchujiang.com/#/sponsor
target: __blank
footer: |
Contact •
Projects •
Sponsor •
More Apps
Generated by idoc v{{idocVersion}}
EOF
- run: idoc
working-directory: core
- run: npm run coverage && cp -rp coverage/lcov-report ./dist
working-directory: core
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: core/dist/CONTRIBUTORS.svg
avatarSize: 42
- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
with:
source: core/coverage/coverage-summary.json
output: core/dist/badges.svg
- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: core/package.json
- name: Deploy Website
uses: peaceiris/actions-gh-pages@v4
with:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: ${{steps.create_tag.outputs.version}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./core/dist
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ steps.create_tag.outputs.version }}
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: package.json info
uses: jaywcjlove/github-action-package@main
with:
path: core/package.json
unset: scripts
- run: NODE_AUTH_TOKEN="" npm publish --access public --provenance
continue-on-error: true
working-directory: core
- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
[](https://jaywcjlove.github.io/#/sponsor) [](https://uiwjs.github.io/npm-unpkg/#/pkg/auto-config-loader@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/auto-config-loader/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
```bash
npm i auto-config-loader@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }} jaywcjlove-auto-config-loader-849af3a/.github/workflows/test.yml 0000664 0000000 0000000 00000002210 15156663521 0025071 0 ustar 00root root 0000000 0000000 name: Node.js CI
on:
# 手动触发
workflow_dispatch:
jobs:
Ubuntu:
name: Ubuntu Node.js ${{ matrix.node-version }}
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 24
- 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
working-directory: core
- run: npm run coverage
working-directory: core
Windows:
name: Windows Node.js ${{ matrix.node-version }}
# Containers must run in Linux based operating systems
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
node-version:
- 24
- 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
working-directory: core
- run: npm run coverage
working-directory: core jaywcjlove-auto-config-loader-849af3a/.gitignore 0000664 0000000 0000000 00000000333 15156663521 0021766 0 ustar 00root root 0000000 0000000 coverage
dist
build
lib
node_modules
npm-debug.log*
lerna-debug.log
yarn-error.log
package-lock.json
.DS_Store
.cache
.vscode
.idea
.env
*.mpassword
*.bak
*.tem
*.temp
#.swp
*.*~
~*.*
# IDEA
*.iml
*.ipr
*.iws
.idea/ jaywcjlove-auto-config-loader-849af3a/.husky/ 0000775 0000000 0000000 00000000000 15156663521 0021220 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/.husky/pre-commit 0000775 0000000 0000000 00000000034 15156663521 0023217 0 ustar 00root root 0000000 0000000 npx --no-install lint-staged jaywcjlove-auto-config-loader-849af3a/.prettierignore 0000664 0000000 0000000 00000000216 15156663521 0023041 0 ustar 00root root 0000000 0000000 **/*.md
**/*.svg
**/*.ejs
**/*.html
**/*.yml
**/*.d.ts
package.json
node_modules
dist
build
lib
test
package.json
coverage
dist
build
cjs
esm jaywcjlove-auto-config-loader-849af3a/.prettierrc 0000664 0000000 0000000 00000000401 15156663521 0022156 0 ustar 00root root 0000000 0000000 {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
},
{
"files": ".lintstagedrc",
"options": { "parser": "json" }
}
]
} jaywcjlove-auto-config-loader-849af3a/LICENSE 0000664 0000000 0000000 00000002055 15156663521 0021006 0 ustar 00root root 0000000 0000000 MIT License
Copyright (c) 2023 小弟调调
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
jaywcjlove-auto-config-loader-849af3a/README.md 0000777 0000000 0000000 00000000000 15156663521 0023460 2core/README.md ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ 0000775 0000000 0000000 00000000000 15156663521 0022675 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/.autoconfrc 0000664 0000000 0000000 00000000020 15156663521 0025031 0 ustar 00root root 0000000 0000000 {
"one": 123
} jaywcjlove-auto-config-loader-849af3a/config-example/autoconfrcjson/ 0000775 0000000 0000000 00000000000 15156663521 0025732 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/autoconfrcjson/.autoconfrc.json 0000664 0000000 0000000 00000000032 15156663521 0031041 0 ustar 00root root 0000000 0000000 {
"name": "auto-conf"
}
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-cjs/ 0000775 0000000 0000000 00000000000 15156663521 0025473 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-cjs/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027016 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-cjs/.config/autoconfrc.cjs 0000664 0000000 0000000 00000000067 15156663521 0031665 0 ustar 00root root 0000000 0000000 module.exports = {
projectName: 'ext-config-cjs',
};
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ini/ 0000775 0000000 0000000 00000000000 15156663521 0025473 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ini/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027016 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ini/.config/autoconfrc.ini 0000664 0000000 0000000 00000000347 15156663521 0031666 0 ustar 00root root 0000000 0000000 ; this comment is being ignored
scope = global
[database]
user = dbuser
password = dbpassword
database = use_this_database
[paths.default]
datadir = /var/lib/data
array[] = first value
array[] = second value
array[] = third value jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-js/ 0000775 0000000 0000000 00000000000 15156663521 0025330 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-js/.config/ 0000775 0000000 0000000 00000000000 15156663521 0026653 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-js/.config/autoconfrc.js 0000664 0000000 0000000 00000000061 15156663521 0031351 0 ustar 00root root 0000000 0000000 export default { projectName: 'ext-config-js' };
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json/ 0000775 0000000 0000000 00000000000 15156663521 0025665 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027210 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json/.config/autoconfrc.json 0000664 0000000 0000000 00000000021 15156663521 0032237 0 ustar 00root root 0000000 0000000 {
"one": 123
}
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json5/ 0000775 0000000 0000000 00000000000 15156663521 0025752 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json5/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027275 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-json5/.config/autoconfrc.json 0000664 0000000 0000000 00000000465 15156663521 0032340 0 ustar 00root root 0000000 0000000 {
// 注释
"projectName": "ext-json",
"name": "my-app",
// 允许使用十六进制和八进制数值
"hex": 0x1a,
"octal": 0o755,
// 允许使用 NaN、Infinity 和 -Infinity
"max": Infinity,
"min": -Infinity,
"notANumber": NaN,
// 允许使用尾随逗号
"react-dom": "^16.13.1"
}
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-jsonc/ 0000775 0000000 0000000 00000000000 15156663521 0026030 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-jsonc/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027353 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-jsonc/.config/autoconfrc.jsonc 0000664 0000000 0000000 00000000054 15156663521 0032553 0 ustar 00root root 0000000 0000000 {
// 注释
"projectName": "ext-jsonc"
} jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-mjs/ 0000775 0000000 0000000 00000000000 15156663521 0025505 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-mjs/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027030 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-mjs/.config/autoconfrc.mjs 0000664 0000000 0000000 00000000061 15156663521 0031703 0 ustar 00root root 0000000 0000000 export default { projectName: 'ext-config-mjs' }; jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-rc/ 0000775 0000000 0000000 00000000000 15156663521 0025320 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-rc/.config/ 0000775 0000000 0000000 00000000000 15156663521 0026643 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-rc/.config/autoconfrc 0000664 0000000 0000000 00000000020 15156663521 0030721 0 ustar 00root root 0000000 0000000 {
"one": 123
} jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-toml/ 0000775 0000000 0000000 00000000000 15156663521 0025667 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-toml/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027212 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-toml/.config/autoconfrc.toml 0000664 0000000 0000000 00000000551 15156663521 0032253 0 ustar 00root root 0000000 0000000 # 这是一个 TOML 文档
title = "TOML 示例"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00
[database]
enabled = true
ports = [ 8000, 8001, 8002 ]
data = [ ["delta", "phi"], [3.14] ]
temp_targets = { cpu = 79.5, case = 72.0 }
[servers]
[servers.alpha]
ip = "10.0.0.1"
role = "前端"
[servers.beta]
ip = "10.0.0.2"
role = "后端" jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ts/ 0000775 0000000 0000000 00000000000 15156663521 0025342 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ts/.config/ 0000775 0000000 0000000 00000000000 15156663521 0026665 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-ts/.config/autoconfrc.ts 0000664 0000000 0000000 00000000152 15156663521 0031376 0 ustar 00root root 0000000 0000000 const projectName: 'ext-config-ts' | 'ext-config-ts2' = 'ext-config-ts';
export default { projectName };
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yaml/ 0000775 0000000 0000000 00000000000 15156663521 0025656 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yaml/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027201 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yaml/.config/autoconfrc.yml 0000664 0000000 0000000 00000000227 15156663521 0032070 0 ustar 00root root 0000000 0000000 %YAML 1.2
---
YAML: YAML Ain't Markup Language™
What It Is:
YAML is a human-friendly data serialization
language for all programming languages.
jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yml/ 0000775 0000000 0000000 00000000000 15156663521 0025515 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yml/.config/ 0000775 0000000 0000000 00000000000 15156663521 0027040 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/config-dir-yml/.config/autoconfrc.yml 0000664 0000000 0000000 00000000227 15156663521 0031727 0 ustar 00root root 0000000 0000000 %YAML 1.2
---
YAML: YAML Ain't Markup Language™
What It Is:
YAML is a human-friendly data serialization
language for all programming languages.
jaywcjlove-auto-config-loader-849af3a/config-example/error-config/ 0000775 0000000 0000000 00000000000 15156663521 0025271 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/error-config/mjs/ 0000775 0000000 0000000 00000000000 15156663521 0026062 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/error-config/mjs/.autoconfrc.mjs 0000664 0000000 0000000 00000000120 15156663521 0031007 0 ustar 00root root 0000000 0000000 export default {
"dist": path.resolve(process.cwd(), "test/templates/dist2")
} jaywcjlove-auto-config-loader-849af3a/config-example/ext-cjs/ 0000775 0000000 0000000 00000000000 15156663521 0024252 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-cjs/.autoconfrc.cjs 0000664 0000000 0000000 00000000056 15156663521 0027175 0 ustar 00root root 0000000 0000000 module.exports = {
projectName: "ext-cjs",
} jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-cjs/ 0000775 0000000 0000000 00000000000 15156663521 0025515 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-cjs/autoconf.config.js 0000664 0000000 0000000 00000000067 15156663521 0031140 0 ustar 00root root 0000000 0000000 module.exports = {
projectName: 'ext-config-cjs',
};
jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-js/ 0000775 0000000 0000000 00000000000 15156663521 0025352 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-js/autoconf.config.js 0000664 0000000 0000000 00000000066 15156663521 0030774 0 ustar 00root root 0000000 0000000 module.exports = {
projectName: 'ext-config-js',
};
jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-mjs/ 0000775 0000000 0000000 00000000000 15156663521 0025527 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-mjs/autoconf.config.mjs 0000664 0000000 0000000 00000000061 15156663521 0031321 0 ustar 00root root 0000000 0000000 export default { projectName: 'ext-config-mjs' }; jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-ts/ 0000775 0000000 0000000 00000000000 15156663521 0025364 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-config-ts/autoconf.config.ts 0000664 0000000 0000000 00000000152 15156663521 0031014 0 ustar 00root root 0000000 0000000 const projectName: 'ext-config-ts' | 'ext-config-ts2' = 'ext-config-ts';
export default { projectName };
jaywcjlove-auto-config-loader-849af3a/config-example/ext-ini/ 0000775 0000000 0000000 00000000000 15156663521 0024252 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-ini/.autoconfrc.ini 0000664 0000000 0000000 00000000347 15156663521 0027200 0 ustar 00root root 0000000 0000000 ; this comment is being ignored
scope = global
[database]
user = dbuser
password = dbpassword
database = use_this_database
[paths.default]
datadir = /var/lib/data
array[] = first value
array[] = second value
array[] = third value jaywcjlove-auto-config-loader-849af3a/config-example/ext-json/ 0000775 0000000 0000000 00000000000 15156663521 0024444 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-json/.autoconfrc.json 0000664 0000000 0000000 00000000040 15156663521 0027552 0 ustar 00root root 0000000 0000000 {
"projectName": "ext-json"
}
jaywcjlove-auto-config-loader-849af3a/config-example/ext-json5/ 0000775 0000000 0000000 00000000000 15156663521 0024531 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-json5/.autoconfrc.json5 0000664 0000000 0000000 00000000451 15156663521 0027732 0 ustar 00root root 0000000 0000000 {
// 注释
"projectName": "ext-json",
name: 'my-app',
// 允许使用十六进制和八进制数值
hex: 0x1a,
octal: 0o755,
// 允许使用 NaN、Infinity 和 -Infinity
max: Infinity,
min: -Infinity,
notANumber: NaN,
// 允许使用尾随逗号
'react-dom': '^16.13.1',
} jaywcjlove-auto-config-loader-849af3a/config-example/ext-jsonc/ 0000775 0000000 0000000 00000000000 15156663521 0024607 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-jsonc/.autoconfrc.jsonc 0000664 0000000 0000000 00000000054 15156663521 0030065 0 ustar 00root root 0000000 0000000 {
// 注释
"projectName": "ext-jsonc"
} jaywcjlove-auto-config-loader-849af3a/config-example/ext-mjs/ 0000775 0000000 0000000 00000000000 15156663521 0024264 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-mjs/.autoconfrc.mjs 0000664 0000000 0000000 00000000111 15156663521 0027211 0 ustar 00root root 0000000 0000000 import { projectName } from './data.mjs';
export default { projectName }; jaywcjlove-auto-config-loader-849af3a/config-example/ext-mjs/data.mjs 0000664 0000000 0000000 00000000045 15156663521 0025707 0 ustar 00root root 0000000 0000000 export const projectName = "ext-mjs"; jaywcjlove-auto-config-loader-849af3a/config-example/ext-toml/ 0000775 0000000 0000000 00000000000 15156663521 0024446 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-toml/.autoconfrc.toml 0000664 0000000 0000000 00000000551 15156663521 0027565 0 ustar 00root root 0000000 0000000 # 这是一个 TOML 文档
title = "TOML 示例"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00
[database]
enabled = true
ports = [ 8000, 8001, 8002 ]
data = [ ["delta", "phi"], [3.14] ]
temp_targets = { cpu = 79.5, case = 72.0 }
[servers]
[servers.alpha]
ip = "10.0.0.1"
role = "前端"
[servers.beta]
ip = "10.0.0.2"
role = "后端" jaywcjlove-auto-config-loader-849af3a/config-example/ext-ts/ 0000775 0000000 0000000 00000000000 15156663521 0024121 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-ts/.autoconfrc.ts 0000664 0000000 0000000 00000000151 15156663521 0026707 0 ustar 00root root 0000000 0000000 export default (name: string): string => {
return name + 123;
};
export const projectName = 'ext-ts';
jaywcjlove-auto-config-loader-849af3a/config-example/ext-yaml/ 0000775 0000000 0000000 00000000000 15156663521 0024435 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-yaml/.autoconfrc.yaml 0000664 0000000 0000000 00000000227 15156663521 0027543 0 ustar 00root root 0000000 0000000 %YAML 1.2
---
YAML: YAML Ain't Markup Language™
What It Is:
YAML is a human-friendly data serialization
language for all programming languages.
jaywcjlove-auto-config-loader-849af3a/config-example/ext-yml/ 0000775 0000000 0000000 00000000000 15156663521 0024274 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/ext-yml/.autoconfrc.yaml 0000664 0000000 0000000 00000000227 15156663521 0027402 0 ustar 00root root 0000000 0000000 %YAML 1.2
---
YAML: YAML Ain't Markup Language™
What It Is:
YAML is a human-friendly data serialization
language for all programming languages.
jaywcjlove-auto-config-loader-849af3a/config-example/js-cjs/ 0000775 0000000 0000000 00000000000 15156663521 0024066 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/js-cjs/.autoconfrc.js 0000664 0000000 0000000 00000000057 15156663521 0026647 0 ustar 00root root 0000000 0000000 module.exports = {
projectName: 'js-cjs',
};
jaywcjlove-auto-config-loader-849af3a/config-example/js-esm/ 0000775 0000000 0000000 00000000000 15156663521 0024073 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/js-esm/.autoconfrc.js 0000664 0000000 0000000 00000000055 15156663521 0026652 0 ustar 00root root 0000000 0000000 export default {
projectName: 'js-esm',
};
jaywcjlove-auto-config-loader-849af3a/config-example/js-typescript/ 0000775 0000000 0000000 00000000000 15156663521 0025515 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/js-typescript/.autoconfrc.ts 0000664 0000000 0000000 00000000114 15156663521 0030302 0 ustar 00root root 0000000 0000000 const config = {
projectName: 'js-typescript',
};
export default config;
jaywcjlove-auto-config-loader-849af3a/config-example/pkg-config/ 0000775 0000000 0000000 00000000000 15156663521 0024721 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/pkg-config/autoconfrc.mjs 0000664 0000000 0000000 00000000127 15156663521 0027577 0 ustar 00root root 0000000 0000000 export default {
projectName: 'ext-config-mjs',
test: { projectName: "~~~" }
}; jaywcjlove-auto-config-loader-849af3a/config-example/pkg-config/package.json 0000664 0000000 0000000 00000000056 15156663521 0027210 0 ustar 00root root 0000000 0000000 {
"autoconf": {
"name": "autoconf"
}
} jaywcjlove-auto-config-loader-849af3a/config-example/pkg/ 0000775 0000000 0000000 00000000000 15156663521 0023456 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/config-example/pkg/package.json 0000664 0000000 0000000 00000000056 15156663521 0025745 0 ustar 00root root 0000000 0000000 {
"autoconf": {
"name": "autoconf"
}
} jaywcjlove-auto-config-loader-849af3a/core/ 0000775 0000000 0000000 00000000000 15156663521 0020727 5 ustar 00root root 0000000 0000000 jaywcjlove-auto-config-loader-849af3a/core/README.md 0000664 0000000 0000000 00000051337 15156663521 0022217 0 ustar 00root root 0000000 0000000