Skip to content

Commit

Permalink
[MERGE] pull request #2 from mathix420/feat/monorepo
Browse files Browse the repository at this point in the history
feat/monorepo
  • Loading branch information
mathix420 authored Jul 13, 2021
2 parents 770c20d + 731cd28 commit bbebb72
Show file tree
Hide file tree
Showing 53 changed files with 27,142 additions and 11,354 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '15.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: cd lib; npm publish
- run: lerna bootstrap
- run: lerna run build
- run: lerna publish from-git
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release Draft
on:
push:
branches: [ master ]
tags: [ "v*" ]

jobs:
tagged-release:
Expand All @@ -12,8 +13,6 @@ jobs:
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
draft: true
draft: false
prerelease: false
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "alpha"
title: "alpha"
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
with:
node-version: 12.x
node-version: '15.x'

- run: npm i
- run: npm run build
- run: npm run test:ci
- run: lerna bootstrap
- run: lerna run test:ci

- uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: d7cc2b984737376a118b540a6aa72447f3fc6fbb705988584b33dd0c8fbcb856
with:
workingDirectory: ${{github.workspace}}/packages/vuito
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"source.fixAll": true,
},
"editor.rulers": [100],
"git.pullTags": true
"git.pullTags": true,
"git.fetchOnPull": true
}
11 changes: 11 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode
.DS_Store
coverage
dist
sw.*
.env
27 changes: 27 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# vuito-docs

## Setup

Install dependencies:

```bash
npm run install
```

## Development

```bash
npm run dev
```

## Static Generation

This will create the `dist/` directory for publishing to static hosting:

```bash
npm run generate
```

To preview the static generated app, run `npm run start`

For detailed explanation on how things work, checkout [nuxt/content](https://content.nuxtjs.org) and [@nuxt/content theme docs](https://content.nuxtjs.org/themes-docs).
27 changes: 27 additions & 0 deletions docs/content/en/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Introduction
description: ''
position: 1
category: ''
features:
- Feature 1
- Feature 2
- Feature 3
---

<img src="/preview.png" class="light-img" width="1280" height="640" alt=""/>
<img src="/preview-dark.png" class="dark-img" width="1280" height="640" alt=""/>

[Module]() for [NuxtJS](https://nuxtjs.org).

<alert type="success">

Your documentation has been created successfully!

</alert>

## Features

<list :items="features"></list>

<p class="flex items-center">Enjoy light and dark mode:&nbsp;<app-color-switcher class="inline-flex ml-2"></app-color-switcher></p>
42 changes: 42 additions & 0 deletions docs/content/en/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: Setup
description: ''
position: 2
category: Guide
---

Check the [Nuxt.js documentation](https://nuxtjs.org/guides/configuration-glossary/configuration-modules) for more information about installing and using modules in Nuxt.js.

## Installation

Add `@nuxtjs/xxx` dependency to your project:

<code-group>
<code-block label="Yarn" active>

```bash
yarn add @nuxtjs/xxx
```

</code-block>
<code-block label="NPM">

```bash
npm install @nuxtjs/xxx
```

</code-block>
</code-group>

Then, add `@nuxtjs/xxx` to the `modules` section of `nuxt.config.js`:

```js[nuxt.config.js]
{
modules: [
'@nuxtjs/xxx'
],
xxx: {
// Options
}
}
```
10 changes: 10 additions & 0 deletions docs/content/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "Vuito",
"url": "https://vuito.vercel.app/",
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg"
},
"github": "mathix420/vuito",
"twitter": "@W110100100"
}
7 changes: 7 additions & 0 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import theme from '@nuxt/content-theme-docs';

export default theme({
docs: {
primaryColor: '#00cd81',
},
});
Loading

0 comments on commit bbebb72

Please sign in to comment.