Skip to content

Commit

Permalink
refactor: code base
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 14, 2023
1 parent ef138d6 commit 43849ec
Show file tree
Hide file tree
Showing 23 changed files with 90 additions and 167 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/bring-it.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
name: bring-it

on:
workflow_dispatch:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- lts/*
- lts/-1
exclude:
- os: ubuntu-latest
node: lts/*

runs-on: ${{ matrix.os }}
steps:
- name: Run
uses: airkro/bring-it@actions
with:
node-version: ${{ matrix.node }}

publish:
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Run
uses: airkro/bring-it@actions
with:
npm-token: ${{ secrets.NPM_TOKEN }}
publish-command: npx @bring-it/[email protected] npm
publish-command: npx @bring-it/[email protected] npm
custom-command: |
cd packages
mkdir -p sftp/dist
touch $_/cli.mjs
mkdir -p npm/dist
touch $_/cli.mjs
mkdir -p sample/dist
touch $_/cli.mjs
mkdir -p sentry/dist
mkdir -p cli/dist
touch $_/cli.mjs
74 changes: 38 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"prettier": "^3.0.3"
},
"engines": {
"node": "^16.17.0 || ^18.0.0 || ^20.0.0",
"node": "^18.0.0 || ^20.0.0",
"npm": ">=9.4.0"
},
"packageManager": "npm@10.1.0",
"packageManager": "npm@10.2.0",
"eslintConfig": {
"extends": "@nice-move/eslint-config-base"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { execFile } from 'node:child_process';

import { ignore } from '@bring-it/utils';
import { globbySync } from 'globby';

import { ignore } from '@bring-it/utils';

function checkTarget(pattern) {
if (pattern.length === 0) {
throw new Error('Error: no pattern input');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/bin.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Cheetor } from 'cheetor';

import * as pack from '@bring-it/utils/cmd/pack.mjs';
import * as pack from './cmd/pack.mjs';

new Cheetor('../package.json', import.meta.url)
.command(pack)
Expand Down
File renamed without changes.
Loading

0 comments on commit 43849ec

Please sign in to comment.