Skip to content

Commit 1ca1807

Browse files
committed
inital commit
0 parents  commit 1ca1807

15 files changed

Lines changed: 17410 additions & 0 deletions

.babelrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = function (api) {
2+
api.cache(true)
3+
4+
const presets = ["@babel/preset-env"]
5+
const plugins = [ ... ]
6+
7+
return {
8+
presets,
9+
plugins
10+
}
11+
}

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Base editor settings used by Prettier, see also .vscode/settings.json
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
insert_final_newline = true
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 2
10+
max_line_length = 80
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
max_line_length = off
15+
insert_final_newline = false
16+
trim_trailing_whitespace = false
17+
18+
[*.{js,ts}]
19+
quote_type = single

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
!.*.json
2+
docs
3+
dist
4+
build
5+
src/js/vendor
6+
src/js/lib
7+
**/node_modules

.eslintrc.cjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2022: true
5+
},
6+
extends: ['prettier-standard'],
7+
plugins: ['json-format', 'import', 'promise'],
8+
rules: {
9+
'import/named': 2,
10+
'import/namespace': 2,
11+
'import/default': 2,
12+
'import/export': 2
13+
},
14+
settings: {
15+
'json/sort-package-json': 'standard',
16+
'json/ignore-files': ['**/package-lock.json'],
17+
'json/json-with-comments-files': ['**/tsconfig.json', '.vscode/**']
18+
}
19+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci-actions
2+
on: [push]
3+
jobs:
4+
bump:
5+
runs-on: ubuntu-latest
6+
steps:
7+
# Necessary to push the generated badges to the repo
8+
- name: Check out repository code
9+
uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.head_ref }}
12+
13+
# Install the npm moduels onto the testing environment
14+
- name: Install modules
15+
run: yarn
16+
17+
# Necessary to generate the coverage report.
18+
# Make sure to add 'json-summary' to the coverageReporters in jest options
19+
- name: Run Tests
20+
run: yarn test-ci
21+
22+
# Run the build to ensure that banner details are updated from package.json properly (ie version number etc).
23+
# Rollup --watch and --watchAll do not update these when package.json is updated.
24+
# This step also ensures that the project builds as expected.
25+
- name: Build
26+
run: yarn build
27+
28+
- name: Git Auto Commit
29+
uses: stefanzweifel/git-auto-commit-action@v4.15.1
30+
with:
31+
commit_message: Auto build
32+
repository: ./dist/
33+
34+
- name: Generating coverage badges
35+
uses: 'jpb06/jest-badges-action@latest'
36+
with:
37+
branches: main,ci-build

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
logs
2+
*.log
3+
npm-debug.log*
4+
.npm
5+
node_modules
6+
.node_repl_history
7+
.env
8+
.parcel-cache
9+
.DS_Store

.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Ignore artifacts:
2+
docs
3+
dist
4+
build
5+
coverage
6+
LICENSE
7+
8+
# Ignore vendor assetts
9+
src/js/vendor
10+
src/scss/vendor
11+
src/css/vendor

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editorconfig": true,
3+
"trailingComma": "none",
4+
"semi": false,
5+
"singleQuote": true
6+
}

LICENSE

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright 2022, Benjamin Rush (bnjmnrsh)
2+
3+
Permission to use, copy, modify, and/or distribute
4+
this software for any purpose with or without fee is hereby granted, provided
5+
that the above copyright notice and this permission notice appear in all copies.
6+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
8+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
10+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
11+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
12+
THIS SOFTWARE.

0 commit comments

Comments
 (0)