Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Aug 4, 2024
0 parents commit 8da8710
Show file tree
Hide file tree
Showing 16 changed files with 6,017 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": "6.9.0"
}
}
]
],
"plugins": []
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
charset = utf8

[*.{yml,yaml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
116 changes: 116 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: main

on:
push:
pull_request:

jobs:
build:
strategy:
matrix:
config:
- runs-on: ubuntu-latest
node-version: '6.9.0' # LTS

- runs-on: ubuntu-latest
node-version: '8.9.0' # LTS

- runs-on: ubuntu-latest
node-version: '10.13.0' # LTS

- runs-on: ubuntu-latest
node-version: '12.13.0' # LTS

- runs-on: ubuntu-latest
node-version: '14.15.0' # LTS

- runs-on: ubuntu-latest
node-version: '16.13.0' # LTS

- runs-on: ubuntu-latest
node-version: '18.12.0' # LTS

- runs-on: ubuntu-latest
node-version: '20.9.0' # LTS

- runs-on: ubuntu-latest
node-version: '20.16.0' # LTS (current)
CODE_CHECK: 1

- runs-on: ubuntu-latest
node-version: '22.5.1'

- runs-on: windows-latest
node-version: '22.5.1'

- runs-on: macos-latest
node-version: '22.5.1'

runs-on: ${{ matrix.config.runs-on }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: '20.16.0'

- name: Node Version
run: node --version

- name: NPM Version
run: npm --version

- name: Dependencies
run: npm ci

- name: Build
run: npm run build

- name: Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.config.node-version }}

- name: Node Version
run: node --version

- name: NPM Version
run: npm --version

- name: Test
run: npm run test

- name: Lint
run: npm run lint
if: matrix.config.CODE_CHECK == 1

- name: Formatted
run: npm run formatted
if: matrix.config.CODE_CHECK == 1

publish:
if: startsWith(github.ref, 'refs/tags/')
needs: build

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4
with:
node-version: '20.16.0'
registry-url: https://registry.npmjs.org/

- name: Dependencies
run: npm ci

- name: Publish
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# OS files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# Node files
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
report.*.json
*.tgz
yarn.lock

# Build files
/lib

# IDE config
.vscode
39 changes: 39 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# OS files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# Node files
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
report.*.json
*.tgz
yarn.lock
.nvmrc

# IDE config
.vscode

/package-lock.json
/.gitattributes
/.gitignore
/.github
/.babelrc
/.editorconfig
/.prettierrc.yaml
/.prettierignore
/eslint.config.mjs
/spec
/src

/lib/**/*.spec.js
/lib/**/*.spec.js.map
/lib/**/*.spec.mjs
/lib/**/*.spec.mjs.map
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.16.0
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/package-lock.json
/lib
/spec/fixtures
16 changes: 16 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
tabWidth: 4
printWidth: 80
useTabs: true
semi: true
singleQuote: true
quoteProps: as-needed
trailingComma: none
bracketSpacing: false
arrowParens: avoid
overrides:
- files:
- '*.yaml'
- '*.yml'
options:
tabWidth: 2
useTabs: false
Loading

0 comments on commit 8da8710

Please sign in to comment.