create-powerapp 1.0.0 → 1.0.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.
@@ -1,103 +1,112 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
- branches: [main]
8
-
9
- jobs:
10
- test:
11
- name: Smoke test — scaffold all app types
12
- runs-on: ${{ matrix.os }}
13
- strategy:
14
- matrix:
15
- os: [ubuntu-latest, windows-latest, macos-latest]
16
- node-version: [18, 20, 22]
17
-
18
- steps:
19
- - name: Checkout
20
- uses: actions/checkout@v4
21
-
22
- - name: Set up Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v4
24
- with:
25
- node-version: ${{ matrix.node-version }}
26
-
27
- - name: Verify Node and npm versions
28
- run: |
29
- node --version
30
- npm --version
31
-
32
- - name: Scaffold Canvas App (Copilot)
33
- run: |
34
- printf 'test-canvas\n1\n1\n\n' | node index.js
35
- shell: bash
36
-
37
- - name: Check Canvas App files exist
38
- run: |
39
- test -f test-canvas/.gitignore
40
- test -f test-canvas/.env
41
- test -f test-canvas/README.md
42
- test -f test-canvas/instructions/canvas-instructions.md
43
- test -f test-canvas/prompts/starter.md
44
- test -f test-canvas/.github/copilot-instructions.md
45
- test -d test-canvas/canvas-src/Src
46
- test -d test-canvas/canvas-src/Assets
47
- shell: bash
48
-
49
- - name: Scaffold Model-Driven App (Claude Code)
50
- run: |
51
- printf 'test-mda\n2\n2\n\n' | node index.js
52
- shell: bash
53
-
54
- - name: Check MDA files exist
55
- run: |
56
- test -f test-mda/.gitignore
57
- test -f test-mda/CLAUDE.md
58
- test -f test-mda/instructions/mda-instructions.md
59
- test -f test-mda/prompts/starter.md
60
- shell: bash
61
-
62
- - name: Scaffold PCF Component
63
- run: |
64
- printf 'test-pcf\n3\n1\n\n' | node index.js
65
- shell: bash
66
-
67
- - name: Scaffold Power Pages
68
- run: |
69
- printf 'test-pages\n4\n2\n\n' | node index.js
70
- shell: bash
71
-
72
- - name: Check Power Pages folder structure
73
- run: |
74
- test -d test-pages/site/web-files
75
- test -d test-pages/site/web-pages
76
- test -d test-pages/site/web-templates
77
- shell: bash
78
-
79
- - name: Scaffold Code App
80
- run: |
81
- printf 'test-codeapp\n5\n1\n\n' | node index.js
82
- shell: bash
83
-
84
- - name: Check Code App files exist
85
- run: |
86
- test -f test-codeapp/package.json
87
- test -f test-codeapp/tsconfig.json
88
- test -f test-codeapp/src/App.tsx
89
- node -e "JSON.parse(require('fs').readFileSync('test-codeapp/package.json','utf8'))"
90
- shell: bash
91
-
92
- lint:
93
- name: Check syntax
94
- runs-on: ubuntu-latest
95
- steps:
96
- - uses: actions/checkout@v4
97
- - uses: actions/setup-node@v4
98
- with:
99
- node-version: 20
100
- - name: Check index.js parses without errors
101
- run: node --check index.js
102
- - name: Check package.json is valid JSON
103
- run: node -e "JSON.parse(require('fs').readFileSync('package.json','utf8')); console.log('package.json OK')"
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ name: Smoke test — scaffold all app types
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-latest, windows-latest, macos-latest]
16
+ node-version: [18, 20, 22]
17
+
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v4
21
+
22
+ - name: Set up Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+
27
+ - name: Verify Node and npm versions
28
+ run: |
29
+ node --version
30
+ npm --version
31
+
32
+ - name: Scaffold Canvas App (Copilot)
33
+ run: |
34
+ printf 'test-canvas\n1\n1\n\n' | node index.js
35
+ shell: bash
36
+
37
+ - name: Check Canvas App files exist
38
+ run: |
39
+ test -f test-canvas/.gitignore
40
+ test -f test-canvas/.env
41
+ test -f test-canvas/README.md
42
+ test -f test-canvas/instructions/canvas-instructions.md
43
+ test -f test-canvas/prompts/starter.md
44
+ test -f test-canvas/.github/copilot-instructions.md
45
+ test -d test-canvas/canvas-src/Src
46
+ test -d test-canvas/canvas-src/Assets
47
+ shell: bash
48
+
49
+ - name: Scaffold Model-Driven App (Claude Code)
50
+ run: |
51
+ printf 'test-mda\n2\n2\n\n' | node index.js
52
+ shell: bash
53
+
54
+ - name: Check MDA files exist
55
+ run: |
56
+ test -f test-mda/.gitignore
57
+ test -f test-mda/CLAUDE.md
58
+ test -f test-mda/instructions/mda-instructions.md
59
+ test -f test-mda/prompts/starter.md
60
+ shell: bash
61
+
62
+ - name: Scaffold PCF Component
63
+ run: |
64
+ printf 'test-pcf\n3\n1\n\n' | node index.js
65
+ shell: bash
66
+
67
+ - name: Scaffold Power Pages
68
+ run: |
69
+ printf 'test-pages\n4\n2\n\n' | node index.js
70
+ shell: bash
71
+
72
+ - name: Check Power Pages folder structure
73
+ run: |
74
+ test -d test-pages/site/web-files
75
+ test -d test-pages/site/web-pages
76
+ test -d test-pages/site/web-templates
77
+ shell: bash
78
+
79
+ - name: Scaffold Code App
80
+ run: |
81
+ printf 'test-codeapp\n5\n1\n\n' | node index.js
82
+ shell: bash
83
+
84
+ - name: Check Code App files exist
85
+ run: |
86
+ test -f test-codeapp/package.json
87
+ test -f test-codeapp/tsconfig.json
88
+ test -f test-codeapp/vite.config.ts
89
+ test -f test-codeapp/index.html
90
+ test -f test-codeapp/src/main.tsx
91
+ test -f test-codeapp/src/App.tsx
92
+ test -f test-codeapp/src/App.module.css
93
+ test -f test-codeapp/src/index.css
94
+ test -f test-codeapp/src/vite-env.d.ts
95
+ node -e "JSON.parse(require('fs').readFileSync('test-codeapp/package.json','utf8'))"
96
+ shell: bash
97
+
98
+ - name: Code App — npm run build succeeds with zero errors
99
+ run: cd test-codeapp && npm run build
100
+ shell: bash
101
+ lint:
102
+ name: Check syntax
103
+ runs-on: ubuntu-latest
104
+ steps:
105
+ - uses: actions/checkout@v4
106
+ - uses: actions/setup-node@v4
107
+ with:
108
+ node-version: 20
109
+ - name: Check index.js parses without errors
110
+ run: node --check index.js
111
+ - name: Check package.json is valid JSON
112
+ run: node -e "JSON.parse(require('fs').readFileSync('package.json','utf8')); console.log('package.json OK')"