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

Commit

Permalink
Updating config and move package to organization
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Mar 23, 2024
1 parent faa4ade commit 0dd980f
Show file tree
Hide file tree
Showing 18 changed files with 2,207 additions and 2,408 deletions.
5 changes: 1 addition & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"presets": [
"@babel/env",
"@babel/preset-typescript"
],
"presets": ["@babel/env", "@babel/preset-typescript"],
"plugins": ["@babel/plugin-transform-typescript"]
}
11 changes: 6 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: "@typescript-eslint/parser",
env: {
browser: true,
node: true,
es6: true
es6: true,
},

globals: {
Rails: 'readonly'
}
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: ["standard", "prettier"],
plugins: ["@typescript-eslint"],
}
9 changes: 5 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version-file: ".node-version"
cache: "yarn"
- run: |
yarn install
yarn install --silent --non-interactive
yarn lint
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ index.html
netlify.toml
.node-version
.eslintrc.js
src
spec
tsconfig.json
vite.config.js
vite.config.mjs
.prettierignore
.prettierrc
.eslintignore
postcss.config.js
tailwind.config.js
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"printWidth": 120
"printWidth": 120,
"semi": false
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
# Changelog

All notable changes to this project will be documented in this file.

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

## [Unreleased]

## [6.0.0] - 2024-03-23

### Chore

- **Breaking** Rename the `save` method to `submit`.

```diff
- <%= f.text_field :description, data: { action: 'keyup->auto-submit#save' } %>
+ <%= f.text_field :description, data: { action: 'keyup->auto-submit#submit' } %>
```

- Renaming the component from `stimulus-rails-autosave` to `@stimulus-components/auto-submit`
- Upgrading dependencies
- Exporting Typescript Types
- Updating demo UI
- Add [Stimulus LSP](https://github.com/marcoroth/stimulus-lsp) compatibility

## [5.1.0] - 2023-12-25

### Chore
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Guillaume Briday
Copyright (c) Guillaume Briday

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Stimulus Rails Autosave
# Stimulus Auto Submit

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

## Getting started

A Stimulus controller to autosubmit Rails forms.

## 📚 Documentation

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

## 👷‍♂️ Contributing

Expand Down
Loading

0 comments on commit 0dd980f

Please sign in to comment.