this post was submitted on 24 Sep 2023
7 points (100.0% liked)

Dev

286 readers
2 users here now

Um lugar legal para debater e conversar sobre programação e desenvolvimento de software no Brasilsilsilsil

Seja um bom programador, e leia a documentação oficial da comunidade no post fixado.

Obrigado, e divirta-se!


Geral

Regras

Wiki do c/Linux

Megathread do c/Dev

Relacionado

c/Python

Chat

founded 1 year ago
MODERATORS
 

Agora a pouco eu estava mexendo no meu projeto em Ruby on Rails, e acabei encontrando essa pasta, lá dentro tá cheio de dependência de javascript. A usa coisa que instalei relacionada ao node foi o bootstrap.

Deletei a pasta, e aparentemente tá tudo funcionando normalmente

Tem coisa pra caramba aí, algumas até faziam sentido, mas o resto... por quê tem coisa relacionada ao electron aí?

Só essa pasta tem 104,1 MB de tamanho!

$ ls -1
accepts
acorn
aggregate-error
ajv
ajv-errors
ajv-keywords
alphanum-sort
@ampproject
ansi-colors
ansi-html-community
ansi-regex
ansi-styles
anymatch
aproba
argparse
array-buffer-byte-length
arraybuffer.prototype.slice
array-flatten
array.prototype.reduce
array-union
array-uniq
array-unique
arr-diff
arr-flatten
arr-union
asn1.js
assert
assign-symbols
async
async-each
async-limiter
atob
autoprefixer
available-typed-arrays
@babel
babel-loader
babel-plugin-dynamic-import-node
babel-plugin-macros
babel-plugin-polyfill-corejs2
babel-plugin-polyfill-corejs3
babel-plugin-polyfill-regenerator
balanced-match
base
base64-js
batch
big.js
binary-extensions
bluebird
bn.js
body-parser
bonjour
boolbase
bootstrap
brace-expansion
braces
brorand
browserify-aes
browserify-cipher
browserify-des
browserify-rsa
browserify-sign
browserify-zlib
browserslist
buffer
buffer-from
buffer-indexof
buffer-xor
builtin-status-codes
bytes
cacache
cache-base
call-bind
caller-callsite
caller-path
callsites
camelcase
caniuse-api
caniuse-lite
case-sensitive-paths-webpack-plugin
chalk
chokidar
chownr
chrome-trace-event
cipher-base
class-utils
clean-stack
cliui
coa
collection-visit
color
color-convert
color-name
color-string
commander
commondir
component-emitter
compressible
compression
compression-webpack-plugin
concat-map
concat-stream
connect-history-api-fallback
console-browserify
constants-browserify
content-disposition
content-type
convert-source-map
cookie
cookie-signature
copy-concurrently
copy-descriptor
core-js
core-js-compat
core-util-is
cosmiconfig
create-ecdh
create-hash
create-hmac
cross-spawn
crypto-browserify
css-blank-pseudo
css-color-names
cssdb
css-declaration-sorter
cssesc
css-has-pseudo
css-loader
cssnano
cssnano-preset-default
cssnano-util-get-arguments
cssnano-util-get-match
cssnano-util-raw-cache
cssnano-util-same-parent
csso
css-prefers-color-scheme
css-select
css-select-base-adapter
@csstools
css-tree
css-what
cyclist
debug
decamelize
decode-uri-component
deep-equal
default-gateway
define-data-property
define-properties
define-property
del
depd
des.js
destroy
detect-file
detect-node
diffie-hellman
dns-equal
dns-packet
dns-txt
domain-browser
domelementtype
dom-serializer
domutils
dot-prop
duplexify
ee-first
electron-to-chromium
elliptic
emoji-regex
emojis-list
encodeurl
end-of-stream
enhanced-resolve
entities
errno
error-ex
es-abstract
es-array-method-boxes-properly
escalade
escape-html
escape-string-regexp
eslint-scope
esprima
esrecurse
es-set-tostringtag
es-to-primitive
estraverse
esutils
etag
eventemitter3
events
eventsource
evp_bytestokey
execa
expand-brackets
expand-tilde
express
extend-shallow
extglob
fast-deep-equal
fast-json-stable-stringify
faye-websocket
figgy-pudding
file-loader
fill-range
finalhandler
find-cache-dir
find-up
findup-sync
flatted
flatten
flush-write-stream
follow-redirects
for-each
for-in
forwarded
fragment-cache
fresh
from2
fs-minipass
fs.realpath
fs-write-stream-atomic
function-bind
function.prototype.name
functions-have-names
@gar
gensync
get-caller-file
get-intrinsic
get-stream
get-symbol-description
get-value
glob
global-modules
global-prefix
globals
globalthis
globby
glob-parent
gopd
graceful-fs
handle-thing
has
has-bigints
has-flag
hash-base
hash.js
has-property-descriptors
has-proto
has-symbols
has-tostringtag
has-value
has-values
hex-color-regex
hmac-drbg
homedir-polyfill
hpack.js
hsla-regex
hsl-regex
html-entities
http-deceiver
http-errors
http-parser-js
http-proxy
http-proxy-middleware
https-browserify
iconv-lite
icss-utils
ieee754
iferr
immutable
import-cwd
import-fresh
import-from
import-local
imurmurhash
indent-string
indexes-of
infer-owner
inflight
inherits
ini
internal-ip
internal-slot
interpret
ip
ipaddr.js
ip-regex
is-absolute-url
is-accessor-descriptor
is-arguments
isarray
is-array-buffer
is-arrayish
is-bigint
is-binary-path
is-boolean-object
is-buffer
is-callable
is-color-stop
is-core-module
is-data-descriptor
is-date-object
is-descriptor
is-directory
isexe
is-extendable
is-extglob
is-fullwidth-code-point
is-glob
is-negative-zero
is-number
is-number-object
is-obj
isobject
is-path-cwd
is-path-in-cwd
is-path-inside
is-plain-obj
is-plain-object
is-regex
is-resolvable
is-shared-array-buffer
is-stream
is-string
is-symbol
is-typed-array
is-weakref
is-windows
is-wsl
jest-worker
jquery
@jridgewell
jsesc
json5
json-parse-better-errors
json-parse-even-better-errors
json-schema-traverse
js-tokens
js-yaml
killable
kind-of
klona
last-call-webpack-plugin
lines-and-columns
loader-runner
loader-utils
locate-path
lodash
lodash.debounce
lodash.get
lodash.has
lodash.memoize
lodash.uniq
loglevel
lru-cache
make-dir
map-cache
map-visit
md5.js
mdn-data
media-typer
memory-fs
merge-descriptors
merge-stream
methods
micromatch
miller-rabin
mime
mime-db
mime-types
mini-css-extract-plugin
minimalistic-assert
minimalistic-crypto-utils
minimatch
minimist
minipass
minipass-collect
minipass-flush
minipass-pipeline
minizlib
mississippi
mixin-deep
mkdirp
move-concurrently
ms
multicast-dns
multicast-dns-service-types
nanomatch
negotiator
neo-async
nice-try
node-forge
node-libs-browser
node-releases
normalize-path
normalize-range
normalize-url
@npmcli
npm-run-path
nth-check
num2fraction
object-assign
object.assign
object-copy
object.getownpropertydescriptors
object-inspect
object-is
object-keys
object.pick
object.values
object-visit
obuf
once
on-finished
on-headers
opn
optimize-css-assets-webpack-plugin
os-browserify
pako
parallel-transform
parent-module
parse-asn1
parse-json
parse-passwd
parseurl
pascalcase
path-browserify
path-complete-extname
path-dirname
path-exists
path-is-absolute
path-is-inside
path-key
path-parse
path-to-regexp
path-type
pbkdf2
p-finally
picocolors
picomatch
pify
pinkie
pinkie-promise
pkg-dir
p-limit
p-locate
p-map
pnp-webpack-plugin
popper.js
portfinder
posix-character-classes
postcss
postcss-attribute-case-insensitive
postcss-calc
postcss-color-functional-notation
postcss-color-gray
postcss-color-hex-alpha
postcss-colormin
postcss-color-mod-function
postcss-color-rebeccapurple
postcss-convert-values
postcss-custom-media
postcss-custom-properties
postcss-custom-selectors
postcss-dir-pseudo-class
postcss-discard-comments
postcss-discard-duplicates
postcss-discard-empty
postcss-discard-overridden
postcss-double-position-gradients
postcss-env-function
postcss-flexbugs-fixes
postcss-focus-visible
postcss-focus-within
postcss-font-variant
postcss-gap-properties
postcss-image-set-function
postcss-import
postcss-initial
postcss-lab-function
postcss-load-config
postcss-loader
postcss-logical
postcss-media-minmax
postcss-merge-longhand
postcss-merge-rules
postcss-minify-font-values
postcss-minify-gradients
postcss-minify-params
postcss-minify-selectors
postcss-modules-extract-imports
postcss-modules-local-by-default
postcss-modules-scope
postcss-modules-values
postcss-nesting
postcss-normalize-charset
postcss-normalize-display-values
postcss-normalize-positions
postcss-normalize-repeat-style
postcss-normalize-string
postcss-normalize-timing-functions
postcss-normalize-unicode
postcss-normalize-url
postcss-normalize-whitespace
postcss-ordered-values
postcss-overflow-shorthand
postcss-page-break
postcss-place
postcss-preset-env
postcss-pseudo-class-any-link
postcss-reduce-initial
postcss-reduce-transforms
postcss-replace-overflow-wrap
postcss-safe-parser
postcss-selector-matches
postcss-selector-not
postcss-selector-parser
postcss-svgo
postcss-unique-selectors
postcss-value-parser
postcss-values-parser
prepend-http
p-retry
process
process-nextick-args
promise-inflight
proxy-addr
prr
p-try
public-encrypt
pump
pumpify
punycode
q
qs
query-string
querystring-es3
querystringify
@rails
randombytes
randomfill
range-parser
raw-body
readable-stream
read-cache
readdirp
regenerate
regenerate-unicode-properties
regenerator-runtime
regenerator-transform
regex-not
regexp.prototype.flags
regexpu-core
regjsparser
remove-trailing-separator
repeat-element
repeat-string
require-directory
require-main-filename
requires-port
resolve
resolve-cwd
resolve-dir
resolve-from
resolve-url
ret
retry
rgba-regex
rgb-regex
rimraf
ripemd160
run-queue
safe-array-concat
safe-buffer
safer-buffer
safe-regex
safe-regex-test
sass
sass-loader
sax
schema-utils
select-hose
selfsigned
semver
send
serialize-javascript
serve-index
serve-static
set-blocking
set-function-name
setimmediate
setprototypeof
set-value
sha.js
shebang-command
shebang-regex
side-channel
signal-exit
simple-swizzle
snapdragon
snapdragon-node
snapdragon-util
sockjs
sockjs-client
sort-keys
source-list-map
source-map
source-map-js
source-map-resolve
source-map-support
source-map-url
spdy
spdy-transport
split-string
sprintf-js
ssri
stable
static-extend
statuses
stream-browserify
stream-each
stream-http
stream-shift
strict-uri-encode
string_decoder
string.prototype.trim
string.prototype.trimend
string.prototype.trimstart
string-width
strip-ansi
strip-eof
stylehacks
style-loader
supports-color
supports-preserve-symlinks-flag
svgo
tapable
tar
terser
terser-webpack-plugin
through2
thunky
timers-browserify
timsort
to-arraybuffer
to-fast-properties
toidentifier
to-object-path
to-regex
to-regex-range
ts-pnp
tty-browserify
typedarray
typed-array-buffer
typed-array-byte-length
typed-array-byte-offset
typed-array-length
type-is
@types
unbox-primitive
unicode-canonical-property-names-ecmascript
unicode-match-property-ecmascript
unicode-match-property-value-ecmascript
unicode-property-aliases-ecmascript
union-value
uniq
uniqs
unique-filename
unique-slug
unpipe
unquote
unset-value
upath
update-browserslist-db
uri-js
urix
url
url-parse
use
util
util-deprecate
util.promisify
utils-merge
uuid
v8-compile-cache
vary
vendors
vm-browserify
watchpack
watchpack-chokidar2
wbuf
@webassemblyjs
webpack
webpack-assets-manifest
webpack-cli
webpack-dev-middleware
webpack-dev-server
webpack-log
webpack-sources
websocket-driver
websocket-extensions
which
which-boxed-primitive
which-module
which-typed-array
worker-farm
wrap-ansi
wrappy
ws
xtend
@xtuc
y18n
yallist
yaml
yargs
yargs-parser
yarn
yocto-queue
top 6 comments
sorted by: hot top controversial new old
[–] donze_1211 4 points 1 year ago (1 children)

São os módulos usados pra tudo que é javascript no projeto. Se você está usando só pra buildar um bundle js que é usado, apagar não vai ter efeito até que você precise buildar de novo ou atualizar seu front. Daria erro de imediato se você estivesse usando o node.js pra servir as páginas mesmo.

[–] Sou_Puro_Osso 2 points 1 year ago (2 children)

Vish, mas tudo isso? É só o bootstrap

[–] DradoTheHobbit 6 points 1 year ago (1 children)

Você acabou de descobrir um dos maiores problemas (e memes) da comunidade JS hoje em dia

[–] Sou_Puro_Osso 3 points 1 year ago

Eu já tinha ouvido falar disso, mas não sabia que o problema era tão grande xD

[–] dirlididi 3 points 1 year ago (1 children)

tenta fazer o import por gem ( https://github.com/twbs/bootstrap-rubygem ).

se for usar npm, vai precisar configurar o webpack equivalente ou direitinho... e eu recomendaria usar o yarn (outro gerenciador) no lugar do npm.

[–] Sou_Puro_Osso 3 points 1 year ago

Eu já tinha feito por gem antes, mas daí descobri que tinha a possibilidade de usar webpack, então fui testar xD

Valeu amigo! :)