@reveldigital/gadgetizer 1.0.3 → 1.0.5

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.
@@ -0,0 +1,33 @@
1
+ name: Deploy GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # or master, depending on your default branch
7
+
8
+ jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Setup Node.js (if applicable for building)
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20.x' # Adjust as needed for your project
19
+
20
+ - name: Install dependencies (if applicable)
21
+ run: npm install # Or yarn install, etc.
22
+
23
+ - name: Build static site (if applicable)
24
+ run: npm run build # Or your specific build command
25
+
26
+ - name: Gadgetizer
27
+ run: npx @reveldigital/gadgetizer@latest --build-only
28
+
29
+ - name: Deploy to GitHub Pages
30
+ uses: peaceiris/actions-gh-pages@v4
31
+ with:
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./dist # Or your output directory, e.g., ./dist, ./public
@@ -0,0 +1,54 @@
1
+ title: My Gadget
2
+ title_url: https://mysupporturl.org
3
+ description: Describe the purpose of your gadget here
4
+ author: My Organization
5
+ background: transparent
6
+
7
+ requirements:
8
+ - reveldigital
9
+ - offline
10
+ - webfont
11
+
12
+ locales:
13
+ - messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
14
+
15
+ - lang: ru
16
+ messages: https://reveldigital.github.io/reveldigital-gadgets/ALL_ALL.xml
17
+
18
+ prefs:
19
+ - name: myStringPref
20
+ display_name: Sample string preference
21
+ datatype: string
22
+ default_value: test string
23
+ required: true
24
+
25
+ - name: myBoolPref
26
+ display_name: Sample boolean preference
27
+ datatype: bool
28
+ default_value: true
29
+ required: true
30
+ depends:
31
+ - name: myEnumPref
32
+ any_of:
33
+ - values:
34
+ - fast
35
+
36
+ - name: myStylePref
37
+ display_name: Sample style preference
38
+ datatype: style
39
+ default_value: font-family:Verdana;color:rgb(255, 255, 255);font-size:18px;
40
+ required: true
41
+
42
+ - name: myEnumPref
43
+ display_name: Sample enum preference
44
+ datatype: enum
45
+ default_value: fast
46
+ required: true
47
+ multiple: false
48
+ options:
49
+ - value: fastest
50
+ display_value: Fastest
51
+ - value: fast
52
+ display_value: Fast
53
+ - value: medium
54
+ display_value: Medium
package/bin.js CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node --no-warnings
1
+ #!/usr/bin/env node
2
2
 
3
3
  import('./dist/cli.js');
@@ -0,0 +1,33 @@
1
+ name: Deploy GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # or master, depending on your default branch
7
+
8
+ jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Setup Node.js (if applicable for building)
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20.x' # Adjust as needed for your project
19
+
20
+ - name: Install dependencies (if applicable)
21
+ run: npm install # Or yarn install, etc.
22
+
23
+ - name: Build static site (if applicable)
24
+ run: npm run build # Or your specific build command
25
+
26
+ - name: Gadgetizer
27
+ run: npx @reveldigital/gadgetizer@latest --build-only
28
+
29
+ - name: Deploy to GitHub Pages
30
+ uses: peaceiris/actions-gh-pages@v4
31
+ with:
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./dist # Or your output directory, e.g., ./dist, ./public