Skip to content

Commit

Permalink
ci(root): fix workflows (#261)
Browse files Browse the repository at this point in the history
* fix(lib): MazCard - fix overflow effect on closed and hoverred card

* docs(root): update README with bundlephobia badges

* test(unit): fix

* chore(root): package.json informations

* chore(root): update deps

* test(unit): fix

* ci(root): fix workflows

* ci(root): fix workflows

* docs(root): add contribute doc

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows

* ci(root): fix workflows
  • Loading branch information
LouisMazel committed May 11, 2022
1 parent 3e2ae67 commit bb1812b
Show file tree
Hide file tree
Showing 18 changed files with 1,884 additions and 1,158 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/lib-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@ jobs:
defaults:
run:
working-directory: ./packages/lib

steps:
- name: Checkout
uses: actions/checkout@master

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- uses: actions/setup-node@master
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm ci
run: make install

- name: Build Lib
run: make build
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/lib-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ jobs:
defaults:
run:
working-directory: ./packages/lib

steps:
- name: Checkout
uses: actions/checkout@master

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm ci
run: make install

- name: List rollup
run: ls node_modules

- name: Build lib
run: npm run build
run: make build
4 changes: 2 additions & 2 deletions .github/workflows/lib-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install modules
run: npm ci
run: make install

- name: Run linters
run: npm run lint
run: make lint
7 changes: 6 additions & 1 deletion .github/workflows/lib-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
working-directory: ./packages/lib

steps:
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Paris"
timezoneMacos: "Europe/Paris"

- name: Checkout Actions
uses: actions/checkout@master

Expand All @@ -36,7 +41,7 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install modules
run: npm ci
run: make install

- name: Test & Publish Code Coverage
uses: paambaati/codeclimate-action@v3.0.0
Expand Down
File renamed without changes.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ install:
install-root:
npm ci

reinstall-root:
rm -rf node_modules
npm i

install-lib:
make --directory=packages/lib install

Expand All @@ -51,7 +47,10 @@ install-testing:
make --directory=packages/testing install

reinstall:
make reinstall-root reinstall-lib reinstall-docs reinstall-testing
rm -rf node_modules
npm i
make reinstall-lib reinstall-docs reinstall-testing


reinstall-lib:
make --directory=packages/lib reinstall
Expand All @@ -65,10 +64,10 @@ reinstall-testing:
lint-staged: ## lint-staged
npm run pre-commit

lint-staged-lib: ## install lint api packages
lint-staged-lib: ## lint-staged lib
make --directory=packages/lib lint-staged

lint-staged-docs: ## install lint app packages
lint-staged-docs: ## lint-staged docs
make --directory=packages/docs lint-staged

publish-version-tag:
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# maz-ui

[![license](https://img.shields.io/github/license/LouisMazel/maz-ui.svg?style=flat-square)](https://github.com/LouisMazel/maz-ui/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dt/maz-ui.svg?style=flat-square)](https://www.npmjs.com/package/maz-ui)
[![vue 3](https://img.shields.io/badge/vue-3-42b983.svg?style=flat-square)](https://vuejs.org)
[![npm](https://img.shields.io/npm/v/maz-ui/next.svg?style=flat-square)](https://www.npmjs.com/package/maz-ui)
[![npm](https://img.shields.io/npm/dt/maz-ui.svg?style=flat-square)](https://www.npmjs.com/package/maz-ui)
[![maintainability](https://api.codeclimate.com/v1/badges/6b27047dcf150ccddfac/maintainability)](https://codeclimate.com/github/LouisMazel/maz-ui/maintainability)
[![test_coverage](https://api.codeclimate.com/v1/badges/6b27047dcf150ccddfac/test_coverage)](https://codeclimate.com/github/LouisMazel/maz-ui/test_coverage)

[![npm](https://nodei.co/npm/maz-ui.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/maz-ui)
[![bundlephobia_zip](https://badgen.net/bundlephobia/minzip/maz-ui@3.0.0-next.24)](https://bundlephobia.com/package/maz-ui@3.0.0-next.24)
[![bundlephobia_zip](https://badgen.net/bundlephobia/min/maz-ui@3.0.0-next.24)](https://bundlephobia.com/package/maz-ui@3.0.0-next.24)
[![bundlephobia_tree](https://badgen.net/bundlephobia/tree-shaking/maz-ui@3.0.0-next.24)](https://bundlephobia.com/package/maz-ui@3.0.0-next.24)
[![license](https://img.shields.io/github/license/LouisMazel/maz-ui.svg?style=flat-square)](https://github.com/LouisMazel/maz-ui/blob/master/LICENSE)

> [Maz-ui](https://louismazel.github.io/maz-ui/) is a standalone components library for [Vue.JS](https://vuejs.org) & [Nuxt.JS](https://nuxtjs.org/) (v3.x)
## Documentation & Components

[Documentation & Components](https://louismazel.github.io/maz-ui-3/)
[Documentation & Components](https://louismazel.github.io/maz-ui/)

## Install

[Getting Started](https://louismazel.github.io/maz-ui-3/guide/getting-started)
[Getting Started](https://louismazel.github.io/maz-ui/guide/getting-started)

```shell
npm install maz-ui@next
Expand All @@ -35,7 +36,7 @@ import "maz-ui/css/main.css";

### Recommanded

To optimize your bundle size, it's recommanded to use the [partial import](https://louismazel.github.io/maz-ui-3/guide/getting-started)
To optimize your bundle size, it's recommanded to use the [partial import](https://louismazel.github.io/maz-ui/guide/getting-started)

#### Global component installation (recommanded)

Expand Down Expand Up @@ -88,6 +89,10 @@ Object.entries(components).forEach(([componentName, component]) => {
});
```

## Contributing

Please follow this [documentation](./CONTRIBUTING.md)

## LICENSE

[MIT](LICENSE)
Loading

0 comments on commit bb1812b

Please sign in to comment.