@addfox/core 0.1.1-beta.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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/cjs/index.cjs +1729 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/pipeline/index.cjs +67 -0
- package/dist/cjs/pipeline/index.cjs.map +1 -0
- package/dist/esm/434.js +33 -0
- package/dist/esm/434.js.map +1 -0
- package/dist/esm/config/defineConfig.d.ts +2 -0
- package/dist/esm/config/index.d.ts +8 -0
- package/dist/esm/config/loader.d.ts +21 -0
- package/dist/esm/constants.d.ts +77 -0
- package/dist/esm/entry/discoverer.d.ts +13 -0
- package/dist/esm/entry/html.d.ts +35 -0
- package/dist/esm/entry/index.d.ts +12 -0
- package/dist/esm/entry/manifestParser.d.ts +27 -0
- package/dist/esm/entry/resolver.d.ts +30 -0
- package/dist/esm/frameworkDetect.d.ts +11 -0
- package/dist/esm/index.d.ts +32 -0
- package/dist/esm/index.js +1521 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/manifest/builder.d.ts +16 -0
- package/dist/esm/manifest/index.d.ts +9 -0
- package/dist/esm/manifest/loader.d.ts +26 -0
- package/dist/esm/pipeline/Pipeline.d.ts +18 -0
- package/dist/esm/pipeline/index.d.ts +5 -0
- package/dist/esm/pipeline/index.js +1 -0
- package/dist/esm/pipeline/types.d.ts +26 -0
- package/dist/esm/reloadManager.d.ts +9 -0
- package/dist/esm/types.d.ts +186 -0
- package/dist/esm/version.d.ts +4 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 addfox
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @addfox/core
|
|
2
|
+
|
|
3
|
+
[中文](README-zh_CN.md) | English
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
addfox core: types, config loading, entry discovery/resolution, manifest building, errors and constants. Consumed by CLI and plugins; can be used directly in custom scripts.
|
|
8
|
+
|
|
9
|
+
- **defineConfig**: config helper, returns user config
|
|
10
|
+
- **ConfigLoader / resolveAddfoxConfig**: load addfox.config and resolve to full config + entry list
|
|
11
|
+
- **EntryDiscoverer / EntryResolver**: discover entries from dirs or resolve from `entry` config
|
|
12
|
+
- **ManifestBuilder**: build per-browser manifest from config and entries
|
|
13
|
+
- **CliParser**: parse `addfox dev|build [-b chrome|edge|brave|vivaldi|opera|santa|firefox]`
|
|
14
|
+
- **mergeRsbuildConfig**: deep-merge Rsbuild config
|
|
15
|
+
- **AddfoxError / create*Error**: unified error type and factories
|