Skip to content

Commit

Permalink
chore: rename master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Limon Monte committed Apr 26, 2022
1 parent 0771cc6 commit 97dee29
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 384 deletions.
11 changes: 0 additions & 11 deletions .editorconfig

This file was deleted.

34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand All @@ -12,22 +12,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Install npm dependencies
run: yarn install
- name: Install npm dependencies
run: yarn install

- name: Lint
run: yarn lint
- name: Lint
run: yarn lint

- name: Run automated release process with semantic-release
if: github.event_name == 'push'
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run automated release process with semantic-release
if: github.event_name == 'push'
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
45 changes: 20 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# @sweetalert2/themes - Official Themes for [SweetAlert2](https://github.com/sweetalert2/sweetalert2)

[![npm version](https://img.shields.io/npm/v/@sweetalert2/themes.svg)](https://www.npmjs.com/package/@sweetalert2/themes)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/sweetalert2/sweetalert2-themes/blob/master/CHANGELOG.md)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/sweetalert2/sweetalert2-themes/blob/main/CHANGELOG.md)

## Available themes

Available themes
-----------------
- [`Dark`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/dark)
- [`Minimal`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/minimal)
- [`Borderless`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/borderless)
- [`Bootstrap 4`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/bootstrap-4)
- [`Material UI`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/material-ui)
- [`WordPress Admin`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/wordpress-admin)
- [`Bulma`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/bulma)
- [`Default`](https://github.com/sweetalert2/sweetalert2-themes/tree/main/default)

- [`Dark`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/dark)
- [`Minimal`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/minimal)
- [`Borderless`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/borderless)
- [`Bootstrap 4`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/bootstrap-4)
- [`Material UI`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/material-ui)
- [`WordPress Admin`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/wordpress-admin)
- [`Bulma`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/bulma)
- [`Default`](https://github.com/sweetalert2/sweetalert2-themes/tree/master/default)

Installation
------------
## Installation

You can install all themes at once:

Expand All @@ -34,36 +31,36 @@ npm install --save sweetalert2 @sweetalert2/theme-dark
Or grab them both from [jsdelivr CDN](https://cdn.jsdelivr.net/npm/@sweetalert2/themes), for example:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@5/dark.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@5/dark.css" />
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.js"></script>
```

Usage
-----
## Usage

With CSS:

```html
<!-- Include a required theme -->
<link rel="stylesheet" href="@sweetalert2/themes/dark/dark.css">
<link rel="stylesheet" href="@sweetalert2/themes/dark/dark.css" />

<script src="sweetalert2/dist/sweetalert2.min.js"></script>
```

With SASS:

`your-app.js`:

```js
import Swal from 'sweetalert2/dist/sweetalert2.js'
import Swal from 'sweetalert2/dist/sweetalert2.js';
```

`your-app.scss`:

```scss
@import 'sweetalert2/themes/dark/dark.scss';
```

Contributing
------------
## Contributing

If you would like to contribute enhancements or fixes, please do the following:

Expand All @@ -77,9 +74,7 @@ If you would like to contribute enhancements or fixes, please do the following:

5. Or, if you want to quickly start a new theme, run `npm run create-new-theme my-awesome-theme`. This will automatically start the server after creating the theme's default files. If you interrupt the server and want to restart it, use `npm run start -- --theme <theme-name>` or `yarn start --theme <theme-name>`


Donations
---------
## Donations

Has SweetAlert2 helped you create an amazing application? You can show your support by making a donation:

Expand All @@ -90,4 +85,4 @@ Has SweetAlert2 helped you create an amazing application? You can show your supp
- Bitcoin Cash: `qqxs402qszgwuue00gwxw996lzhpa8up2unqm0y46g`
- Stellar: `GBRS5KGFJO4OBUGW3TRQBIVXTM5YDS53DOSHGA3LKVE2YXKVKNVDONBP`

### [Hall of Donators :trophy:](https://github.com/sweetalert2/sweetalert2/blob/master/DONATIONS.md)
### [Hall of Donators :trophy:](https://github.com/sweetalert2/sweetalert2/blob/main/DONATIONS.md)
18 changes: 8 additions & 10 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
module.exports = {
debug: true,
branch: 'master',
branches: ['main'],
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/github',
],
prepare: [
{
'path': '@semantic-release/exec',
'cmd': 'VERSION=${nextRelease.version} npm run build'
path: '@semantic-release/exec',
cmd: 'VERSION=${nextRelease.version} npm run build',
},
{
'path': '@semantic-release/exec',
'cmd': 'VERSION=${nextRelease.version} node tools/publish-all-themes'
path: '@semantic-release/exec',
cmd: 'VERSION=${nextRelease.version} node tools/publish-all-themes',
},
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
],
publish: [
'@semantic-release/npm',
'@semantic-release/github',
'@semantic-release/github'
],
success: [
'@semantic-release/github',
]
}
success: ['@semantic-release/github'],
};
Loading

0 comments on commit 97dee29

Please sign in to comment.