Skip to content

Commit 5e79164

Browse files
committed
Auto-generated commit
1 parent f3dc5d7 commit 5e79164

File tree

6 files changed

+56
-32
lines changed

6 files changed

+56
-32
lines changed

.editorconfig

Lines changed: 42 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,74 +29,92 @@ trim_trailing_whitespace = true
2929
insert_final_newline = true
3030

3131
# Set properties for JavaScript files:
32-
[*.js]
32+
[*.{js,js.txt}]
3333
indent_style = tab
3434

35+
# Set properties for JavaScript ES module files:
36+
[*.{mjs,mjs.txt}]
37+
indent_style = tab
38+
39+
# Set properties for JavaScript CommonJS files:
40+
[*.{cjs,cjs.txt}]
41+
indent_style = tab
42+
43+
# Set properties for JSON files:
44+
[*.{json,json.txt}]
45+
indent_style = space
46+
indent_size = 2
47+
3548
# Set properties for TypeScript files:
3649
[*.ts]
3750
indent_style = tab
3851

3952
# Set properties for Python files:
40-
[*.py]
53+
[*.{py,py.txt}]
4154
indent_style = space
4255
indent_size = 4
4356

4457
# Set properties for Julia files:
45-
[*.jl]
58+
[*.{jl,jl.txt}]
4659
indent_style = tab
4760

4861
# Set properties for R files:
49-
[*.R]
62+
[*.{R,R.txt}]
5063
indent_style = tab
5164

5265
# Set properties for C files:
53-
[*.c]
66+
[*.{c,c.txt}]
5467
indent_style = tab
5568

5669
# Set properties for C header files:
57-
[*.h]
70+
[*.{h,h.txt}]
5871
indent_style = tab
5972

6073
# Set properties for C++ files:
61-
[*.cpp]
74+
[*.{cpp,cpp.txt}]
6275
indent_style = tab
6376

6477
# Set properties for C++ header files:
65-
[*.hpp]
78+
[*.{hpp,hpp.txt}]
6679
indent_style = tab
6780

6881
# Set properties for Fortran files:
69-
[*.f]
82+
[*.{f,f.txt}]
7083
indent_style = space
7184
indent_size = 2
7285
insert_final_newline = false
7386

7487
# Set properties for shell files:
75-
[*.sh]
88+
[*.{sh,sh.txt}]
7689
indent_style = tab
7790

7891
# Set properties for AWK files:
79-
[*.awk]
92+
[*.{awk,awk.txt}]
8093
indent_style = tab
8194

8295
# Set properties for HTML files:
83-
[*.html]
96+
[*.{html,html.txt}]
97+
indent_style = tab
98+
tab_width = 2
99+
100+
# Set properties for XML files:
101+
[*.{xml,xml.txt}]
84102
indent_style = tab
85103
tab_width = 2
86104

87105
# Set properties for CSS files:
88-
[*.css]
106+
[*.{css,css.txt}]
89107
indent_style = tab
90108

91109
# Set properties for Makefiles:
92110
[Makefile]
93111
indent_style = tab
94112

95-
[*.mk]
113+
[*.{mk,mk.txt}]
96114
indent_style = tab
97115

98116
# Set properties for Markdown files:
99-
[*.md]
117+
[*.{md,md.txt}]
100118
indent_style = space
101119
indent_size = 4
102120
trim_trailing_whitespace = false
@@ -112,7 +130,7 @@ indent_style = space
112130
indent_size = 4
113131

114132
# Set properties for `package.json` files:
115-
[package.json]
133+
[package.{json,json.txt}]
116134
indent_style = space
117135
indent_size = 2
118136

@@ -121,6 +139,11 @@ indent_size = 2
121139
indent_style = space
122140
indent_size = 2
123141

142+
# Set properties for `manifest.json` files:
143+
[manifest.json]
144+
indent_style = space
145+
indent_size = 2
146+
124147
# Set properties for `tslint.json` files:
125148
[tslint.json]
126149
indent_style = space
@@ -132,15 +155,15 @@ indent_style = space
132155
indent_size = 2
133156

134157
# Set properties for LaTeX files:
135-
[*.tex]
158+
[*.{tex,tex.txt}]
136159
indent_style = tab
137160

