Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 17, 2024
1 parent 3881d74 commit b230762
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 52 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.json

This file was deleted.

58 changes: 25 additions & 33 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
name: Node CI

on: [push, pull_request]

on:
- push
- pull_request
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 15.x]

node-version:
- 18.x
- 20.x
- 22.x
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Amber
run:
curl -s "https://raw.githubusercontent.com/Ph0enixKM/AmberNative/master/setup/install.sh" | bash

- name: Install Redrun
run:
npm i redrun -g

- name: Install
run:
npm install

- name: build
run:
redrun build:amber

- name: Lint
run:
redrun lint

- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Amber
run: curl -s "https://raw.githubusercontent.com/Ph0enixKM/AmberNative/master/setup/install.sh" | bash
- name: Install Redrun
run: bun i redrun -g --no-save
- name: Install
run: bun i --no-save
- name: build
run: redrun build:amber
- name: Lint
run: redrun lint
4 changes: 2 additions & 2 deletions .madrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
'lint': () => run('lint:*'),
'lint:js': () => 'putout .',
'lint:bash': () => `docker run --rm -v "$PWD:/mnt" koalaman/shellcheck lib/*.sh bin/*.sh`,
'fix:lint': () => run('lint', '--fix'),
'fix:lint': () => run('lint:js', '--fix'),
'docker:build': () => 'docker build . -t coderaiser/loop:`version`',
'postdocker:build': () => 'docker tag coderaiser/loop:`version` coderaiser/loop:latest',
'rm:docker': () => 'docker rmi -f coderaiser/loop:`version`',
Expand All @@ -21,5 +21,5 @@ export default {
'prewisdom': async () => await run(['rm:*', 'rm:docker']),
'rm:package-lock': () => 'rm -f package-lock.json',
'watcher': () => 'nodemon -w . -e sh --exec',
'watch:lint': () => run('watcher', '\'npm run lint\''),
'watch:lint': async () => await run('watcher', `'npm run lint'`),
};
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Loop [![License][LicenseIMGURL]][LicenseURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL]
# Loop [![License][LicenseIMGURL]][LicenseURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL]

[BuildStatusURL]: https://github.com/coderaiser/loop/actions?query=workflow%3A%22Node+CI%22 "Build Status"
[BuildStatusIMGURL]: https://github.com/coderaiser/loop/workflows/Node%20CI/badge.svg
[DependencyStatusIMGURL]: https://david-dm.org/coderaiser/loop.svg?path=packages/putout
[DependencyStatusURL]: https://david-dm.org/coderaiser/loop?path=packages/putout "Dependency Status"
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
[BuildStatusURL]: https://github.com/coderaiser/loop/actions?query=workflow%3A%22Node+CI%22 "Build Status"
[BuildStatusIMGURL]: https://github.com/coderaiser/loop/workflows/Node%20CI/badge.svg
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"

Create or resize file system of an image file to use as a [loop device](https://en.wikipedia.org/wiki/Loop_device).

Expand All @@ -20,11 +18,13 @@ docker run --rm coderaiser/loop <file> <size>
```sh
docker run --rm -t -v "$PWD:/root" --name loop coderaiser/loop image.bin 100M
```

You can pass arguments to docker container via environment variables `$FILE` and `$SIZE` as well:

```sh
docker run --rm -t -v "$PWD:/root" --name loop -e "FILE=image.bin" -e "SIZE=100M" coderaiser/loop
```

## License

MIT
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {safeAlign} from 'eslint-plugin-putout/config';

export default safeAlign;

0 comments on commit b230762

Please sign in to comment.