Skip to content

Commit

Permalink
Merge pull request #130 from MacPaw/feat/add-modal-launcher
Browse files Browse the repository at this point in the history
feat: 🎨 move modal launcher component to ui kit
  • Loading branch information
VoloshchenkoAl authored Jun 19, 2023
2 parents 4788d25 + ca8cfdf commit fe1470c
Show file tree
Hide file tree
Showing 16 changed files with 12,131 additions and 5,048 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ jobs:
- name: Run typescript compile
run: yarn tsc --noEmit

test:
name: Test
runs-on: ubuntu-latest
needs: [install]
continue-on-error: false
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ui-kit-artifact

- name: Unpack artifact
run: tar xf artifact.tar.gz

- name: Run typescript compile
run: npm run test

build:
name: Build
runs-on: ubuntu-latest
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ npm install --save @macpaw/macpaw-ui
or with yarn:

```bash
yarn add @macpaw/macpaw-ui
yarn add @macpaw/macpaw-ui
```

And import stylesheets manually:

```jsx
import '@macpaw/macpaw-ui/lib/ui.css'
import '@macpaw/macpaw-ui/lib/ui.css';
```

## Adding new Component

- Add Component's JSX and styles to [src/%ComponentName%](/src) directory
Expand All @@ -41,9 +42,9 @@ import '@macpaw/macpaw-ui/lib/ui.css'
Package published with Github Actions:

- Update version in [package.json](package.json) file
- `npm run version:patch` - for patch update e.g. X.X.*1*
- `npm run version:minor` - for minor update e.g. X.*1*.0
- `npm run version:major` - for minor update e.g. *1*.0.0
- `npm run version:patch` - for patch update e.g. X.X._1_
- `npm run version:minor` - for minor update e.g. X._1_.0
- `npm run version:major` - for minor update e.g. _1_.0.0
- Create new release at Github

## Host
Expand Down
1 change: 1 addition & 0 deletions internal/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const pages = [
'table',
'tooltip',
'typography',
'modal-launcher',
];

const Navigation = () => (
Expand Down
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
testEnvironment: 'jsdom',
clearMocks: true,
moduleDirectories: ['node_modules'],
testPathIgnorePatterns: ['node_modules', './lib'],
transform: {
'^.+\\.(ts|tsx)$': '@swc/jest',
},
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts'],
};
Loading

0 comments on commit fe1470c

Please sign in to comment.