Skip to content

Commit

Permalink
updated: Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jul 31, 2023
1 parent 07a6a8e commit 439a868
Show file tree
Hide file tree
Showing 25 changed files with 2,960 additions and 2,383 deletions.
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ engines:

ratings:
paths:
- "src/**.js"
- 'src/**.js'

exclude_patterns:
- "test/**"
- 'test/**'
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/cli.js
/cli.cjs
/test/fixtures/*
/test/generated/*
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends: eslint-config-riot
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: test

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ generated
# these files are generated anyway
test/fixtures/*.js
cli.js
cli.cjs

!.gitmodules
!.travis.yml
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/cli.js
/cli.cjs
/test/fixtures/*
/test/generated/*
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')
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# @riotjs/cli

# 4.0.3

- Update riot compiler and dev dependencies

# 4.0.2

- Fix riot files extension detection

# 4.0.1
Expand Down Expand Up @@ -33,4 +35,4 @@
- Use the new Riot.js 4 compiler
- Complete rewrite
- Simplify API and options
- Implement minimal rollup components bundling
- Implement minimal rollup components bundling
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,18 @@ If you are using Riot.js < 4.0.0 please check the [legacy branch](https://github

`npm install @riotjs/cli -g`


## Usage

`riot --help`

[ci-image]:https://img.shields.io/github/actions/workflow/status/riot/cli/test.yml?style=flat-square
[ci-url]:https://github.com/riot/cli/actions

[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]:LICENSE

[npm-version-image]:http://img.shields.io/npm/v/@riotjs/cli.svg?style=flat-square
[npm-downloads-image]:http://img.shields.io/npm/dm/@riotjs/cli.svg?style=flat-square
[npm-url]:https://npmjs.org/package/@riotjs/cli

[coverage-image]:https://img.shields.io/coveralls/riot/cli/master.svg?style=flat-square
[coverage-url]:https://coveralls.io/r/riot/cli/?branch=master

[codeclimate-image]:https://api.codeclimate.com/v1/badges/1409ace7dbefdb5da35a/maintainability
[codeclimate-url]:https://codeclimate.com/github/riot/cli
[ci-image]: https://img.shields.io/github/actions/workflow/status/riot/cli/test.yml?style=flat-square
[ci-url]: https://github.com/riot/cli/actions
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]: LICENSE
[npm-version-image]: http://img.shields.io/npm/v/@riotjs/cli.svg?style=flat-square
[npm-downloads-image]: http://img.shields.io/npm/dm/@riotjs/cli.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@riotjs/cli
[coverage-image]: https://img.shields.io/coveralls/riot/cli/master.svg?style=flat-square
[coverage-url]: https://coveralls.io/r/riot/cli/?branch=master
[codeclimate-image]: https://api.codeclimate.com/v1/badges/1409ace7dbefdb5da35a/maintainability
[codeclimate-url]: https://codeclimate.com/github/riot/cli
18 changes: 8 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// allow modules import syntax
require = require('esm')(module, { // eslint-disable-line
cache: false
})
import process from 'node:process'
import run, * as cli from './src/index.js'

import run, * as cli from './src/index'
export default cli

// Run from CLI or as Node module
if (module.parent) {
module.exports = cli
/* istanbul ignore next */
} else run(process.argv)
// Auto-Run the CLI if this file is not imported
if (process.mainModule) {
/* c8 ignore next */
run(process.argv)
}

0 comments on commit 439a868

Please sign in to comment.