Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 87f5ef0

Browse files
committed
👷 Add drone build
1 parent 48747d5 commit 87f5ef0

File tree

2 files changed

+80
-5
lines changed

2 files changed

+80
-5
lines changed

.drone.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
kind: pipeline
3+
type: docker
4+
name: layout
5+
6+
steps:
7+
- name: npm_auth
8+
image: robertstettner/drone-npm-auth
9+
settings:
10+
registry: npm.pkg.github.com
11+
token:
12+
from_secret: github_token
13+
14+
- name: build
15+
image: node:latest
16+
commands:
17+
- yarn install
18+
- yarn build
19+
20+
- name: publish
21+
image: node:latest
22+
commands:
23+
- yarn publish
24+
when:
25+
ref:
26+
- refs/tags/v*
27+
28+
- name: code-analysis
29+
image: committed/drone-sonarqube-node
30+
environment:
31+
SONAR_HOST:
32+
from_secret: sonar_host
33+
SONAR_TOKEN:
34+
from_secret: sonar_token
35+
settings:
36+
exclusions: '**/node_modules/**/*,**/dist/**/*.js'
37+
when:
38+
branch:
39+
- master
40+
event:
41+
exclude:
42+
- pull_request
43+
44+
- name: slack
45+
image: plugins/slack
46+
settings:
47+
channel: group-ci
48+
webhook:
49+
from_secret: slack_webhook
50+
template:
51+
from_secret: slack_template
52+
when:
53+
status:
54+
- failure
55+
56+
- name: announce
57+
image: plugins/slack
58+
settings:
59+
channel: group-dev
60+
webhook:
61+
from_secret: slack_webhook
62+
template: >
63+
:tada: New version ${DRONE_TAG} of `@commitd/layout` available https://github.com/commitd/layout
64+
when:
65+
ref:
66+
- refs/tags/v*
67+
status:
68+
- success

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Committed Components Layout
22

3+
[![Committed Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fcommitted.software%2Fbadge)](https://committed.io)
4+
[![Build Status](https://drone.committed.software/api/badges/commitd/layout/status.svg)](https://drone.committed.software/commitd/layout)
5+
36
This is a simple layout for standard looking material based apps, based on [Mui Layout](https://mui-treasury.com/components/layout)
47
but using `@commitd/components` as its base.
58

@@ -29,10 +32,15 @@ import { Root, Header, Nav, Content, Footer } from '@commitd/layout'
2932

3033
const App = () => (
3134
<ThemeProvider>
32-
<Root style={{ minHeight: '100vh' }} config={{
33-
// adjust behavior here!
34-
// See LayoutConfig
35-
}}>
35+
<Root
36+
style={{ minHeight: '100vh' }}
37+
config={
38+
{
39+
// adjust behavior here!
40+
// See LayoutConfig
41+
}
42+
}
43+
>
3644
<Header>Header</Header>
3745
<Nav
3846
header={
@@ -74,7 +82,6 @@ const config = {
7482
}
7583
```
7684

77-
7885
## 💻 Development
7986

8087
On first use run `yarn install` in both the root folder and the example folder.

0 commit comments

Comments
 (0)