mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
Merge pull request #184 from Stremio/npm
Migrate from GitHub packages to NPM
This commit is contained in:
commit
1a2f05fa07
7 changed files with 17278 additions and 12032 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -1,31 +1,19 @@
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
tags-ignore:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
name: Checkout
|
uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- name: Install NPM dependencies
|
||||||
name: Setup Node
|
run: npm install
|
||||||
with:
|
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: npm run build
|
||||||
- uses: actions/upload-artifact@v1
|
- name: Upload build artifact
|
||||||
name: Upload build artifact
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: stremio-web
|
name: stremio-web
|
||||||
path: build
|
path: build
|
||||||
|
|
|
||||||
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
|
|
@ -1,29 +1,22 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches-ignore:
|
types: [published]
|
||||||
- '*'
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
name: Checkout
|
uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- name: Install NPM dependencies
|
||||||
name: Setup Node
|
run: npm install
|
||||||
with:
|
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn install && yarn build
|
run: npm run build
|
||||||
env:
|
- name: Zip build artifact
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
run: zip -r stremio-web.zip ./build
|
||||||
- run: zip -r stremio-web.zip ./build
|
- name: Upload build artifact to GitHub release assets
|
||||||
- name: Upload binaries to release
|
|
||||||
uses: svenstaro/upload-release-action@v1-release
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -31,9 +24,9 @@ jobs:
|
||||||
asset_name: stremio-web.zip
|
asset_name: stremio-web.zip
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- run: |
|
- name: Upload build artifact to Netlify
|
||||||
|
run: |
|
||||||
curl -H "Content-Type: application/zip" \
|
curl -H "Content-Type: application/zip" \
|
||||||
-H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \
|
-H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \
|
||||||
--data-binary "@stremio-web.zip" \
|
--data-binary "@stremio-web.zip" \
|
||||||
https://api.netlify.com/api/v1/sites/stremio-staging.netlify.com/deploys
|
https://api.netlify.com/api/v1/sites/stremio-development.netlify.com/deploys
|
||||||
|
|
||||||
|
|
|
||||||
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -1,28 +1,16 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
tags-ignore:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
name: Checkout
|
uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- name: Install NPM dependencies
|
||||||
name: Setup Node
|
run: npm install
|
||||||
with:
|
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: npm test
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: npm run lint
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
/build
|
/build
|
||||||
/package-lock.json
|
/yarn.lock
|
||||||
/npm-debug.log
|
/npm-debug.log
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
||||||
11
README.md
11
README.md
|
|
@ -1,6 +1,7 @@
|
||||||
# Stremio - The media center you need
|
# Stremio - The media center you need
|
||||||
|
|
||||||

|

|
||||||
|
[](https://stremio-development.netlify.app)
|
||||||
|
|
||||||
Stremio is a modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons.
|
Stremio is a modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons.
|
||||||
|
|
||||||
|
|
@ -8,24 +9,24 @@ Stremio is a modern media center that's a one-stop solution for your video enter
|
||||||
|
|
||||||
#### Prerequisites:
|
#### Prerequisites:
|
||||||
* Node.js 10 or higher
|
* Node.js 10 or higher
|
||||||
* yarn __configured for use with GitHub Packages__
|
* npm 6 or higher
|
||||||
|
|
||||||
### Install dependencies:
|
### Install dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Development:
|
### Development:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
### Production:
|
### Production:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
|
||||||
17241
package-lock.json
generated
Normal file
17241
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue