Skip to content

Commit

Permalink
Fix windy-sounding build
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Jun 21, 2024
1 parent ffbfcd0 commit eaec8a9
Show file tree
Hide file tree
Showing 9 changed files with 4,613 additions and 9,336 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/upload-windy-sounding.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: upload-windy-sounding
name: "Upload the flyXC Soundings plugin"
run-name: Upload to Windy by @${{ github.actor }}

on:
workflow_dispatch:
Expand All @@ -16,7 +17,8 @@ jobs:
fetch-depth: 2
- name: Build
run: |
npm install
npm ci --no-audit
npm --prefix libs/windy-sounding ci --no-audit
npx nx prepare windy-sounding
- name: Publish Plugin
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

flyXC sounding is a plugin to display soundings customized for paraglider pilots in windy.com.

See the [README](https://github.com/vicb/flyxc/libs/windy-sounding/README.md) for details.
See the [README](https://github.com/vicb/flyxc/blob/master/libs/windy-sounding/README.md) for details.

## Support flyXC

Expand Down
10 changes: 7 additions & 3 deletions libs/windy-sounding/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ The `windy-plugin-sounding` displays soundings customized for paraglider pilots.
Execute the following commands in the root directory:

`npm i`
`npm --prefix libs/windy-sounding i`

`nx serve windy-sounding` or `nx preview windy-sounding`
Then run either:

Then you can visit `windy.com/dev` and enter `https://localhost:9999/src/plugin.ts` as the url to the plugin. Hit `Install and open plugin` and the plugin will open to the right side.
- `nx serve windy-sounding --build.watch=true` and visit `windy.com/dev` and enter `https://localhost:9999/plugin.js` as the url to the plugin.
- or `nx preview windy-sounding` and visit `windy.com/dev` and enter `https://localhost:9999/src/plugin.ts` as the url to the plugin

You can then update the plugin sources and hit `Reload plugin` to load your changes.
Then press `Install and open plugin` and the plugin will open to the right side.

You can then update the code and hit `Reload plugin` to load your changes.

## Release

Expand Down
2 changes: 1 addition & 1 deletion libs/windy-sounding/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# windy-plugin-sounding
# flyXC soundings

The "flyXC soundings" plugin displays soundings customized for paraglider pilots on windy.com.

Expand Down
4 changes: 2 additions & 2 deletions libs/windy-sounding/generate-manifest.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import fs from 'node:fs';
import path from 'node:path';
import { __pluginConfig } from '../../dist/libs/windy-sounding/plugin.min.js';
import { pluginConfig } from '../../dist/libs/windy-sounding/config.js';

try {
const outputFolder = path.resolve(process.argv[2] ?? '');
const manifestPath = path.join(outputFolder, 'plugin.json');
const manifest = JSON.stringify(__pluginConfig, null, 2);
const manifest = JSON.stringify(pluginConfig, null, 2);
fs.writeFileSync(manifestPath, manifest);
console.log(`Manifest file generated: ${manifestPath}`);
} catch (error) {
Expand Down
Loading

0 comments on commit eaec8a9

Please sign in to comment.