Skip to content

Commit 033b40b

Browse files
feat: update templates to 8.1.0 (#195)
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
1 parent 047b5f0 commit 033b40b

File tree

42 files changed

+18160
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+18160
-223
lines changed

.github/workflows/test.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: '@nativescript/template-* -> test'
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
runs-on: macos-latest
8+
9+
name: ${{ matrix.template }} (node ${{ matrix.node }})
10+
11+
strategy:
12+
matrix:
13+
template:
14+
- template-blank
15+
- template-blank-vue-ts
16+
- template-hello-world-ng
17+
- template-tab-navigation
18+
- template-blank-ng
19+
- template-drawer-navigation
20+
- template-hello-world-ts
21+
- template-tab-navigation-ng
22+
- template-blank-react
23+
- template-drawer-navigation-ng
24+
- template-master-detail
25+
- template-tab-navigation-ts
26+
- template-blank-svelte
27+
- template-drawer-navigation-ts
28+
- template-master-detail-ng
29+
- template-tab-navigation-vue
30+
- template-blank-ts
31+
- template-drawer-navigation-vue
32+
- template-master-detail-ts
33+
- template-blank-vue
34+
- template-hello-world
35+
- template-master-detail-vue
36+
node: [16]
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
with:
41+
path: 'templates'
42+
43+
- name: Install Python
44+
uses: actions/setup-python@v1
45+
46+
- name: Install Node
47+
uses: actions/setup-node@v2
48+
with:
49+
node-version: ${{ matrix.node }}
50+
cache: 'npm'
51+
cache-dependency-path: templates/package-lock.json
52+
53+
- name: Cache Gradle
54+
uses: actions/cache@v2
55+
with:
56+
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/package-lock.json') }}
57+
path: |
58+
~/.gradle/caches
59+
~/.gradle/wrapper
60+
61+
- name: Cache Python
62+
uses: actions/cache@v2
63+
with:
64+
key: ${{ runner.os }}-python-cache-${{ env.pythonLocation }}-${{ hashFiles('**/package-lock.json') }}
65+
path: ${{ env.pythonLocation }}
66+
67+
- name: Setup
68+
working-directory: templates
69+
run: |
70+
python -m pip install --upgrade pip six
71+
npm i -g nativescript@next --ignore-scripts
72+
ns usage-reporting disable
73+
ns error-reporting disable
74+
ns -v
75+
76+
npm install
77+
npm run prepare-templates
78+
79+
- name: Create app from template
80+
env:
81+
TEMPLATE_NAME: ${{ matrix.template }}
82+
run: |
83+
ns create myApp --template="$(pwd)/templates/packages/$TEMPLATE_NAME"
84+
cd myApp
85+
npm install
86+
87+
- name: Test iOS Build
88+
working-directory: myApp
89+
run: |
90+
ns build ios
91+
92+
- name: Test Android Build
93+
working-directory: myApp
94+
run: |
95+
ns build android

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
lerna-debug.log
22
npm-debug.log
3-
package-lock.json
43
.DS_Store
54

65
packages/**/App_Resources

0 commit comments

Comments
 (0)