Skip to content

Commit

Permalink
chore: improve packaging flow
Browse files Browse the repository at this point in the history
  • Loading branch information
steabert committed Nov 8, 2020
1 parent 9a83931 commit 7155fbe
Show file tree
Hide file tree
Showing 134 changed files with 136 additions and 2,557 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
if [[ $GITHUB_REF =~ alpha|beta ]]; then
npm publish --tag next
yarn npm publish --tag next
else
npm publish --tag latest
yarn npm publish --tag latest
fi
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

1,299 changes: 15 additions & 1,284 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-3.7.0-5653cc98af-f0d4feec40.zip
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-4.0.1-04410d5b48-41a411d7ff.zip
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-8.0.0-c991624515-536b8cdff3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/q-npm-1.5.1-a28b3cfeaf-f610c1295a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
52 changes: 52 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarn/versions/4a7e75d5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
media-stream-library: major
12 changes: 8 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
yarnPath: '.yarn/releases/yarn-berry.cjs'

packageExtensions:
readable-stream@*:
dependencies:
events: '*'
events: "*"
stream-browserify@*:
dependencies:
events: '*'
events: "*"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-berry.cjs
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ you can run locally via this library.
Run `yarn dev` to build the library, run a local RTSP test server, and serve
the examples. You'll see a link to a port on `localhost` (usually 8080).

## Creating PRs

Whenever you want to apply your changes to the upstream repository,
you can create a pull request (PR). You can find general information
on making pull requests on GitHub.

When you are ready to push your changes,
make sure you include a proper version strategy in your commit by running:

```
yarn version <strategy> --deferred
```

where you should select a `<strategy>` based on if your changes introduce
(possible) breaking changes (`major`), new feature additions (`minor`),
or just fixes a bug (`patch`).

The command will generate a file in `.yarn/versions` that should be committed
together with your changes.

## Continuous integration

### Verification
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
"bin": {
"live": "examples/node/player.js"
},
"files": [
"dist/**/*",
"examples/**/*",
"rtsp-ws-server/*",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"scripts": {
"lint": "yarn eslint && yarn prettier:check",
"test": "jest --coverage",
Expand All @@ -25,8 +33,7 @@
"rtsp": "rtsp-ws-server/start.sh",
"examples": "http-server examples/browser",
"dev": "node sbin/dev.js",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"release": "yarn version --new-version `node node_modules/.bin/conventional-recommended-bump -p angular`"
"release": "sbin/release.sh"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -59,9 +66,6 @@
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"babel-loader": "8.1.0",
"concurrently": "5.3.0",
"conventional-changelog-cli": "2.1.1",
"conventional-recommended-bump": "6.0.11",
"core-js": "3.6.5",
"cypress": "5.5.0",
"eslint": "7.12.1",
Expand All @@ -73,6 +77,7 @@
"jest": "26.4.2",
"mock-socket": "9.0.3",
"prettier": "2.1.2",
"semver": "7.3.2",
"ts-jest": "26.4.3",
"typescript": "4.0.5",
"webpack": "5.4.0",
Expand Down
2 changes: 1 addition & 1 deletion sbin/release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Generate new commit
if [[ ! -d .yarn/version ]]; then
if [[ ! -d .yarn/versions ]]; then
yarn version patch
fi
yarn version apply --all
Expand Down
Loading

0 comments on commit 7155fbe

Please sign in to comment.