Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 15, 2021
0 parents commit 17b34c5
Show file tree
Hide file tree
Showing 38 changed files with 3,056 additions and 0 deletions.
154 changes: 154 additions & 0 deletions .editorconfig
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
33 changes: 33 additions & 0 deletions .gitattributes
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
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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/datasets/us-states-names) 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:
19 changes: 19 additions & 0 deletions .github/workflows/benchmark.yml
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
23 changes: 23 additions & 0 deletions .github/workflows/close_pull_requests.yml
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/datasets/us-states-names) 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
19 changes: 19 additions & 0 deletions .github/workflows/examples.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
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 "noreply@stdlib.io"
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()
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
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()
24 changes: 24 additions & 0 deletions .github/workflows/test_coverage.yml
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
27 changes: 27 additions & 0 deletions .github/workflows/test_install.yml
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()
Loading

0 comments on commit 17b34c5

Please sign in to comment.