Skip to content

Commit e51c983

Browse files
committed
Updated definitions
1 parent 42d7645 commit e51c983

4 files changed

Lines changed: 39 additions & 74 deletions

File tree

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
## Overview
44

55
The plugins and scripts for vmsACARS are written in Typescript, and then
6-
transpiled to JS.
7-
Typescript ensures that the interfaces required are following, and that the
8-
proper things
9-
are returned so ACARS can run them. While Typescript isn't required, it's best
10-
to use it to
11-
ensure proper values are passed - especially around enums.
6+
transpiled to JS. Typescript ensures that the interfaces required are following,
7+
and that the proper things are returned so ACARS can run them. While Typescript
8+
isn't required, it's best to use it to ensure proper values are passed - especially
9+
around enums.
1210

1311
This PDK includes build scripts to:
1412

@@ -19,11 +17,30 @@ This PDK includes build scripts to:
1917

2018
---
2119

20+
# The General Steps
21+
22+
First, fork this repository. Follow the setup below. Then start editing the
23+
scripts in the `/src` directory, depending on what you want to do. Then, you
24+
can distribute it to your pilots.
25+
26+
- Complete the setup, including the `.env` file
27+
- Disable downloading the latest updates
28+
- Run `npm run dev` to then test in ACARS
29+
- Run `npm run dist` to create the ZIP
30+
- Upload this zip somewhere
31+
- Update the phpVMS ACARS Admin to point to the above URL
32+
- ???
33+
- Profit!
34+
35+
### Structure
36+
37+
All of the scripts are contained in the `/src` folder.
38+
2239
# Setup
2340

2441
## Required:
2542

26-
- nodejs/npm
43+
- nodejs/npm or pnpm
2744
- Typescript
2845
- Gulp
2946

@@ -681,3 +698,9 @@ export default class MyScript implements CallbackHook {
681698
}
682699
}
683700
```
701+
702+
### Sounds
703+
704+
Place your sounds (`mp3` or `wav`) format in the `src/sounds` directory (create
705+
it if it doesn't exist). When you call `Acars.PlayAudio`, it will look in this
706+
directory for them.

gulpfile.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const paths = {
2929
* Build the project, copy the appropriate files over
3030
* @public
3131
*/
32-
export const build = series(buildTsTask, copyPackageJsonTask)
32+
export const build = series(buildTsTask, copySoundsTask, copyPackageJsonTask)
3333

3434
/**
3535
* Clean the build directories
@@ -108,6 +108,14 @@ function buildTsTask() {
108108
return pipeline
109109
}
110110

111+
/**
112+
* This copies the package.json file to the output directory
113+
*
114+
*/
115+
function copySoundsTask() {
116+
return src([paths.src + '/sounds/**/*']).pipe(dest(paths.out + '/sounds'))
117+
}
118+
111119
/**
112120
* This copies the package.json file to the output directory
113121
*

src/scripts/example.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/sounds/empty

Whitespace-only changes.

0 commit comments

Comments
 (0)