Skip to content

Commit

Permalink
fix: refactors and security updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoborges committed Jan 23, 2023
1 parent c16559e commit 38117d8
Show file tree
Hide file tree
Showing 27 changed files with 27,891 additions and 52,371 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"es6": true
},
"extends": [
"airbnb",
"airbnb-typescript"
],
"globals": {
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1

- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
node-version: 16

- run: npm ci

- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion example/.eslintcache

This file was deleted.

19 changes: 19 additions & 0 deletions example/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import bemfy, { c } from '../src/bemfy';

export default function Component() {
const b = bemfy('custom-button');

return (
<div className={b('wrapper')}>
<div className={b('text', 'white')}>The lazy cat jumps over dizzy fox</div>
<button
type="button"
className={b('button', 'primary', 'independent-class', c({ 'not-render': false, 'will-render': true }))}
>
Jump!

</button>
</div>
);
}
5 changes: 0 additions & 5 deletions example/README.md

This file was deleted.

22 changes: 22 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<title>bemfy</title>
</head>

<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>

<div id="root"></div>

<script type="module" src="./index.tsx"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions example/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
Loading

0 comments on commit 38117d8

Please sign in to comment.