Skip to content

Commit 9dad5e4

Browse files
authored
Merge pull request #25 from dapilab/new-demo
New demo
2 parents eb03ec0 + 8ae89f2 commit 9dad5e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5736
-2841
lines changed

.babelrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
dist/
2-
demo/dist
2+
demo/dist
3+
webpack/
4+
jest.config.js
5+
.eslintrc.js

.eslintrc

Lines changed: 0 additions & 75 deletions
This file was deleted.

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
],
7+
extends: [
8+
'eslint:recommended',
9+
"plugin:react/recommended",
10+
'plugin:@typescript-eslint/recommended',
11+
],
12+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ coverage
1313
node_modules/
1414

1515
dist/
16+
demo/dist/
1617

1718
report.*.json

.npmignore

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ CHANGELOG.md
1111
src/
1212
demo/
1313
test/
14+
Makefile
15+
README.md
16+
rollup.config.js
17+
jest.config.js
18+
tsconfig.json
19+
.github/
20+
webpack/
21+
tailwind.config.js
1422

1523
// setting files
1624
.babelrc
1725
.travis.yml
18-
.eslintrc
26+
.eslintrc.js
1927
.eslintignore
2028
.travis.yml
2129
.versionrc.json
22-
23-
Makefile
24-
README.md
25-
rollup.config.js
26-
jest.config.js
27-
tsconfig.json
28-
.github/

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lint-fix:
99
@npx eslint --fix .
1010
dev:
1111
@echo "Start server..."
12-
@NODE_ENV=development npx rollup -c ./demo/rollup.config.js -w
12+
@NODE_ENV=development npx webpack-dev-server --config ./webpack/demo.js --progress
1313
.PHONY: lint lint-fix dev
1414

1515
# Test
@@ -22,13 +22,13 @@ test: lint-fix
2222
build:
2323
@echo "Building lib..."
2424
@rm -rf ./dist
25-
@npx rollup -c rollup.config.js
25+
@npx webpack --config ./webpack/production.js --progress --bail
2626
@echo "Copy type into dist..."
2727
@cp src/types.ts dist/index.d.ts
2828
build-demo:
2929
@echo "Building demo..."
3030
@rm -rf ./demo/dist
31-
@NODE_ENV=production npx rollup -c ./demo/rollup.config.js
31+
@NODE_ENV=production npx webpack --config ./webpack/demo.js --progress --bail
3232
release:
3333
@echo "Release $(level)"
3434
@echo "Adding tag and modify the CHANGELOG"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ The options can be passed into genConfig or as React props
8080
| `shirtStyle` | string | | hoody, short, polo | |
8181
| `shirtColor` | string | | | |
8282
| `bgColor` | string | | | |
83+
| `isGradient` | boolean | false | | |
8384

8485
## Development
8586

demo/index.html renamed to demo/app.template.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,30 @@
1111
content="A fun, vibrant, and inclusive avatars library for React!"
1212
/>
1313
<meta property="og:type" content="website" />
14-
<meta property="og:url" content="https://nice-avatar.chilllab.io/" />
14+
<meta property="og:url" content="https://nice-avatar.dapiok.io/" />
1515
<meta property="og:title" content="react-nice-avatar" />
1616
<meta
1717
property="og:description"
1818
content="A fun, vibrant, and inclusive avatars library for React!"
1919
/>
2020
<meta property="og:image" content="/static/react-nice-avatar.png" />
2121
<meta property="twitter:card" content="summary_large_image" />
22-
<meta property="twitter:url" content="https://nice-avatar.chilllab.io/" />
22+
<meta property="twitter:url" content="https://nice-avatar.dapiok.io/" />
2323
<meta property="twitter:title" content="react-nice-avatar" />
2424
<meta
2525
property="twitter:description"
2626
content="A fun, vibrant, and inclusive avatars library for React!"
2727
/>
2828
<meta property="twitter:image" content="/static/react-nice-avatar.png" />
2929

30-
<link href="/dist/index.css" type="text/css" rel="stylesheet" />
31-
3230
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" />
3331
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png" />
3432
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png" />
35-
<link rel="manifest" href="/static/site.webmanifest" />
3633
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5" />
3734
<meta name="msapplication-TileColor" content="#da532c" />
3835
<meta name="theme-color" content="#ffffff" />
3936
</head>
4037
<body>
4138
<div id="app"></div>
42-
<script src="/dist/index.js"></script>
4339
</body>
4440
</html>
767 KB
Binary file not shown.

0 commit comments

Comments
 (0)