Skip to content

Commit cdfd2bf

Browse files
Ombuwebrigor789
andauthored
docs: package.json (#7)
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
1 parent a283e02 commit cdfd2bf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: package.json
3+
---
4+
5+
The `package.json` contains a list of dependencies, scripts and the entry point to your app (in the `main` field). [Learn more on the NPM docs](https://docs.npmjs.com/cli/v9/configuring-npm/package-json)
6+
7+
::: warning Note
8+
NativeScript plugins should always be installed as `dependencies`, because NativeScript doesn't include native code from `devDependencies`.
9+
:::
10+
11+
```json
12+
{
13+
"name": "my-cool-app",
14+
"main": "src/main.ts",
15+
"version": "1.0.0",
16+
"private": true,
17+
"dependencies": {
18+
"@nativescript/core": "~8.4.0"
19+
},
20+
"devDependencies": {
21+
"@nativescript/android": "8.4.0",
22+
"@nativescript/ios": "8.4.0",
23+
"@nativescript/types": "~8.4.0",
24+
"@nativescript/webpack": "~5.0.10",
25+
"typescript": "~4.5.5"
26+
}
27+
}
28+
```

content/sidebar.ts

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ export default [
7272
link: '/project-structure/nativescript-config',
7373
icon: 'file',
7474
},
75+
{
76+
text: 'package.json',
77+
link: '/project-structure/package-json',
78+
icon: 'file',
79+
},
7580
{ text: 'webpack.config.js', link: '/webpack', icon: 'file' },
7681
// {
7782
// text: 'package.json',

0 commit comments

Comments
 (0)