Skip to content

Commit

Permalink
Merge pull request #14 from Orbis25/feature/publish-library
Browse files Browse the repository at this point in the history
Feature/publish library
  • Loading branch information
Orbis25 committed Dec 21, 2021
2 parents e55bbe3 + bad56d7 commit 5e8a438
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 37 deletions.
1 change: 1 addition & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
node-version: "14"
- run: npm install
- run: npm test
- run: tsc
- uses: dorny/test-reporter@v1.5.0
if: success() || failure()
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
node-version: "14"
- run: npm install
- run: npm test
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- uses: dorny/test-reporter@v1.5.0
if: success() || failure()
with:
name: JEST Tests
path: reports/jest-*.xml
reporter: jest-junit
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- run: npm build
- run: tsc
- run: npm publish
32 changes: 0 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ This library is an implementation of the firebase repository pattern and some he
- [Contribution](#contribution)
- [Branches](#branches)
- [Report an issuer](#report-an-issuer)
- [Notes](#notes)

## Installation

Expand Down Expand Up @@ -130,34 +129,3 @@ Remember usage this structure:
### Report an issuer

If you have an issue or a problem with the library you can report it in the [issues](https://github.com/Orbis25/fire-repo/issues)

## Notes

In react app you need create the next file:

- `webpack.config.js`

```js
const path = require("path");

module.exports = {
entry: "./src/app.js",
output: {
path: path.join(__dirname, "public"),
filename: "bundle.js",
},
module: {
rules: [
{
loader: "babel-loader",
test: /\.js$|jsx/,
exclude: /node_modules/,
},
],
},
devtool: "cheap-module-eval-source-map",
devServer: {
contentBase: path.join(__dirname, "public"),
},
};
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fire-repo",
"version": "1.1.5",
"version": "1.1.7",
"description": "This package is create to add repository pattern to firebase and implementing a helpers for help developers to write fast code.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 5e8a438

Please sign in to comment.