Skip to content

Commit 59f025c

Browse files
author
Graham Butler
committed
Initial setup
1 parent 8cd1999 commit 59f025c

30 files changed

+9082
-1104
lines changed

.drone.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
kind: pipeline
2+
name: release
3+
4+
steps:
5+
- name: autotag
6+
image: node
7+
environment:
8+
GIT_USER:
9+
from_secret: GITHUB_USERNAME
10+
GIT_SECRET:
11+
from_secret: GITHUB_KEY
12+
commands:
13+
- npm install -g @author.io/cicd-autotag
14+
- autotag
15+
when:
16+
event:
17+
- push
18+
- name: tag_notification
19+
image: plugins/slack
20+
settings:
21+
webhook:
22+
from_secret: SLACK_WEBHOOK
23+
channel: releases
24+
icon_url: https://avatars0.githubusercontent.com/u/46585558?s=32
25+
template: >
26+
<author-{{repo.name}}> autotag on {{build.event}} to {{repo.owner}}/{{repo.name}} failed ({{build.tag}}). See {{build.link}} for details.
27+
icon_emoji: warning
28+
when:
29+
status: [ failure ]
30+
event:
31+
- push
32+
- name: build
33+
image: node
34+
commands:
35+
- npm install
36+
- npm run build
37+
when:
38+
event:
39+
- tag
40+
- name: github_release
41+
image: plugins/github-release
42+
settings:
43+
api_key:
44+
from_secret: GITHUB_TOKEN
45+
files: dist/**/*
46+
when:
47+
event:
48+
- tag
49+
- name: npm_release
50+
image: plugins/npm
51+
settings:
52+
username:
53+
from_secret: NPM_USERNAME
54+
password:
55+
from_secret: NPM_PASSWORD
56+
email:
57+
from_secret: NPM_EMAIL
58+
registry: "https://registry.npmjs.org"
59+
when:
60+
event:
61+
- tag
62+
- name: release_notification
63+
image: plugins/slack
64+
settings:
65+
webhook:
66+
from_secret: SLACK_WEBHOOK
67+
channel: releases
68+
icon_url: https://avatars0.githubusercontent.com/u/46585558?s=32
69+
template: >
70+
<author-{{repo.name}}> {{build.tag}} (build {{build.number}}) {{#success build.status}}released{{else}}failed{{/success}}.
71+
{{build.link}}
72+
73+
{{#success build.status}}
74+
Availability:
75+
- CDN: https://cdn.author.io/{{repo.owner}}/{{repo.name}}/{{build.tag}}/author-{{repo.name}}.js
76+
- npm: `npm install @author.io/element-{{repo.name}}@{{build.tag}}`
77+
- Release: https://github.com/{{repo.owner}}/{{repo.name}}/releases/tag/{{build.tag}}
78+
{{/success}}
79+
when:
80+
event:
81+
- tag

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.*
2+
_*
3+
dist
4+
!.gitignore
5+
!.npmignore
6+
!.travis.yml
7+
!.drone.yml
8+
node_modules
9+
env.json
10+
*.log

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Author.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
1-
# select
2-
author-select element
1+
# AuthorSelectElement [![](https://data.jsdelivr.com/v1/package/npm/@author.io/element-select/badge)](https://www.jsdelivr.com/package/npm/@author.io/element-select?path=dist) [![Build Status](https://travis-ci.org/author-elements/select.svg?branch=master&style=for-the-badge)](https://travis-ci.org/author-elements/select)
2+
3+
<!-- TODO: Add description -->
4+
5+
![Source Size](https://img.shields.io/github/size/author-elements/select/src/element.js.svg?colorB=%23333333&label=Source&logo=JavaScript&logoColor=%23aaaaaa&style=for-the-badge) ![Deliverable Size](https://img.shields.io/bundlephobia/minzip/@author.io/element-select.svg?colorB=%23333333&label=Minified-Gzipped&logo=JavaScript&style=for-the-badge) ![npm](https://img.shields.io/npm/v/@author.io/element-select.svg?colorB=%23333&label=%40author.io%2Felement-select&logo=npm&style=for-the-badge)
6+
7+
We're using BrowserStack to make sure these components work on the browsers developers care about.
8+
9+
<a href="https://browserstack.com"><img src="https://github.com/author-elements/select/raw/master/browserstack.png" height="30px"/></a>
10+
11+
## Usage
12+
13+
There are 4 versions of this element:
14+
15+
1. *author-select.min.js* (ES6 Minified for Production)
16+
1. _author-select.js_ (ES6 Unminified for Debugging)
17+
1. *author-select.es5.min.js* (ES5 Minified for Production)
18+
1. _author-select.es5.js_ (ES5 Unminified for Debugging)
19+
20+
Each version has it's own source map, so it's always possible to trace activity back to a specific code block in the source.
21+
22+
You only need to choose one of these files. If you need to support Internet Explorer, older versions of Chrome/Firefox/Safari, then you likely need the ES5 version.
23+
24+
*Via Global CDN*
25+
26+
```html
27+
<html>
28+
<head>
29+
<script src="https://cdn.author.io/author-elements/base/1.0.0/author-base.min.js"></script>
30+
<script src="https://cdn.author.io/author-elements/select/x.x.x/author-select.min.js"></script>
31+
</head>
32+
</html>
33+
```
34+
35+
*Via npm*
36+
37+
If the [base class](https://github.com/author-elements/base) is not yet installed, install it:
38+
39+
`npm install @author.io/element-base -S`
40+
41+
Next, install the select module locally:
42+
43+
`npm install @author.io/element-select -S`
44+
45+
Then include them in your HTML:
46+
47+
```html
48+
<html>
49+
<head>
50+
<script src="./node_modules/@author.io/element-base/dist/author-base.min.js"></script>
51+
<script src="./node_modules/@author.io/element-select/dist/author-select.min.js"></script>
52+
</head>
53+
54+
<body>
55+
56+
</body>
57+
</html>
58+
```

author-optgroup-label/styles.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

author-optgroup-label/tag.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

author-optgroup-label/template.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

author-optgroup/styles.css

Lines changed: 0 additions & 12 deletions
This file was deleted.

author-optgroup/tag.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

author-optgroup/template.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)