Skip to content

Commit

Permalink
updated: dependencies and use prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed May 21, 2023
1 parent 2b08ebf commit 113f7a7
Show file tree
Hide file tree
Showing 71 changed files with 6,936 additions and 9,462 deletions.
16 changes: 8 additions & 8 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ratings:
paths:
- "src/**.js"
- 'src/**.js'

exclude_paths:
- "riot.d.ts"
- "riot+compiler.js"
- "riot+compiler.min.js"
- "riot.js"
- "riot.esm.js"
- "riot.min.js"
- "test/**"
- 'riot.d.ts'
- 'riot+compiler.js'
- 'riot+compiler.min.js'
- 'riot.js'
- 'riot.esm.js'
- 'riot.min.js'
- 'test/**'
13 changes: 0 additions & 13 deletions .eslintrc

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: eslint-config-riot

rules:
fp/no-rest-parameters: 0
2 changes: 0 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ We use [Github Issues](https://github.com/riot/riot/issues) as the Riot.js bug t

Please just add a link to the bottom of the README.md file


### Updating the documentation

Please go to the [website repository](https://github.com/riot/riot.github.io).


#### We are happy to accept PRs so thank you in advance!

#### Copyright
Expand Down
24 changes: 11 additions & 13 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@

1. Describe your issue:




2. Can you reproduce the issue?

Post the link using one of our bug report templates:
- [Bug Report Template](https://riot.js.org/examples/plunker/?app=bug-reporter) on plnkr (preferred)
- [Bug Report Template](https://codesandbox.io/s/riot-js-7-bug-template-forked-ffm7jf?file=/index.html) on codesandbox
Post the link using one of our bug report templates:

- [Bug Report Template](https://riot.js.org/examples/plunker/?app=bug-reporter) on plnkr (preferred)
- [Bug Report Template](https://codesandbox.io/s/riot-js-7-bug-template-forked-ffm7jf?file=/index.html) on codesandbox

3. On which browser/OS does the issue appear?

4. Which version of Riot does it affect?

5. How would you tag this issue?

- [ ] Question
- [ ] Bug
- [ ] Discussion
- [ ] Feature request
- [ ] Tip
- [ ] Enhancement
- [ ] Performance
- [ ] Question
- [ ] Bug
- [ ] Discussion
- [ ] Feature request
- [ ] Tip
- [ ] Enhancement
- [ ] Performance
10 changes: 4 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
## __IMPORTANT: for all the pull requests use the `dev` branch__
## **IMPORTANT: for all the pull requests use the `dev` branch**

### Answer the following depending on the type of change you want to merge

#### Code

1. Have you added test(s) for your patch? If not, why not?


2. Can you provide an example of your patch in use?

Post the link using one of our bug report templates:
- [Bug Report Template](https://riot.js.org/examples/plunker/?app=bug-reporter) on plnkr (preferred)
- [Bug Report Template](https://codesandbox.io/s/riot-js-7-bug-template-forked-ffm7jf?file=/index.html) on codesandbox
Post the link using one of our bug report templates:

- [Bug Report Template](https://riot.js.org/examples/plunker/?app=bug-reporter) on plnkr (preferred)
- [Bug Report Template](https://codesandbox.io/s/riot-js-7-bug-template-forked-ffm7jf?file=/index.html) on codesandbox

3. Is this a breaking change?


#### Content

Provide a short description about what you have changed:
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ name: test

on:
push:
branches: [ main, dev ]
branches: [main, dev]
pull_request:
branches: [ dev ]
branches: [dev]

permissions:
contents: read

jobs:
build:

permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest

strategy:
Expand Down
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/dist
/coverage
/esm
/node_modules
/.nyc_output
/riot.js
/riot.min.js
/riot+compiler.js
/riot+compiler.min.js
1 change: 1 addition & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@riotjs/prettier-config')
15 changes: 11 additions & 4 deletions AWESOME.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# List of awesome tools made with Riot.js

### Demos

- [**Riot Examples** - Community's Official](https://github.com/riot/examples)
- [**Riot Animore** - Official Tags Animations Library](https://github.com/riot/animore)
- [Riot Todo MVC](http://todomvc.com/examples/riotjs/)
Expand All @@ -24,9 +25,11 @@
- [Riot Chrome Extension Boilerplate](https://github.com/acesmndr/chrome-extension-boilerplate-riot)

### Books

- [Building Apps with Riot](https://bleedingedgepress.com/building-apps-with-riot/)

### Tutorials

- [Building Apps with Riot, ES6 and Webpack](http://blog.srackham.com/posts/riot-es6-webpack-apps/)
- [Building Apps with Riot, Babel, RiotControl and Webpack](https://github.com/txchen/feplay/tree/gh-pages/riot_webpack)
- [Building tabs with Riot](http://robertwpearce.com/blog/riotjs-example.html)
Expand All @@ -42,6 +45,7 @@
- [Hello Riot.js : a quick tutorial about this awesome lib](http://vitomd.com/blog/coding/hello-riot-js-quick-tutorial-about-this-awesome-lib/)

### Video Tutorials

- [Introduction](https://www.youtube.com/watch?v=al87U6NgRTc)
- [Loops, Events and Callbacks](https://www.youtube.com/watch?v=T-ZV9dv93sw)
- [Server Rendering with Node & Express](http://youtu.be/6ww1UXGJzcs)
Expand All @@ -53,8 +57,8 @@
- [Riot and Redux - Part 5](https://youtu.be/M4BNsRMatVY)
- [Riot and Redux - Part 6](https://youtu.be/jr8KDpwtRsk)


### Libraries / Frameworks

- [Flux- like event controller for Riot](https://github.com/jimsparkman/RiotControl)
- [flux-riot framework](https://github.com/mingliangfeng/flux-riot)
- [Cheftjs - chinese framework for Riot](https://github.com/cheft/cheftjs)
Expand All @@ -67,8 +71,8 @@
- [riot-meiosis - State management for Riot 4](https://github.com/damusix/riot-meiosis)
- [riot-final-form - Final Form wrapper for Riot 4](https://github.com/damusix/riot-final-form)


### Components

- [Material UI](http://kysonic.github.io/riot-mui/)
- [RiotGear Components](https://riotgear.js.org)
- [RiotGear Router](http://riotgear.js.org/components/router/)
Expand All @@ -84,13 +88,14 @@
- [Nest UI](https://github.com/fengzilong/Nest) - [(Demo)](https://fengzilong.github.io/Nest/)
- [rGrid](https://github.com/limodou/rgrid) - [(Demo)](https://limodou.github.io/rgrid/examples.html)
- [typewriter](https://github.com/amitguptagwl/web-snippets/tree/master/riotjs-components/typewriter) - [(Demo)](http://amitkumargupta.work)
- [Riot Particles](https://github.com/matteobruni/tsparticles/tree/main/components/riot) - Particles, confetti, fireworks and other animations component
- [Riot Particles](https://github.com/matteobruni/tsparticles/tree/main/components/riot) - Particles, confetti, fireworks and other animations component

### Resources

- [create-riot-app](https://github.com/alexstep/create-riot-app-ejected) dev environment
- [Riot + AngularJS](https://github.com/lucasbrigida/angular-riot)
- [Module loader for WebPack](https://www.npmjs.com/package/riotjs-loader)
- [Riot + Meteor]( https://atmospherejs.com/baysao/riotjs)
- [Riot + Meteor](https://atmospherejs.com/baysao/riotjs)
- [Riot Snake Game](http://cdn.rawgit.com/atian25/blog/master/assets/riot-snake.html)
- [Riot Tag Syntax Checker](http://cognitom.github.io/riot-checker/)
- [Riot 文档中译版](https://github.com/Centaur/riotjs_doc_cn) :cn:
Expand All @@ -107,10 +112,12 @@
- [Riot 4 SPA Boilerplate](https://github.com/damusix/riot-4-boilerplate)

### Miscellaneous

- [Q&A with RiotJS author Tero Piirainen](http://www.triplet.fi/blog/q-and-a-with-riotjs-author-tero-piirainen/)
- [riot-detector (Chrome Extension)](https://chrome.google.com/webstore/detail/riot-detector/cnnmjeggdmicjojlnjghdgkdlijiobke)

### Editors / Editor Plugins (Syntax highlighting, autcompletion, etc...)

- [riot (Atom Package)](https://atom.io/packages/riot)
- [language-riot-tag (Atom Package)](https://github.com/dekimasoon/language-riot-tag)
- Based on Vue's official Sublime Text highlighter
Expand Down
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ KARMA = ./node_modules/karma/bin/karma
ESLINT = ./node_modules/eslint/bin/eslint.js
MOCHA = ./node_modules/mocha/bin/_mocha
ROLLUP = ./node_modules/.bin/rollup
PRETTIER = ./node_modules/.bin/prettier
MINIFY = ./node_modules/.bin/terser
RIOT_CLI = ./node_modules/.bin/riot
TSC = ./node_modules/.bin/tsc
Expand All @@ -24,14 +25,16 @@ CONFIG = config/

GENERATED_FILES = riot.js riot+compiler.js

test: eslint test-karma test-typing
test: lint test-karma test-typing

test-karma:
@ $(KARMA) start test/karma.conf.js

eslint:
lint:
# check if the code looks pretty
@ $(PRETTIER) --check ./
# check code style
@ $(ESLINT) -c ./.eslintrc src test
@ $(ESLINT) src test

test-debug:
@ ${KARMA} start test/karma.conf.js --browsers=Chrome --no-single-run --auto-watch
Expand Down Expand Up @@ -138,4 +141,4 @@ publish:
@ git push origin main
@ git push origin main --tags

.PHONY: test min eslint test-sauce raw riot build bump bump-undo version version-undo release-undo publish
.PHONY: test min lint test-sauce raw riot build bump bump-undo version version-undo release-undo publish
Loading

0 comments on commit 113f7a7

Please sign in to comment.