mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Initial JS CFW SDK changes
TODO: Check documentation and other package options TODO: Transform CFW SDK name to OFW SDK name in build step so all firmwares understand it
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// import modules
|
||||
// caution: `eventLoop` HAS to be imported before `gui`, and `gui` HAS to be
|
||||
// imported before any `gui` submodules.
|
||||
import * as eventLoop from "@flipperdevices/fz-sdk/event_loop";
|
||||
import * as gui from "@flipperdevices/fz-sdk/gui";
|
||||
import * as dialog from "@flipperdevices/fz-sdk/gui/dialog";
|
||||
import * as eventLoop from "@next-flip/fz-sdk-mntm/event_loop";
|
||||
import * as gui from "@next-flip/fz-sdk-mntm/gui";
|
||||
import * as dialog from "@next-flip/fz-sdk-mntm/gui/dialog";
|
||||
|
||||
// a common pattern is to declare all the views that your app uses on one object
|
||||
const views = {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
"name": "<app_name>",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"build": "tsc && node node_modules/@flipperdevices/fz-sdk/sdk.js build",
|
||||
"start": "npm run build && node node_modules/@flipperdevices/fz-sdk/sdk.js upload"
|
||||
"build": "tsc && node node_modules/@next-flip/fz-sdk-mntm/sdk.js build",
|
||||
"start": "npm run build && node node_modules/@next-flip/fz-sdk-mntm/sdk.js upload"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@flipperdevices/fz-sdk": "^0.1",
|
||||
"@next-flip/fz-sdk-mntm": "^0.1",
|
||||
"typescript": "^5.6.3"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
"target": "ES2015",
|
||||
},
|
||||
"files": [
|
||||
"./node_modules/@flipperdevices/fz-sdk/global.d.ts",
|
||||
"./node_modules/@next-flip/fz-sdk-mntm/global.d.ts",
|
||||
],
|
||||
"include": [
|
||||
"./**/*.ts",
|
||||
|
||||
Reference in New Issue
Block a user