@playfieldmultiplier/leagueos 0.1.0
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 +21 -0
- package/package.json +31 -0
- package/src/index.js +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PlayFieldMultiplier
|
|
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,21 @@
|
|
|
1
|
+
# league-os
|
|
2
|
+
|
|
3
|
+
The core LeagueOS plugin.
|
|
4
|
+
|
|
5
|
+
## npm contract package
|
|
6
|
+
|
|
7
|
+
This directory is also the source of `@playfieldmultiplier/leagueos`, a small
|
|
8
|
+
JavaScript contract package for deployment tooling and integrations that need
|
|
9
|
+
to discover the LeagueOS architecture. It does not replace the WordPress
|
|
10
|
+
plugin. The package exposes the product components, the multisite architecture,
|
|
11
|
+
and the release branches without bundling WordPress runtime code.
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { architecture, components, releaseContract } from '@playfieldmultiplier/leagueos';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The package is published from GitHub Actions using npm Trusted Publishing.
|
|
18
|
+
|
|
19
|
+
Before working here, start at the repository [AGENTS.md](../../AGENTS.md), then follow the current issue's parent/roll-up and linked design authorities. This package inherits those rules; this README does not redefine them.
|
|
20
|
+
|
|
21
|
+
Package implementation must remain traceable to the actionable LeagueOS Task being delivered and its governing product requirement. See the repository issue graph for current scope.
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@playfieldmultiplier/leagueos",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Release and integration metadata for the LeagueOS WordPress platform.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./src/index.js",
|
|
8
|
+
"./package.json": "./package.json"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"check": "node --input-type=module -e \"import('./src/index.js').then(m => { if (!m.product || !m.components.leagueOs || !m.components.leagueBuilder) process.exit(1); console.log('LeagueOS contract OK') })\"",
|
|
17
|
+
"pack:check": "npm pack --dry-run"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/PlayFieldMultiplier/LeagueOS.git",
|
|
22
|
+
"directory": "packages/league-os"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=20"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT"
|
|
31
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable JavaScript contract for tooling that discovers a LeagueOS release.
|
|
3
|
+
* The runtime product remains the WordPress plugin/theme stack.
|
|
4
|
+
*/
|
|
5
|
+
export const product = 'LeagueOS';
|
|
6
|
+
|
|
7
|
+
export const components = Object.freeze({
|
|
8
|
+
leagueOs: 'packages/league-os',
|
|
9
|
+
leagueBuilder: 'packages/league-builder',
|
|
10
|
+
instanceTheme: 'themes/league-os',
|
|
11
|
+
builderTheme: 'themes/league-builder'
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const architecture = Object.freeze({
|
|
15
|
+
platform: 'wordpress-multisite',
|
|
16
|
+
builderRole: 'network-parent',
|
|
17
|
+
instanceRole: 'child-site',
|
|
18
|
+
sharedDatabase: true
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const releaseContract = Object.freeze({
|
|
22
|
+
sourceRepository: 'PlayFieldMultiplier/LeagueOS',
|
|
23
|
+
integrationBranch: 'devline',
|
|
24
|
+
productionBranch: 'main'
|
|
25
|
+
});
|