Skip to content

Commit 26c4b45

Browse files
committed
Merge branch 'master' into refactor/package-manager
2 parents 030c3f0 + bb3a696 commit 26c4b45

File tree

238 files changed

+34773
-16831
lines changed

Some content is hidden

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

238 files changed

+34773
-16831
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: 🐞 Bug report
2+
description: Create a bug report to help us improve NativeScript CLI
3+
labels: [bug-pending-triage]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to report an issue.
10+
11+
> ## Important! :warning:
12+
>
13+
> The issue list is reserved exclusively for bug reports and feature requests. That means we do not accept usage questions. If you open an issue that does not conform to the requirements, it will be closed.
14+
>
15+
> For usage questions, please refer to the following resources:
16+
> * Search the [docs](https://docs.nativescript.org/)
17+
> * Search or ask in [Discord](https://nativescript.org/discord)
18+
> * Search or ask in [Discussions](https://github.com/NativeScript/NativeScript/discussions)
19+
> * Search or ask on [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript)
20+
> * Watch [video tutorials](https://nativescripting.com/)
21+
22+
- type: textarea
23+
validations:
24+
required: true
25+
attributes:
26+
label: Issue Description
27+
description: |
28+
A clear and concise description of what the bug is.
29+
Please, explain whether it's a build-time error or a runtime error.
30+
31+
If you intend to submit a PR for this issue, tell us in the description.
32+
placeholder: |
33+
When I do <X>, <Y> happens and I see the following error message:
34+
35+
```
36+
<error message>
37+
```
38+
39+
Expected behavior:
40+
41+
When I do <X>, <Z> should happen instead.
42+
43+
- type: textarea
44+
attributes:
45+
label: Reproduction
46+
description: |
47+
Add commands used or steps taken to reproduce the behaviour.
48+
Include links, references or anything else that will give us more context about the issue you are encountering.
49+
placeholder: |
50+
e.g:
51+
https://github.com/NativeScript/nativescript-cli
52+
53+
1. clone, and run with `ns run ios`
54+
2. Click on '...'
55+
3. See error
56+
57+
- type: textarea
58+
attributes:
59+
label: Relevant log output (if applicable)
60+
description: |
61+
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
62+
63+
Using the `--log trace` flag will usuall print more verbose logs that will help identify the issue quicker.
64+
65+
When pasting verbose logs, please make sure you remove any sensitive information.
66+
render: shell
67+
68+
- type: textarea
69+
attributes:
70+
label: Environment
71+
description: |
72+
Provide information about your environment. Run
73+
74+
```shell
75+
echo 'y' | npx nativescript-envinfo
76+
```
77+
78+
inside the project and paste the output directly without manual formatting.
79+
placeholder: |
80+
Paste the result of
81+
82+
echo 'y' | npx nativescript-envinfo
83+
84+
- type: markdown
85+
attributes:
86+
value: |
87+
---
88+
89+
Before you submit this issue, please confirm the following:
90+
91+
**1. Is there an existing issue for this?**
92+
93+
Please search to see if an issue already exists for the bug you encountered or is not already reported on [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) as a question.
94+
95+
**2. Confirm you are submitting a bug report**
96+
97+
Please confirm you are submitting a bug report and not a usage question.
98+
99+
**3. Code of Conduct**
100+
101+
By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
102+
103+
---
104+
- type: checkboxes
105+
id: terms
106+
attributes:
107+
label: Please accept these terms
108+
options:
109+
- label: I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before
110+
required: true
111+
- label: This is a bug report
112+
required: true
113+
- label: I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
114+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Search the Docs
4+
url: https://docs.nativescript.org
5+
about: Refer to the docs and search for what you are looking for.
6+
- name: Search or ask in Discord
7+
url: https://nativescript.org/discord
8+
about: Ask questions and discuss with other NativeScript users in real-time.
9+
- name: Search or ask in Discussions
10+
url: https://github.com/NativeScript/NativeScript/discussions
11+
about: Use GitHub discussions for message-board style questions and discussions.
12+
- name: Search or ask on StackOverflow
13+
url: https://stackoverflow.com/questions/tagged/nativescript
14+
about: Use StackOverflow to look for answered questions that may be similar to yours.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: 🚀 Feature request
2+
description: Suggest an idea for NativeScript CLI
3+
labels: ["feature-pending-triage"]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to request a feature for NativeScript!
10+
11+
> ## Important! :warning:
12+
>
13+
> The issue list is reserved exclusively for bug reports and feature requests. That means we do not accept usage questions. If you open an issue that does not conform to the requirements, it will be closed.
14+
>
15+
> For usage questions, please refer to the following resources:
16+
> * Search the [docs](https://docs.nativescript.org/)
17+
> * Search or ask in [Discord](https://nativescript.org/discord)
18+
> * Search or ask in [Discussions](https://github.com/NativeScript/NativeScript/discussions)
19+
> * Search or ask on [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript)
20+
> * Watch [video tutorials](https://nativescripting.com/)
21+
22+
- type: textarea
23+
attributes:
24+
label: Is your feature request related to a problem? Please describe.
25+
description: A clear and concise description of what the problem is.
26+
placeholder: |
27+
I wish I could use NativeScript CLI to do [...]
28+
or
29+
I'm always frustrated when [...]
30+
31+
- type: textarea
32+
attributes:
33+
label: Describe the solution you'd like
34+
description: A clear and concise description of what you want to happen.
35+
36+
- type: textarea
37+
attributes:
38+
label: Describe alternatives you've considered
39+
description: A clear and concise description of any alternative solutions or features you've considered.
40+
41+
- type: textarea
42+
attributes:
43+
label: Anything else?
44+
description: Add any other context, code examples, or references to existing implementations about the feature request here.
45+
46+
- type: markdown
47+
attributes:
48+
value: |
49+
---
50+
51+
Before you submit this feature request, please confirm the following:
52+
53+
**1. Is there an existing issue for this?**
54+
55+
Please search to see if an issue related to this feature request already exists.
56+
57+
**2. Code of Conduct**
58+
59+
By submitting this feature request, you agree to follow our [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
60+
61+
---
62+
63+
- type: checkboxes
64+
id: terms
65+
attributes:
66+
label: Please accept these terms
67+
options:
68+
- label: I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before
69+
required: true
70+
- label: I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
71+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To help the rest of the community review your change, please follow the instruct
99

1010
## PR Checklist
1111

12-
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
12+
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages.
1313
- [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
1414
- [ ] You have signed the [CLA](http://www.nativescript.org/cla).
1515
- [ ] All existing tests are passing: https://github.com/NativeScript/nativescript-cli/blob/master/CONTRIBUTING.md#contribute-to-the-code-base

.github/workflows/npm_release_cli.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: 'nativescript -> npm'
2+
3+
on:
4+
push:
5+
branches: [ 'master' ]
6+
paths-ignore:
7+
- 'packages/**'
8+
workflow_dispatch:
9+
10+
env:
11+
NPM_TAG: 'next'
12+
13+
jobs:
14+
release:
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
21+
- name: Setup
22+
run: npm i --ignore-scripts --legacy-peer-deps --no-package-lock
23+
24+
- name: Generate Version
25+
run: |
26+
echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);")-$NPM_TAG-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID >> $GITHUB_ENV
27+
28+
- name: Bump Version
29+
run: npm version $NPM_VERSION
30+
31+
- name: Build nativescript
32+
run: npm pack
33+
34+
- name: Publish nativescript
35+
env:
36+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
37+
run: |
38+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
39+
echo "Publishing nativescript@$NPM_VERSION to NPM with tag $NPM_TAG..."
40+
npm publish nativescript-$NPM_VERSION.tgz --tag $NPM_TAG
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: '@nativescript/doctor -> npm'
2+
3+
on:
4+
push:
5+
branches: [ 'master' ]
6+
paths:
7+
- 'packages/doctor/**'
8+
workflow_dispatch:
9+
10+
defaults:
11+
run:
12+
working-directory: packages/doctor
13+
14+
env:
15+
NPM_TAG: 'next'
16+
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup
25+
run: npm install
26+
27+
- name: Generate Version
28+
run: |
29+
echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);")-$NPM_TAG-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID >> $GITHUB_ENV
30+
31+
- name: Bump Version
32+
run: npm --no-git-tag-version version $NPM_VERSION
33+
34+
- name: Build @nativescript/doctor
35+
run: npm pack
36+
37+
- name: Publish @nativescript/doctor
38+
env:
39+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
40+
run: |
41+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
42+
echo "Publishing @nativescript/doctor@$NPM_VERSION to NPM with tag $NPM_TAG..."
43+
npm publish nativescript-doctor-$NPM_VERSION.tgz --tag $NPM_TAG

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ results
3232
scratch/
3333
.idea/
3434
.settings/
35+
test-reports.xml
36+
37+
# VSCode
3538
.vscode/**
3639
!.vscode/launch.json
37-
test-reports.xml
40+
!.vscode/settings.json
3841

3942
npm-debug.log
4043
node_modules

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/encodings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/scopes/Nativescript_CLI_TypeScript.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.idea/scopes/scope_settings.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)