>download boilerplate web app
>it has 120 dependencies totaling 350 MB
Download boilerplate web app
Other urls found in this thread:
npmjs.com
npmjs.com
twitter.com
Webpack has something called tree shaking, a production build will end up being much smaller because there's a lot of code that can be removed, not to mention minification and not having development versions of libraries.
What the fuck I don't even know what half this shit does
"dependencies": {
"babel-polyfill": "6.26.0",
"chalk": "2.4.1",
"compression": "1.7.2",
"cross-env": "5.2.0",
"express": "4.16.3",
"fontfaceobserver": "2.0.13",
"history": "4.7.2",
"hoist-non-react-statics": "2.5.5",
"immutable": "3.8.2",
"intl": "1.2.5",
"invariant": "2.2.4",
"ip": "1.1.5",
"lodash": "4.17.10",
"minimist": "1.2.0",
"prop-types": "15.6.1",
"react": "16.4.1",
"react-dom": "16.4.1",
"react-helmet": "5.2.0",
"react-intl": "2.4.0",
"react-loadable": "5.4.0",
"react-redux": "5.0.7",
"react-router-dom": "4.3.1",
"react-router-redux": "5.0.0-alpha.9",
"redux": "4.0.0",
"redux-immutable": "4.0.0",
"redux-saga": "0.16.0",
"reselect": "3.0.1",
"sanitize.css": "4.1.0",
"styled-components": "3.3.2",
"warning": "4.0.1",
"whatwg-fetch": "2.0.4"
}
maybe you should stop using node js then
Wow I just downloaded Linux and it's hundreds of megabytes. I don't even know what 90% of this shit does.
>why is this web dev shit bloated a fuck
said no one but you apparently.. have you used the internet anytime in the last 20 years? webdev is fucking cancer and you know this pajeet.
weekly download 1,223,307
npmjs.com
LMOA
>Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your and support.
lmao don't forget to like and subscribe
the absolute state of node
>1 dependency: is-number
thought this was debunked
Holy shit that dude has 828 repos and it looks like most of them consist of one tiny helper methods like that
Here's another random one that takes the last element from an array lmao 5M downloads
npmjs.com
>those evil chink eyes
current trend:
import libraries to solve any simple problems
>node
I wrote my web app in golang and only use two non-standard libraries.
/*!
* is-odd
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
const isNumber = require('is-number');
module.exports = function isOdd(value) {
const n = Math.abs(value);
if (!isNumber(n)) {
throw new TypeError('expected a number');
}
if (!Number.isInteger(n)) {
throw new Error('expected an integer');
}
if (!Number.isSafeInteger(n)) {
throw new Error('value exceeds maximum safe integer');
}
return (n % 2) === 1;
};
wow, so this is the power of node
no wait we need to go deeper
/*!
* is-number
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
module.exports = function(num) {
if (typeof num === 'number') {
return num - num === 0;
}
if (typeof num === 'string' && num.trim() !== '') {
return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
}
return false;
};
{
"name": "is-number",
"description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.",
"version": "7.0.0",
"homepage": "github.com
"author": "Jon Schlinkert (github.com
"contributors": [
"Jon Schlinkert (twitter.com
"Olsten Larck (i.am.charlike.online)",
"Rouven Weßling (www.rouvenwessling.de)"
],
"repository": "jonschlinkert/is-number",
"bugs": {
"url": "github.com
},
"license": "MIT",
"files": [
"index.js"
],
"main": "index.js",
"engines": {
"node": ">=0.12.0"
},
"scripts": {
"test": "mocha"
},
"devDependencies": {
"ansi": "^0.3.1",
"benchmark": "^2.1.4",
"gulp-format-md": "^1.0.0",
"mocha": "^3.5.3"
},
"keywords": [
"cast",
"check",
"coerce",
"coercion",
"finite",
"integer",
"is",
"isnan",
"is-nan",
"is-num",
"is-number",
"isnumber",
"isfinite",
"istype",
"kind",
"math",
"nan",
"num",
"number",
"numeric",
"parseFloat",
"parseInt",
"test",
"type",
"typeof",
"value"
],
"verb": {
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"related": {
"list": [
"is-plain-object",
"is-primitive",
"isobject",
"kind-of"
]
},
"plugins": [
"gulp-format-md"
],
"lint": {
"reflinks": true
}
}
}
>return num - num === 0;
kek
You forgot, the rest of the code
- gulpfile
- Continuous integration configuration
- unit tests
- eslint