Skip to content

Commit

Permalink
Migrate to Bytescale Upload Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 17, 2023
1 parent ed8f856 commit 61e4f59
Show file tree
Hide file tree
Showing 28 changed files with 513 additions and 363 deletions.
1 change: 1 addition & 0 deletions .github/assets/bytescale-upload-widget-angular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically generated by GitHub / is not in our secrets.
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_OPTIONS: --openssl-legacy-provider
working-directory: ./projects/angular-uploader
working-directory: ./projects/bytescale-upload-widget-angular
run: |
npm set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
npm run publish:executeIfReleaseCommit
Expand All @@ -49,7 +49,7 @@ jobs:
env:
SLACK_CHANNEL: deployments
SLACK_COLOR: "#17BB5E"
SLACK_TITLE: "Built: angular-uploader :rocket:"
SLACK_TITLE: "Built: @bytescale/upload-widget-angular :rocket:"
SLACK_FOOTER: "This package was successfully built."
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand All @@ -60,7 +60,7 @@ jobs:
env:
SLACK_CHANNEL: deployments
SLACK_COLOR: "#BB1717"
SLACK_TITLE: "Failed: angular-uploader :boom:"
SLACK_TITLE: "Failed: @bytescale/upload-widget-angular :boom:"
SLACK_FOOTER: "No packages published."
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
14 changes: 7 additions & 7 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Building From Source

This repository contains a hot-reloading sandbox for developing the `angular-uploader` NPM package.
This repository contains a hot-reloading sandbox for developing the `@bytescale/upload-widget-angular` NPM package.

## Prerequisites

Expand All @@ -16,16 +16,16 @@ This repository contains a hot-reloading sandbox for developing the `angular-upl

This repository comprises 2 projects:

- `/projects/angular-uploader`: contains the `angular-uploader` library itself.
- `/projects/sandbox`: provides a hot-reloading sandbox for developing the `angular-uploader` library.
- `/projects/bytescale-upload-widget-angular`: contains the `@bytescale/upload-widget-angular` library itself.
- `/projects/sandbox`: provides a hot-reloading sandbox for developing the `@bytescale/upload-widget-angular` library.

## How To Build & Run

### 1. Clone

```shell
git clone [email protected]:bytescale/angular-uploader.git
cd angular-uploader
git clone [email protected]:bytescale/upload-widget-angular.git
cd upload-widget-angular
```

### 2. Install Dependencies
Expand All @@ -39,7 +39,7 @@ npm install
In one terminal:

```shell
ng build angular-uploader --watch
ng build bytescale-upload-widget-angular --watch
```

In another terminal:
Expand All @@ -48,6 +48,6 @@ In another terminal:
npm start
```

The above launches a **hot-reloading** server on `http://127.0.0.1:4200` that uses `angular-uploader` from source.
The above launches a **hot-reloading** server on `http://127.0.0.1:4200` that uses `@bytescale/upload-widget-angular` from source.

_Please ensure nothing else is running on TCP port `4200`_.
Loading

0 comments on commit 61e4f59

Please sign in to comment.