Skip to content

Commit

Permalink
Cleanup update (#1)
Browse files Browse the repository at this point in the history
* Quite big update

* Add new lines at the end of some files and remove entries from .npmignore

* Add github publish workflow

* Remove eslint-config-prettier
  • Loading branch information
Mrowa96 authored Feb 22, 2020
1 parent bd64c4f commit f670ff5
Show file tree
Hide file tree
Showing 22 changed files with 6,649 additions and 7,396 deletions.
5 changes: 2 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
src/*
tests/*
dist/*
dist/*
coverage/*
14 changes: 1 addition & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
module.exports = {
extends: ['airbnb-base', 'plugin:prettier/recommended', 'prettier', 'prettier/standard'],
plugins: ['prettier'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'import/no-extraneous-dependencies': 'off',
},
env: {
browser: false,
node: true,
},
extends: ['@mrowa96/eslint-config-react'],
};
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto eol=lf
* text=auto eol=lf
23 changes: 23 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: publish-to-npm

on:
release:
types: [published]

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
- run: npm run prettier
- run: npm run test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Directories
.vscode
node_modules
coverage
dist
Expand Down
6 changes: 2 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
.vscode
.github
coverage
src
tests
.browserslistrc
.eslintignore
.eslintrc.js
.gitattributes
.gitignore
babel.config.js
jest.config.js
prettier.config.js
tsconfig.json
tslint.json
webpack.config.js
webpack.config.js
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

19 changes: 0 additions & 19 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit f670ff5

Please sign in to comment.