Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 0dd980f

Browse files
Updating config and move package to organization
1 parent faa4ade commit 0dd980f

18 files changed

+2207
-2408
lines changed

.babelrc

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"presets": [
3-
"@babel/env",
4-
"@babel/preset-typescript"
5-
],
2+
"presets": ["@babel/env", "@babel/preset-typescript"],
63
"plugins": ["@babel/plugin-transform-typescript"]
74
}

.eslintrc.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// https://eslint.org/docs/user-guide/configuring
22

33
module.exports = {
4+
root: true,
5+
parser: "@typescript-eslint/parser",
46
env: {
57
browser: true,
68
node: true,
7-
es6: true
9+
es6: true,
810
},
9-
10-
globals: {
11-
Rails: 'readonly'
12-
}
11+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
12+
extends: ["standard", "prettier"],
13+
plugins: ["@typescript-eslint"],
1314
}

.github/workflows/lint.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66
eslint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
10-
- uses: actions/setup-node@v1
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '14.x'
12+
node-version-file: ".node-version"
13+
cache: "yarn"
1314
- run: |
14-
yarn install
15+
yarn install --silent --non-interactive
1516
yarn lint

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.npmignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ index.html
44
netlify.toml
55
.node-version
66
.eslintrc.js
7-
src
87
spec
98
tsconfig.json
10-
vite.config.js
9+
vite.config.mjs
1110
.prettierignore
1211
.prettierrc
1312
.eslintignore
13+
postcss.config.js
14+
tailwind.config.js

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"printWidth": 120
2+
"printWidth": 120,
3+
"semi": false
34
}

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## [Unreleased]
89

10+
## [6.0.0] - 2024-03-23
11+
12+
### Chore
13+
14+
- **Breaking** Rename the `save` method to `submit`.
15+
16+
```diff
17+
- <%= f.text_field :description, data: { action: 'keyup->auto-submit#save' } %>
18+
+ <%= f.text_field :description, data: { action: 'keyup->auto-submit#submit' } %>
19+
```
20+
21+
- Renaming the component from `stimulus-rails-autosave` to `@stimulus-components/auto-submit`
22+
- Upgrading dependencies
23+
- Exporting Typescript Types
24+
- Updating demo UI
25+
- Add [Stimulus LSP](https://github.com/marcoroth/stimulus-lsp) compatibility
26+
927
## [5.1.0] - 2023-12-25
1028

1129
### Chore

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Guillaume Briday
3+
Copyright (c) Guillaume Briday
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Stimulus Rails Autosave
1+
# Stimulus Auto Submit
22

3-
[![](https://img.shields.io/npm/dt/stimulus-rails-autosave.svg)](https://www.npmjs.com/package/stimulus-rails-autosave)
4-
[![](https://img.shields.io/npm/v/stimulus-rails-autosave.svg)](https://www.npmjs.com/package/stimulus-rails-autosave)
5-
[![](https://github.com/stimulus-components/stimulus-rails-autosave/workflows/Lint/badge.svg)](https://github.com/stimulus-components/stimulus-rails-autosave)
6-
[![](https://img.shields.io/github/license/stimulus-components/stimulus-rails-autosave.svg)](https://github.com/stimulus-components/stimulus-rails-autosave)
3+
[![](https://img.shields.io/npm/dt/stimulus-auto-submit.svg)](https://www.npmjs.com/package/stimulus-auto-submit)
4+
[![](https://img.shields.io/npm/v/stimulus-auto-submit.svg)](https://www.npmjs.com/package/stimulus-auto-submit)
5+
[![](https://github.com/stimulus-components/stimulus-auto-submit/workflows/Lint/badge.svg)](https://github.com/stimulus-components/stimulus-auto-submit)
6+
[![](https://img.shields.io/github/license/stimulus-components/stimulus-auto-submit.svg)](https://github.com/stimulus-components/stimulus-auto-submit)
77

88
## Getting started
99

1010
A Stimulus controller to autosubmit Rails forms.
1111

1212
## 📚 Documentation
1313

14-
See [stimulus-rails-autosave documentation](https://stimulus-components.netlify.app/docs/components/stimulus-rails-autosave/).
14+
See [stimulus-auto-submit documentation](https://stimulus-components.netlify.app/docs/components/stimulus-auto-submit/).
1515

1616
## 👷‍♂️ Contributing
1717

0 commit comments

Comments
 (0)