nativescript-particle
Version:
Control your Particle.io devices from a NativeScript app!
69 lines (68 loc) • 3.4 kB
JSON
{
"name": "nativescript-particle",
"version": "2.1.0",
"description": "Control your Particle.io devices from a NativeScript app!",
"main": "particle",
"typings": "index.d.ts",
"nativescript": {
"platforms": {
"android": "4.0.0",
"ios": "4.0.0"
}
},
"scripts": {
"tsc": "tsc -skipLibCheck",
"build": "npm i && npm run tsc && npm run build.native",
"build.native": "node scripts/build-native.js",
"postclone": "npm i && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src",
"test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
"test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude '**/node_modules/**' --exclude '**/platforms/**'",
"demo.ios": "npm run build && cd ../demo && tns run ios --syncAllFiles",
"demo.ios.bundled": "npm run tsc && cd ../demo && tns run ios --bundle --syncAllFiles --emulator",
"demo.android": "npm run build && cd ../demo && tns run android --syncAllFiles",
"demo.android.bundled": "npm run tsc && cd ../demo && tns run android --bundle --syncAllFiles",
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json",
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-particle && tns plugin add ../src",
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
"prepack": "npm run build.native",
"generate-typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings. Afterwards, remove that folder, and the (intermediate) metadata-* folders.'",
"generate-typings.android": "echo '##### Download the latest relevant .aar file from https://mvnrepository.com/artifact/io.particle, rename .aar to .zip and extract it. Then move classes.jar to the plugin /src folder' && java -jar ../../android-dts-generator/dts-generator/build/libs/dts-generator.jar -input ./classes.jar -output platforms/android/typings && rimraf classes.jar && echo '##### Done! Deleted src/classes.jar, and generated typings in src/platforms/android/typings/'"
},
"keywords": [
"ecosystem:NativeScript",
"NativeScript",
"JavaScript",
"Android",
"iOS",
"Particle",
"Particle.io",
"RaspberryPi",
"Raspberry Pi",
"Photon",
"Electron",
"IoT"
],
"author": {
"name": "Eddy Verbruggen",
"email": "eddyverbruggen@gmail.com"
},
"bugs": {
"url": "https://github.com/EddyVerbruggen/nativescript-particle/issues"
},
"license": "Apache-2.0",
"homepage": "https://github.com/EddyVerbruggen/nativescript-particle",
"readmeFilename": "README.md",
"devDependencies": {
"nativescript-dev-typescript": "~0.9.0",
"tns-core-modules": "~5.4.1",
"tns-platform-declarations": "~5.4.1",
"typescript": "~3.1.0",
"prompt": "^1.0.0",
"rimraf": "^2.6.2",
"tslint": "^5.11.0",
"semver": "^6.1.0"
},
"bootstrapper": "nativescript-plugin-seed"
}