Skip to content

Commit

Permalink
release: published version v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanesantossilva committed Nov 8, 2022
1 parent ecc92a6 commit 08956ad
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# v1.0.0 (YYYY-MM-DD)
# v1.0.0 (2022-11-08)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ yarn add react react-dom
### Installation

```shell
yarn add @duck/react-block
yarn add @theonlyducks/react-block
```

### Usage

#### Example

```jsx
import '@duck/react-block/style.css';
import { BlockDuck } from "@duck/react-block";
import '@theonlyducks/react-block/dist/style.css';
import { BlockDuck } from "@theonlyducks/react-block";

<BlockDuck blocking={true} >
Hi!
Expand Down
4 changes: 2 additions & 2 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1667854582354" clover="3.2.0">
<project timestamp="1667854582354" name="All files">
<coverage generated="1667917728880" clover="3.2.0">
<project timestamp="1667917728880" name="All files">
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
</project>
</coverage>
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2022-11-07T20:56:22.350Z
at 2022-11-08T14:28:48.876Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "@duck/react-block",
"name": "@theonlyducks/react-block",
"title": "React Block",
"version": "0.0.1",
"version": "1.0.0",
"private": false,
"description": "Simple load integration blocking the UI",
"author": "Giovane Santos <giovanesantos1999@gmail.com>",
"license": "MIT",
"main": "dist/blockduck.js",
"styles": "dist/style.css",
"types": "index.d.ts",
"types": "types/index.d.ts",
"scripts": {
"coveralls": "coveralls < ./coverage/lcov.info",
"test": "jest",
"test:coverage": "jest --coverage",
"release": "yarn test && ./scripts/release.sh",
"publish": "yarn test && ./scripts/publish.sh",
"publish-npm": "yarn test && ./scripts/publish.sh",
"build": "webpack --progress --config webpack.prod.config.js",
"start": "webpack serve --progress --config webpack.dev.config.js"
},
Expand All @@ -33,7 +33,7 @@
"README.md",
"CHANGELOG.md",
"dist",
"src/BlockDuck/index.d.ts"
"types/index.d.ts"
],
"keywords": [
"theonlyducks",
Expand Down
6 changes: 4 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env bash
#!/bin/bash

set -e

PROJECT_VERSION="$(node -p -e "require('./package.json').version")"
CURRENT_BRANCH="$(git symbolic-ref --short -q HEAD)"

echo "$PROJECT_VERSION"
echo "[~Publish] v$PROJECT_VERSION"

rm -rf dist

_success() {
echo -e "\033[00;32m[~Publish] => $1\033[00;0m"
Expand Down
11 changes: 0 additions & 11 deletions src/BlockDuck/index.d.ts

This file was deleted.

14 changes: 14 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';

export type BlockDuckProps = React.HTMLAttributes<HTMLElement> & {
tag?: string
children?: any,
loader?: React.ReactNode | string,
message?: React.ReactNode | string,
blocking?: boolean,
className?: string
}

declare class BlockDuck extends React.Component<BlockDuckProps> { }

export { BlockDuck };

0 comments on commit 08956ad

Please sign in to comment.