Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update plugin seed for 6.0 #155

Merged
merged 1 commit into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The NativeScript plugin seed is built to be used as a starting point by NativeSc
1. `git clone https://github.com/NativeScript/nativescript-plugin-seed nativescript-yourplugin` where `nativescript-yourplugin` is the name of your plugin.
2. `cd nativescript-yourplugin/src`
3. `npm run postclone`
4. `npm run demo.ios` or `npm run demo.android` to run the demo. This will automatically watch for TypeScript changes also in your plugin and do the transpilation.
4. `npm run demo.ios` or `npm run demo.android` to run the demo.

## Long Description

Expand Down Expand Up @@ -77,10 +77,9 @@ Now you can continue with the development of your plugin by using the [Developme
**NOTE**: The plugin seed is updated to use the latest version of NativeScript. If you are not ready to upgrade, you can checkout a [tagged version](https://github.com/NativeScript/nativescript-plugin-seed/tags) that is compatible with your NativeScript version.

#### Development setup
For easier development and debugging purposes continue with the following steps:
For easier development and debugging purposes continue with the following:

1. Open a command prompt/terminal, navigate to `src` folder and run `npm run demo.ios`, `npm run demo.android`, `npm run demo-angular.ios`, `npm run demo-angular.android` to run the demo applications created during `postclone`.
2. Open another command prompt/terminal, navigate to `src` folder and run `npm run plugin.tscwatch` to watch for file changes in your plugin.
Open a command prompt/terminal, navigate to `src` folder and run `npm run demo.ios`, `npm run demo.android`, `npm run demo-angular.ios`, `npm run demo-angular.android` to run the demo applications created during `postclone`.

Now go and make a change to your plugin. It will be automatically applied to the demo project.

Expand Down
11 changes: 5 additions & 6 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"typings": "index.d.ts",
"nativescript": {
"platforms": {
"android": "5.4.0",
"ios": "5.4.0"
"android": "6.0.0",
"ios": "6.0.1"
}
},
"repository": {
Expand All @@ -20,7 +20,6 @@
"build.native": "node scripts/build-native.js",
"postclone": "npm i && node scripts/postclone.js",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
"plugin.tscwatch": "npm run tsc -- -w",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
"prepack": "npm run build.native"
},
Expand All @@ -41,9 +40,9 @@
"homepage": "https://github.com/YourName/nativescript-yourplugin",
"readmeFilename": "README.md",
"devDependencies": {
"tns-core-modules": "^5.0.0",
"tns-platform-declarations": "^5.0.0",
"typescript": "~3.3.3",
"tns-core-modules": "^6.0.0",
"tns-platform-declarations": "^6.0.0",
"typescript": "~3.4.5",
"prompt": "^1.0.0",
"rimraf": "^2.6.3",
"tslint": "^5.12.1",
Expand Down