News for hackers. Stuff that matters.
Re:In web design, everything easy is hard again by davidjnelson on Saturday February 10, 2018 @03:34PM (#16349427)
You'll likely love typescript. You can spin it up with:

npm install -g typescript

then put this in a tsconfig.json file:

{ "compilerOptions": { "emitDecoratorMetadata": true, "module": "commonjs", "target": "ES5", "outDir": "ts-built", "rootDir": "src" } }

then run tsc -w

you can tweak the compiler for prod or debugging output etc. with these flags for the cli or the json config: https://www.typescriptlang.org/docs/handbook/compiler-option...

Then you could add a single css file in which you prefix class names using something like: myprojectuniquename__someelement.

Then if you use async/await instead of callbacks, flexbox in your css, check supported browser features by googling 'caniuse feature', and use fetch for network access, you could have a pretty simple system that works for you in under an hour.

There are no comments on this comment yet.