-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 257962b
Showing
35 changed files
with
3,613 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
#/ | ||
# @license Apache-2.0 | ||
# | ||
# Copyright (c) 2017 The Stdlib Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#/ | ||
|
||
# EditorConfig configuration file (see <http://editorconfig.org/>). | ||
|
||
# Indicate that this file is a root-level configuration file: | ||
root = true | ||
|
||
# Set properties for all files: | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# Set properties for JavaScript files: | ||
[*.js] | ||
indent_style = tab | ||
|
||
# Set properties for TypeScript files: | ||
[*.ts] | ||
indent_style = tab | ||
|
||
# Set properties for Python files: | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Set properties for Julia files: | ||
[*.jl] | ||
indent_style = tab | ||
|
||
# Set properties for R files: | ||
[*.R] | ||
indent_style = tab | ||
|
||
# Set properties for C files: | ||
[*.c] | ||
indent_style = tab | ||
|
||
# Set properties for C header files: | ||
[*.h] | ||
indent_style = tab | ||
|
||
# Set properties for C++ files: | ||
[*.cpp] | ||
indent_style = tab | ||
|
||
# Set properties for C++ header files: | ||
[*.hpp] | ||
indent_style = tab | ||
|
||
# Set properties for Fortran files: | ||
[*.f] | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = false | ||
|
||
# Set properties for shell files: | ||
[*.sh] | ||
indent_style = tab | ||
|
||
# Set properties for AWK files: | ||
[*.awk] | ||
indent_style = tab | ||
|
||
# Set properties for HTML files: | ||
[*.html] | ||
indent_style = tab | ||
tab_width = 2 | ||
|
||
# Set properties for CSS files: | ||
[*.css] | ||
indent_style = tab | ||
|
||
# Set properties for Makefiles: | ||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.mk] | ||
indent_style = tab | ||
|
||
# Set properties for Markdown files: | ||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
# Set properties for `usage.txt` files: | ||
[usage.txt] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for `repl.txt` files: | ||
[repl.txt] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Set properties for `package.json` files: | ||
[package.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for `datapackage.json` files: | ||
[datapackage.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for `tslint.json` files: | ||
[tslint.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for `tsconfig.json` files: | ||
[tsconfig.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for LaTeX files: | ||
[*.tex] | ||
indent_style = tab | ||
|
||
# Set properties for LaTeX Bibliography files: | ||
[*.bib] | ||
indent_style = tab | ||
|
||
# Set properties for YAML files: | ||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Set properties for GYP files: | ||
[binding.gyp] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.gypi] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#/ | ||
# @license Apache-2.0 | ||
# | ||
# Copyright (c) 2017 The Stdlib Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#/ | ||
|
||
# Configuration file which assigns attributes to pathnames. | ||
# | ||
# [1]: https://git-scm.com/docs/gitattributes | ||
|
||
# Automatically normalize the line endings of any committed text files: | ||
* text=auto | ||
|
||
# Override what is considered "vendored" by GitHub's linguist: | ||
/deps/** linguist-vendored=false | ||
/lib/node_modules/** linguist-vendored=false linguist-generated=false | ||
test/fixtures/** linguist-vendored=false | ||
tools/** linguist-vendored=false | ||
|
||
# Override what is considered "documentation" by GitHub's linguist: | ||
examples/** linguist-documentation=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- ----------^ Click "Preview"! --> | ||
|
||
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/prepend) of the main repository where we’ll review and provide feedback. | ||
|
||
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. | ||
|
||
We look forward to receiving your contribution! :smiley: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: benchmark | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install production and development dependencies | ||
run: | | ||
npm install | ||
- name: Run benchmarks | ||
run: | | ||
npm run benchmark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Close Pull Requests | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: superbrothers/close-pull-request@v3 | ||
with: | ||
comment: | | ||
Thank you for submitting a pull request. :raised_hands: | ||
We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). | ||
We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/prepend) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. | ||
Thank you again, and we look forward to receiving your contribution! :smiley: | ||
Best, | ||
The stdlib team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: examples | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install production and development dependencies | ||
run: | | ||
npm install | ||
- name: Run examples | ||
run: | | ||
npm run examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish Package | ||
|
||
on: push | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Increment version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "stdlib-bot" | ||
npm version patch | ||
- name: Publish package to npm | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
access: public | ||
- name: Push changes | ||
run: | | ||
git push origin main | ||
git push --tags | ||
- uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#npm-ci' | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install production and development dependencies | ||
id: install | ||
run: | | ||
npm install | ||
- name: Run tests | ||
id: tests | ||
run: | | ||
npm test | ||
- uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#npm-ci' | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: coverage | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install production and development dependencies | ||
run: | | ||
npm install | ||
- name: Calculate test coverage | ||
run: | | ||
npm run test-cov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
directory: reports/coverage | ||
flags: unittests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test Installing Dependencies | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Publish Package"] | ||
types: [completed] | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
- name: Install production dependencies via npm | ||
run: | | ||
npm install --only=prod | ||
- uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#npm-ci' | ||
if: failure() |
Oops, something went wrong.