Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,29 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: install
run: npm ci
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7

- name: Install dependencies
run: pnpm install

- name: build
run: npm run build
run: pnpm run build

- name: test
run: npm run test
run: pnpm run test
20 changes: 20 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.idea
.cache
.github
node_modules
src
src/*
src/**
test
tests
example
examples
example-node
.babelrc
.prettierignore
.prettierrc
jest.config.ts
tsconfig.json
vitest.config.ts
vite.config.ts
.turbo
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ npm i @cher-ami/utils

## List

### [array](./src/array.ts)
### [array](src/array/array.ts)

- shuffleArray

### [dom](./src/dom.ts)
### [dom](src/dom/dom.ts)

- getCssVariable

### [env](./src/envs.ts)
### [env](src/envs/envs.ts)

- isServer
- isBrowser
Expand All @@ -36,7 +36,7 @@ npm i @cher-ami/utils
- isFirefox
- isSafari

### [math](./src/math.ts)
### [math](src/math/math.ts)

- clamp
- modulo
Expand All @@ -45,14 +45,14 @@ npm i @cher-ami/utils
- normalizeValue
- originalValueFromNormalized

### [shareUrls](./src/shareUrls.ts)
### [shareUrls](src/social/shareUrls.ts)

- facebookShareUrl
- twitterShareUrl
- facebookMessengerShareUrl
- whatsappShareUrl

### [string](./src/string.ts)
### [string](src/string/string.ts)

- mergeStrings

Expand Down
Loading