Skip to content

Commit 7e5b6d5

Browse files
author
Vic Shóstak
committed
Add size-limit by @ai
1 parent d131653 commit 7e5b6d5

Some content is hidden

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

43 files changed

+552
-587
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"firefox": 50,
1111
"esmodules": true
1212
},
13-
"corejs": "3.0.0",
13+
"corejs": "3.0.1",
1414
"useBuiltIns": "entry"
1515
}
1616
]

.gitignore

Lines changed: 5 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,10 @@
1-
### JetBrains template
2-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
3-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
1+
.DS_Store
2+
*~
43

5-
# User-specific stuff:
6-
.idea/
7-
8-
# CMake
9-
cmake-build-debug/
10-
11-
## File-based project format:
12-
*.iws
13-
14-
## Plugin-specific files:
15-
16-
# IntelliJ
17-
out/
18-
19-
# mpeltonen/sbt-idea plugin
20-
.idea_modules/
21-
22-
# JIRA plugin
23-
atlassian-ide-plugin.xml
24-
25-
# Crashlytics plugin (for Android Studio and IntelliJ)
26-
com_crashlytics_export_strings.xml
27-
crashlytics.properties
28-
crashlytics-build.properties
29-
fabric.properties
30-
31-
### Node template
32-
# Logs
33-
logs
34-
*.log
35-
npm-debug.log*
36-
yarn-debug.log*
37-
yarn-error.log*
38-
39-
# Runtime data
40-
pids
41-
*.pid
42-
*.seed
43-
*.pid.lock
44-
45-
# Directory for instrumented libs generated by jscoverage/JSCover
46-
lib-cov
47-
48-
# Coverage directory used by tools like istanbul
49-
coverage
50-
51-
# nyc test coverage
52-
.nyc_output
53-
54-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
55-
.grunt
56-
57-
# Bower dependency directory (https://bower.io/)
58-
bower_components
59-
60-
# node-waf configuration
61-
.lock-wscript
62-
63-
# Compiled binary addons (https://nodejs.org/api/addons.html)
64-
build/Release
65-
66-
# Dependency directories
674
node_modules/
685
src/docs/node_modules/
69-
jspm_packages/
70-
71-
# Typescript v1 declaration files
72-
typings/
73-
74-
# Optional npm cache directory
75-
.npm
76-
77-
# Optional eslint cache
78-
.eslintcache
79-
80-
# Optional REPL history
81-
.node_repl_history
82-
83-
# Output of 'npm pack'
84-
*.tgz
85-
86-
# Yarn Integrity file
87-
.yarn-integrity
88-
89-
# dotenv environment variables file
90-
.env
6+
npm-debug.log
7+
yarn-error.log
918

92-
###GitBook
93-
# Generated book
949
src/docs/_book/
10+
coverage/

.prettierignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
.idea/
21
.github/
32
.editorconfig
43
.gitignore
54
.prettierignore
6-
package-lock.json
75
goodshare.min.js
8-
goodshare.polyfill.min.js
96
docs/
10-
**/*.html
117
*.md

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
### Features
1111

12-
Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size **~36 KB** (or GZip **4.1 KB**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**.
12+
Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size **~36 KB** (or GZip **2.56 KB**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**.
1313

1414
### Full Documentation & Demos
1515

@@ -122,16 +122,11 @@ window._goodshare.setShareCallback(function() {
122122
```console
123123
foo@bar:~$ npm run size
124124

125-
✨ Built in 362ms.
126-
127-
dist/goodshare.js.map 137.98 KB 35ms
128-
dist/goodshare.js 89.42 KB 118ms
129-
130125
Time limit: 250 ms
131126
Package size: 2.56 KB with all dependencies, minified and gzipped
132127
Loading time: 52 ms on slow 3G
133-
Running time: 190 ms on Snapdragon 410
134-
Total time: 241 ms
128+
Running time: 165 ms on Snapdragon 410
129+
Total time: 216 ms
135130
```
136131

137132
_Thanks to Andrey Sitnik [@ai/size-limit](https://github.com/ai/size-limit)._
@@ -145,7 +140,7 @@ _Thanks to Andrey Sitnik [@ai/size-limit](https://github.com/ai/size-limit)._
145140
- **No need to separated polyfills.** Since `6.0.2`, `goodshare.js` drop `./goodshare.polyfill.min.js` and separated [Array Polyfill](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from?v=control#Polyfill) from `./src/polyfills`.
146141
- **Browser support (2019).** Since `6.0.3`, `goodshare.js` only support: MSIE 11+, Edge 13+, Google Chrome 59+ and FireFox 50+.
147142
- **Add/Switch/Delete.** Since `6.1.0`, `goodshare.js` added Flipboard and WeChat; switch StumbleUpon to Mix; deleted GooglePlus.
148-
- **Add Size limit.** Since `6.1.2`, `goodshare.js` pushed to master only if limit `250 ms` is passed. And switched to [Parcel](https://github.com/parcel-bundler/parcel) bundler.
143+
- **Add Size limit.** Since `6.1.2`, `goodshare.js` pushed to master only if limit `250 ms` is passed.
149144

150145
### Author & maintainers
151146

0 commit comments

Comments
 (0)