Skip to content

Commit

Permalink
JS: NPM packages changes for CFW SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Nov 1, 2024
1 parent 6e022a6 commit 249ff23
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
8 changes: 6 additions & 2 deletions applications/system/js_app/packages/create-fz-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Flipper Zero JavaScript SDK Wizard
# Momentum FW JavaScript SDK Wizard
This package contains an interactive wizard that lets you scaffold a JavaScript
application for Flipper Zero.
application for Flipper Zero using the Momentum Firmware JS SDK.

This is a fork of the [Official Flipper Zero JS SDK Wizard](https://www.npmjs.com/package/@flipperdevices/create-fz-app),
configured to use the [Momentum JavaScript SDK]((https://www.npmjs.com/package/@next-flip/fz-sdk-mntm)) instead.
No other changes are included.

## Getting started
Create your application using the interactive wizard:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "@next-flip/create-fz-app-mntm",
"version": "0.1.0",
"description": "Template package for JS apps Flipper Zero",
"description": "Template package for JS apps for Flipper Zero using Momentum Custom Firmware JS SDK",
"bin": "index.js",
"type": "module",
"keywords": [
"momentum",
"momentum firmware",
"next-flip",
"flipper",
"flipper zero"
],
Expand Down
17 changes: 14 additions & 3 deletions applications/system/js_app/packages/fz-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Flipper Zero JavaScript SDK
This package contains official tooling and typings for developing Flipper Zero
applications in JavaScript.
# Momentum FW JavaScript SDK
This package contains tooling and typings for developing Flipper Zero
applications in JavaScript for Momentum Custom Firmware.

This is a fork of the [Official Flipper Zero JS SDK](https://www.npmjs.com/package/@flipperdevices/fz-sdk),
with added types for the extra features provided by the Momentum JavaScript API.

Scripts made for Official Flipper Zero JS SDK will work on Momentum Firmware too.
If you use extra features provided by Momentum, you are encouraged to use syntax like
`if (doesSdkSupport(["feature-name"])) { ... }` so that your JS app can work on Official
Firmware too, aswell as all other compliant Custom Firmwares. If some of those extra
features are essential to the functionality of your app, you can use `checkSdkFeatures(["feature1", "feature2"])`
near the beginning of your script, which will show a warning to the user that these features
are not available in their firmware distribution.

## Getting started
Create your application using the interactive wizard:
Expand Down
5 changes: 4 additions & 1 deletion applications/system/js_app/packages/fz-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@next-flip/fz-sdk-mntm",
"version": "0.1.1",
"description": "Type declarations and documentation for native JS modules available on Flipper Zero",
"description": "Type declarations and documentation for native JS modules available on Momentum Custom Firmware for Flipper Zero",
"keywords": [
"momentum",
"momentum firmware",
"next-flip",
"flipper",
"flipper zero",
"framework"
Expand Down

0 comments on commit 249ff23

Please sign in to comment.