JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Mar 30, 2019 22:11
@paul23 once i thought about swapping unisex toilet logos with usb logos
Mar 30, 2019 17:50
CI toolchain ¯\_(ツ)_/¯
Mar 30, 2019 17:49
docker run -v "$PWD":/data -w /data node:10-alpine sh -c "npm i && npm run build"
Mar 30, 2019 17:49
this is how i init that build btw:
Mar 30, 2019 17:48
dunno why.. everyone i know has switched over by now
Mar 30, 2019 17:48
for some reason i still avoid yarn
Mar 30, 2019 17:48
probably cause the package-lock is pretty new
Mar 30, 2019 17:47
frontend dev these days..
Mar 30, 2019 17:47
added 777 packages from 525 contributors and audited 11714 packages in 16.209s
found 0 vulnerabilities
Mar 30, 2019 17:46
no wonder there is no simple solution to this
Mar 30, 2019 17:46
you come across so many issues..
Mar 30, 2019 17:45
@GottZ no webpack
Mar 30, 2019 17:43
well i just stumbled across this issue while researching for a solution
Mar 30, 2019 17:42
that's why i use such a strange chain now
Mar 30, 2019 17:42
sadly corejs 3 and babel 7 seem to break common workflows for this usecase
Mar 30, 2019 17:41
for some reason i really don't like such boilerplate files if trivial stuff like that could be done by cli arguments :/
Mar 30, 2019 17:41
{
    "presets": [
        ["@babel/preset-env", {
            "useBuiltIns": "usage",
            "corejs": {
                "version": 3,
                "proposals": true
            }
        }]
    ],
    "plugins": [
        "transform-remove-console"
    ]
}
Mar 30, 2019 17:40
i do have to have .babelrc though
Mar 30, 2019 17:39
ugly AF but well.. does the job.
Mar 30, 2019 17:39
"scripts": {
  "babel": "babel src/js --out-dir dist/js",
  "parcel": "parcel build dist/js/nxy.js -d dist/js/ --public-url /js --target browser",
  "build": "npm run babel && npm run parcel"
},
Mar 30, 2019 17:39
@towc that's pretty much what i do now:
Mar 30, 2019 15:30
that's not how it works
Mar 30, 2019 15:29
why are you calculating 100% - 75%?
Mar 30, 2019 14:28
it's literally a non profit project
Mar 30, 2019 14:27
or a docker build image
Mar 30, 2019 14:27
anyone knows of a simple node module that would do that through command line without the requirement to create .babelrc, webpack config etc. etc.?
Mar 30, 2019 14:26
anyone here who could recommend a routine to magically make a javascript file IE11 compatible?
use case: continuous integration. tried babel but as soon as i start using features that are unavailable i also have to use core-js.. turns out this spits out require statements into the output file wich, it seems, i can only clean up with webpack or similar..
Nov 6, 2018 15:13
i love quiet environments. especially quiet inboxes.
Nov 6, 2018 15:11
wtf did you ever hear about filters?
Nov 6, 2018 15:09
hm. i once made a website with a jail countdown for a friend. that page was showing a progressbar until he was set free
Nov 6, 2018 15:08
nothing changed since it's introduction
Nov 6, 2018 15:08
it is as easy now as it was back then.
Nov 6, 2018 15:03
@KarelG when i made my own progress bar in 2015, the original <progress> had displaying bugs in chrome for windows 7 when you switched tabs. like.. literally showing a wrong progress.
Nov 6, 2018 14:16
ye. and you get all the bugs that come with <progress> out of the box
Nov 6, 2018 14:12
scroll down to line 38 in js
Nov 6, 2018 14:12
sounds like you have not yet tasted the beauty of getters and setters in javascript then
Nov 6, 2018 14:11
Nov 6, 2018 13:37
and easy to use.. cmon
Nov 6, 2018 13:37
@KarelG well. the last time i used it, the visual progress differed when tabbing away and back after it was supposed to change.
Nov 6, 2018 13:34
i'm a chrome user so i could not care less but this looks horrible in firefox: login.home.gottz.de
Nov 6, 2018 13:33
btw do you know if firefox will have dithered gradients some day?
Nov 6, 2018 13:32
i mean for noise textures.. ok
Nov 6, 2018 13:32
image backgrounds.. dear god why
Nov 6, 2018 13:30
that's actually why i made this: https://codepen.io/GottZ/pen/YXdxQr
but still.. this is dated.
Nov 6, 2018 13:29
@towc lol. <progress> is so freakin bad
Nov 6, 2018 13:28
so ye. i'd say repeating-linear-gradient is gold for progress bars
Nov 6, 2018 13:27
(this code is so dated, i would not recommend even looking at it)
Nov 6, 2018 13:27
@BartekBanachewicz you can use linear-gradient for that too. codepen.io/GottZ/pen/ZbEaZg