Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Master to Main #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,36 @@ jobs:
with:
node-version: 12.x

- name: Use cached node_modules
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
# npm cache files are stored in `~/.npm` on Linux/macOS
# https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
nodeModules-
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
env:
CI: true

- name: Lint
run: yarn lint
run: npm lint
env:
CI: true

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
run: npm test --ci --coverage --maxWorkers=2
env:
CI: true

- name: Build
run: yarn build
run: npm build
env:
CI: true
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
push:
branches:
- master
- main

jobs:
release_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: "yarn install"
run: yarn install --frozen-lockfile
- name: "npm install"
run: npm ci

- name: "yarn semantic-release"
run: yarn semantic-release
- name: "npm semantic-release"
run: npm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,22 @@ This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx).

Below is a list of commands you will probably find useful.

#### `npm start` or `yarn start`
#### `npm start`

Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.

<img src="https://user-images.githubusercontent.com/4060187/52168303-574d3a00-26f6-11e9-9f3b-71dbec9ebfcb.gif" width="600" />

Your library will be rebuilt if you make edits.

#### `npm run build` or `yarn build`
#### `npm run build`

Bundles the package to the `dist` folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

<img src="https://user-images.githubusercontent.com/4060187/52168322-a98e5b00-26f6-11e9-8cf6-222d716b75ef.gif" width="600" />

#### `npm test` or `yarn test`
#### `npm test`

Runs the test watcher (Jest) in an interactive mode.
By default, runs tests related to files changed since the last commit.
12 changes: 6 additions & 6 deletions docs/classes/ShifterClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ <h3 id="methods">Methods</h3>
<span class="modifier-icon method fa fa-play lock">
<span class="fa fa-lock"></span>
</span>
<code>createRequestConfig(config: AxiosRequestConfig)</code>
<code>createRequestConfig(config: any)</code>
</td>
</tr>

Expand All @@ -431,7 +431,7 @@ <h3 id="methods">Methods</h3>
</ul>
</div>
<div class="io-description">
<b>Returns: </b> <code>AxiosRequestConfig</code>
<b>Returns: </b> <code>any</code>

</div>
<div class="io-description">
Expand All @@ -454,7 +454,7 @@ <h3 id="methods">Methods</h3>
<span class="modifier-icon method fa fa-play lock">
<span class="fa fa-lock"></span>
</span>
<code>get(path: string, config: AxiosRequestConfig)</code>
<code>get(path: string, config: any)</code>
</td>
</tr>

Expand Down Expand Up @@ -507,7 +507,7 @@ <h3 id="methods">Methods</h3>
<span class="modifier-icon method fa fa-play lock">
<span class="fa fa-lock"></span>
</span>
<code>post(path: string, body: <a href="https://angular.io/docs/ts/latest/api/http/index/Request-class.html" target="_blank" >Request</a>, config: AxiosRequestConfig)</code>
<code>post(path: string, body: <a href="https://angular.io/docs/ts/latest/api/http/index/Request-class.html" target="_blank" >Request</a>, config: any)</code>
</td>
</tr>

Expand Down Expand Up @@ -568,7 +568,7 @@ <h3 id="methods">Methods</h3>
<span class="modifier-icon method fa fa-play lock">
<span class="fa fa-lock"></span>
</span>
<code>put(path: string, body: <a href="https://angular.io/docs/ts/latest/api/http/index/Request-class.html" target="_blank" >Request</a>, config: AxiosRequestConfig)</code>
<code>put(path: string, body: <a href="https://angular.io/docs/ts/latest/api/http/index/Request-class.html" target="_blank" >Request</a>, config: any)</code>
</td>
</tr>

Expand Down Expand Up @@ -629,7 +629,7 @@ <h3 id="methods">Methods</h3>
<span class="modifier-icon method fa fa-play lock">
<span class="fa fa-lock"></span>
</span>
<code>delete(path: string, config: AxiosRequestConfig)</code>
<code>delete(path: string, config: any)</code>
</td>
</tr>

Expand Down
22 changes: 6 additions & 16 deletions docs/graph/dependencies.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 docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,14 @@ <h4 id="typescript">TypeScript</h4>
<p>This project was bootstrapped with <a href="https://github.com/jaredpalmer/tsdx">TSDX</a>.</p>
<h3 id="local-development">Local Development</h3>
<p>Below is a list of commands you will probably find useful.</p>
<h4 id="npm-start-or-yarn-start"><code>npm start</code> or <code>yarn start</code></h4>
<h4 id="npm-start"><code>npm start</code></h4>
<p>Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code&#39;s Problems tab.</p>
<p><img src="https://user-images.githubusercontent.com/4060187/52168303-574d3a00-26f6-11e9-9f3b-71dbec9ebfcb.gif" width="600" /></p>
<p>Your library will be rebuilt if you make edits.</p>
<h4 id="npm-run-build-or-yarn-build"><code>npm run build</code> or <code>yarn build</code></h4>
<h4 id="npm-run-build"><code>npm run build</code></h4>
<p>Bundles the package to the <code>dist</code> folder.<br>The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).</p>
<p><img src="https://user-images.githubusercontent.com/4060187/52168322-a98e5b00-26f6-11e9-8cf6-222d716b75ef.gif" width="600" /></p>
<h4 id="npm-test-or-yarn-test"><code>npm test</code> or <code>yarn test</code></h4>
<h4 id="npm-test"><code>npm test</code></h4>
<p>Runs the test watcher (Jest) in an interactive mode.<br>By default, runs tests related to files changed since the last commit.</p>


Expand Down
4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

Loading