138161
# Set properties for LaTeX Bibliography files:
139-
[*.bib]
162+
[*.{bib,bib.txt}]
140163
indent_style = tab
141164

142165
# Set properties for YAML files:
143-
[*.yml]
166+
[*.{yml,yml.txt}]
144167
indent_style = space
145168
indent_size = 2
146169

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
name: Publish Package
2121

2222
# Workflow triggers:
23-
on: push
23+
on:
24+
push:
25+
tags: v[0-9]+.[0-9]+.[0-9]+
2426

2527
# Workflow jobs:
2628
jobs:
@@ -33,20 +35,20 @@ jobs:
3335
- uses: actions/setup-node@v1
3436
with:
3537
node-version: 15
36-
- name: Increment version
38+
- name: Replace all GitHub links to individual packages with npm links
3739
run: |
38-
git config --local user.email "noreply@stdlib.io"
39-
git config --local user.name "stdlib-bot"
40-
npm version patch
40+
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
41+
- name: Replace all stdlib GitHub dependencies with the respective npm packages
42+
run: |
43+
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'
4144
- name: Publish package to npm
4245
uses: JS-DevTools/npm-publish@v1
4346
with:
4447
token: ${{ secrets.NPM_TOKEN }}
4548
access: public
46-
- name: Push changes
49+
- name: Discard any uncommitted changes
4750
run: |
48-
git push origin main
49-
git push --tags
51+
git reset --hard
5052
- uses: act10ns/slack@v1
5153
with:
5254
status: ${{ job.status }}

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ on:
2525
# * is a special character in YAML so you have to quote this string
2626
- cron: '30 1 * * 6'
2727
workflow_dispatch:
28+
push:
2829

2930
# Workflow jobs:
3031
jobs:

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Files #
2020
#########
21-
.postinstall.json
21+
package.json.copy
2222

2323
# Directories #
2424
###############
@@ -70,9 +70,6 @@ tmp/
7070
*.tar
7171
*.zip
7272

73-
# Make an exception for compressed distributable files:
74-
!dist/*.gz
75-
7673
# Logs and databases #
7774
######################
7875
*.log

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Makefile
3636
**/examples/
3737
reports/
3838
support/
39+
scripts/
3940
**/tmp/
4041
workshops/
4142

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A Bartlett-Hann pulse waveform is represented by the following equation
3333
<!-- <equation class="equation" label="eq:bartlett_hann_pulse_waveform" align="center" raw="f(t; T, \tau, A, \varphi) = \begin{cases}A \biggl(0.62 - 0.48\biggl|\frac{t-\varphi}{\tau-1} - \frac{1}{2}\biggr| - 0.38\cos\frac{2\pi (t-\varphi)}{\tau-1}\biggr) & (t-\varphi) \mod T < \tau \\ 0 & \textrm{otherwise} \end{cases}" alt="Equation for a Bartlett-Hann pulse waveform."> -->
3434

3535
<div class="equation" align="center" data-raw-text="f(t; T, \tau, A, \varphi) = \begin{cases}A \biggl(0.62 - 0.48\biggl|\frac{t-\varphi}{\tau-1} - \frac{1}{2}\biggr| - 0.38\cos\frac{2\pi (t-\varphi)}{\tau-1}\biggr) &amp; (t-\varphi) \mod T < \tau \\ 0 &amp; \textrm{otherwise} \end{cases}" data-equation="eq:bartlett_hann_pulse_waveform">
36-
<img src="https://cdn.rawgit.com/stdlib-js/stdlib/76fd234ed3f3558f7a75e86bce3ad928b5fb7e3a/lib/node_modules/@stdlib/simulate/iter/bartlett-hann-pulse/docs/img/equation_bartlett_hann_pulse_waveform.svg" alt="Equation for a Bartlett-Hann pulse waveform.">
36+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@76fd234ed3f3558f7a75e86bce3ad928b5fb7e3a/lib/node_modules/@stdlib/simulate/iter/bartlett-hann-pulse/docs/img/equation_bartlett_hann_pulse_waveform.svg" alt="Equation for a Bartlett-Hann pulse waveform.">
3737
<br>
3838
</div>
3939

0 commit comments

Comments
 (0)