Skip to content

Commit ae2746f

Browse files
committed
Init stimulus-parser
0 parents  commit ae2746f

21 files changed

+2634
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/**/*.*

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint",
6+
"prettier"
7+
],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier"
13+
],
14+
"rules": {
15+
"prettier/prettier": ["error"],
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
18+
},
19+
"env": {
20+
"node": true
21+
}
22+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
types/**/* linguist-vendored

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
schedule:
13+
- cron: "49 0 * * 6"
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-latest
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [javascript]
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
with:
36+
languages: ${{ matrix.language }}
37+
queries: +security-and-quality
38+
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v2
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v2
44+
with:
45+
category: "/language:${{ matrix.language }}"

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.tgz
2+
*.tsbuildinfo
3+
*.log
4+
*~
5+
6+
/dist
7+
node_modules/
8+
coverage/
9+
10+
yarn-error.log
11+
12+
.DS_Store
13+
.rollup.cache
14+
.tool-versions

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.5.1

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.babelrc
2+
.babelrc.js
3+
.DS_Store
4+
.gitignore
5+
.yarn.lock
6+
7+
*.log
8+
*.tsbuildinfo
9+
*.tgz
10+
11+
README.md
12+
rollup.config.js
13+
tsconfig.json
14+
yarn-error.log
15+
*~
16+
17+
/.git
18+
/.github
19+
/.gitattributes
20+
21+
/node_modules
22+
/src
23+
/test
24+
/coverage
25+
/assets

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": false,
3+
"printWidth": 120,
4+
"semi": false
5+
}

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Marco Roth
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<h1 align="center">stimulus-parser</h1>
2+
3+
<p align="center">
4+
<a href="https://github.com/marcoroth/stimulus-parser">
5+
<img src="https://github.com/marcoroth/stimulus-parser/actions/workflows/tests.yml/badge.svg">
6+
</a>
7+
<a href="https://www.npmjs.com/package/stimulus-parser">
8+
<img alt="NPM Version" src="https://img.shields.io/npm/v/stimulus-parser?logo=npm&color=38C160">
9+
</a>
10+
<a href="https://www.npmjs.com/package/stimulus-parser">
11+
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/stimulus-parser?logo=npm&color=38C160">
12+
</a>
13+
<a href="https://bundlephobia.com/package/stimulus-parser">
14+
<img alt="NPM Bundle Size" src="https://img.shields.io/bundlephobia/minzip/stimulus-parser?label=bundle%20size&logo=npm">
15+
</a>
16+
</p>
17+
18+
19+
## Installation
20+
21+
To add `stimulus-parser` to your project, run the following command in your terminal:
22+
23+
```bash
24+
yarn add stimulus-parser
25+
```
26+
27+
## Usage
28+
29+
TODO
30+
31+
## Development
32+
33+
To run the tests:
34+
35+
```bash
36+
yarn install
37+
yarn build
38+
yarn test
39+
```

0 commit comments

Comments
 (0)