@ossy/resource-templates 0.9.1 → 0.10.1
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/README.md +34 -0
- package/build/resume.js +1 -1
- package/build/types/resume.d.ts +2 -13
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @ossy/resource-templates
|
|
2
|
+
|
|
3
|
+
Resource template definitions for the Ossy CMS. Defines the structure of content types (fields, validation, and metadata) used across the Ossy ecosystem.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @ossy/resource-templates
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
This package is typically used internally by `@ossy/sdk` and `@ossy/cli` when working with workspaces and resource templates. Import shared template definitions:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { resume } from '@ossy/resource-templates'
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Integration
|
|
20
|
+
|
|
21
|
+
- **@ossy/cli** — Use `cms upload` to upload resource templates to your workspace
|
|
22
|
+
- **@ossy/sdk** — `workspaces.importResourceTemplates()` and `workspaces.getResourceTemplates()` work with these definitions
|
|
23
|
+
|
|
24
|
+
## Development
|
|
25
|
+
|
|
26
|
+
Build the package:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm run build
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT
|
package/build/resume.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{name:"Resume Experience",
|
|
1
|
+
const e=[{id:"resume-experience",name:"Resume Experience",description:"Work, education, or project experience entry",icon:"briefcase",fields:[{name:"Title",type:"text",required:!0},{name:"Sub Title",type:"text"},{name:"Date",type:"text"},{name:"Description",type:"textarea"},{name:"Type of experience",type:"select",options:["Work","Education","Other","Project"]},{name:"Website",type:"text"},{name:"Tags",type:"text"},{name:"GitHub",type:"text"}]},{id:"resume-summary",name:"Resume Summary",description:"Personal summary and contact info",icon:"user",fields:[{name:"Name",type:"text",required:!0},{name:"Role",type:"text"},{name:"Summary",type:"textarea"},{name:"Mobile",type:"text"},{name:"Email",type:"text"},{name:"Website",type:"text"},{name:"Tags",type:"textarea"}]}];export{e as ResumeTemplates};
|
package/build/types/resume.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
fields: ({
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
7
|
-
options?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
name: string;
|
|
10
|
-
type: string;
|
|
11
|
-
options: string[];
|
|
12
|
-
})[];
|
|
13
|
-
}[];
|
|
1
|
+
/** @type {import('@ossy/types').ResourceTemplate[]} */
|
|
2
|
+
export const ResumeTemplates: any[];
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/ossy-se/packages.git"
|
|
6
6
|
},
|
|
7
7
|
"description": "Resource Templates",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.10.1",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"source": "src/index.js",
|
|
11
11
|
"module": "build/index.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"/build",
|
|
43
43
|
"README.md"
|
|
44
44
|
],
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fa8cbcb5f24811e6844c929d7fa7cd1d2544efa7"
|
|
46
46
|
}
|