|
Apologies if this had been covered. One of or devs wants to use AngularJS for or ecommerce site. Watching the egghead.io videos it seems AngularJS (and the other frameworks in this thread) are meant for generating, then manipulating, content. Isn't that terrible for SEO since I think bots don't run JavaScript?
|
# ¿ Dec 1, 2013 20:38 |
|
|
# ¿ May 2, 2024 02:17 |
|
Sagacity posted:Which line of business are you in, in which clients don't use IE8 anymore?
|
# ¿ Jul 7, 2014 13:57 |
|
So I'm starting a new project from scratch using Foundation and SASS. Should my entire site be in app.css? That seems a bit bulky to have CSS for elements on one page loaded on all pages. Is a suggestion way to have app.css really just be for elements like .columns, <p>, <h1>, and not .myWidgetContainer, #thingOnOnlyOnePage etc?
|
# ¿ Aug 8, 2014 13:45 |
|
The Milkman posted:Not to mention the browser will cache that huge singular CSS file after the first load anyway A) the older app.css file to be cached and the page be broken or B) The user needs to redownload the large app.css every time we make/update a page (that they may not even visit).
|
# ¿ Aug 8, 2014 15:41 |
|
I'm having this exact same problem http://stackoverflow.com/questions/26252266/sass-throwing-errors-about-things-it-should-not in my case it's _grid.css from Foundation 4 (which I haven't touched since in almost a year and it compiled fine back then) The "solution" is just to downgrade SASS? But to what version? How do I even do that? All these SASS GULP things are supposed to make font-end development easier, but getting them set up and configured is so obtuse with mysterious command lines I feel like I'm using mid-90s Linux EDIT: NEVERMIND I looked it up and ran more command line BS to downgrade to random version that worked. It's still stupid though The Merkinman fucked around with this message at 17:51 on Feb 19, 2015 |
# ¿ Feb 19, 2015 17:37 |
|
*a developer tries {thing} feels it's too complicated, decides to make their own {new thing}* *{new thing} gets popular with others* *{new thing} adds features others want* *{new thing} becomes rapidly changing, confusing, mess* *a developer tries {new thing} feels it's too complicated, decides to make their own {newer thing}...*
|
# ¿ Mar 5, 2015 22:00 |
|
Maluco Marinero posted:... considering Ember won't be abandoned for 2.0 with no migration path. If this is a reference to Angular, I thought the reason there currently wasn't a migration path from 1.3 to 2.0 is because 2.0 isn't done yet. Therefore, it's pointless to create a path to a moving target.
|
# ¿ Mar 10, 2015 04:10 |
|
What is a good resource for learning AngularJS? Having to pay $ for it is fine. I've done the free Shaping Up with Angular codeschool course, but at this point I'm not sure what direction to go, especially given the whole 1.3 -> 2.0 thing.
|
# ¿ Apr 20, 2015 14:00 |
|
http://i.imgur.com/v9prDJt.gif That's pretty much the discussions in this thread right?
|
# ¿ Aug 5, 2015 22:38 |
|
I may have asked this before and I apologize if I have: I'm looking to get into this more advanced front-end development, specifically AngularJS. Should I learn 1.X or 2.X? The only experience I have with it is the Shaping Up With Angular.js tutorial which I've all of forgotten at this point anyway. I Know I'd have to 'un-learn' a lot of stuff going from 1 -> 2 ,but I would think 1 would have better resources available. tl;dr Should I learn AngularJS 1.X or 2.X? What resources, like an online course, would be good to learn it?
|
# ¿ Nov 16, 2015 15:17 |
|
Karthe posted:I did some "research" into this (in so much as I googled around a bit) and came away with the idea that 1.x isn't going anywhere for a couple of years at least. TONS of existing projects use 1.x (obviously), and the Angular people have said that they'll support both 1.x and 2.x for the foreseeable future. Therefore you should be fine picking up 1.x now, and try to stick to most of the practices featured in this style guide: https://github.com/johnpapa/angular-styleguide. They'll get you away from relying on $scope for everything, which will be especially useful whenever you start diving into 2.x. Skandranon posted:I would start with AngularJS 1.X, with an eye for doing things closer to how Angular 2 works. There are a lot of things that have built up in Angular 1.X that are bad, but can be avoided (like using $scope). Only having 2.0 experience would be almost useless right now, whereas there will be 1.X apps to work on for many years to come. Also, take a look at TypeScript, it works well with 1.X, and will get you pretty close to working as if you were using 2.0, and will make the transition fairly smooth when it does happen. 3rd step in Codecademy tutorial posted:
If that's the case, thanks. You too Skandranon. I was apprehensive in going with AngularJS 1.X, but now I'm not.
|
# ¿ Nov 16, 2015 17:49 |
|
Angular 2.0 is now in beta Given this is Google, it will be out of beta in, what, 3 years?
|
# ¿ Dec 15, 2015 21:02 |
|
Skandranon posted:As opposed to React still being 0.1x after almost 3 years? Perfectly Cromulent posted:
|
# ¿ Dec 16, 2015 17:14 |
|
Can someone explain why I'd want to use Gulp/Grunt/Webpack/ thing on github only installable via npm? I can't tell if it's just beyond my comprehension or just not my use case. I work on a good sized ecommerce (I don't touch the actual checkout logic aside from basic CSS). EDIT: I should mention that if using these would require a site-wide rewrite, then lol at it ever happening for where I work.
|
# ¿ Jun 12, 2016 15:46 |
|
Wow, no action for over a week on this thread? I've asked before about Gulp, Grunt, etc. If I were to start using them (I still don't know why I would) do I need to make a new site entirely from scratch or could a web site be slowly updated, page by page, to use it?
|
# ¿ Aug 8, 2016 20:41 |
|
Lumpy posted:Skip them and use webpack or plain npm scripts Our JS is pretty raw, utilizing a lot of jQuery... though we just started using Angular 2.0 (typescript, requirejs) for part of our site. I already have SCSS to CSS through some compass command thing that I don't even remember how I set up. So, in general Is all of this only really useful in DEV, and production wouldn't matter, or it's beneficial there too? Would I need to start a whole new site-wide rebuild of the entire site to utilize this or could I update as I go (which I was able to do with the SCSS -> app.css workflow)
|
# ¿ Aug 8, 2016 21:02 |
|
Wait, so I shouldn't use Webpack? God dammit I hate this field. By the time I've leaned enough by reading the barebones documentation on a github page and typed in a bunch of npm install in a terminal like a 1990s hacker, then another articles comes along and says don't use X (use Y!). What the gently caress is the point in bothering to learn any of these, especially in my case where I only work on one website?
|
# ¿ Aug 19, 2016 18:11 |
|
OK after the words of encouragement I did the tutorial for Webpack. It bundles the CSS with the JS and then injects the CSS inline in the head? Isn't that bad and will prevent the CSS file from being cached? Won't that be really bad when I switch it to my minified app.css that has styles for everything on the site? I'm guessing I'm missing something, but the tutorial ended there.
|
# ¿ Aug 20, 2016 18:39 |
|
Anyone have experience with ionic? One of our developers mentioned it, but he has the habit of waiting to reinvent the wheel with new and shiny and a total disregard for workload and legacy. Currently, our ecommerce site has a separate "desktop" version, and a "mobile" version that I'm slowly merging codebases of to one, response, site. We do not have an app of any kind, nor any plans to do so.
|
# ¿ Aug 22, 2016 16:42 |
|
Wheany posted:Okay, so it seems progressive web apps are the new hotness right now. And apparently part of that is not compiling everything into one giant monolithic file. * HTTPS * Some manner of offline functionality * Service Worker * Manifest
|
# ¿ Sep 19, 2016 14:58 |
|
This is how I feel reading this thread sometimes.
|
# ¿ Oct 4, 2016 03:38 |
|
I may have asked this before: How many of you work in a design firm type of thing, where you're constantly making new/updated sites for a variety of clients Vs Working for a company and only updating their site(s)?
|
# ¿ Oct 5, 2016 12:18 |
|
Depressing Box posted:Webpack 2 seems like it's getting pretty close:
|
# ¿ Oct 11, 2016 14:33 |
|
What alternate profession do you recommend because I never understand anything in this thread and I feel I never will. I'm trying, desperately, to maybe try webpack. But even with Lumpy's examples, or this or this,I feel like everything is in Greek and I'd have better luck coding with my forehead hitting the keys. I somehow got a series of specific .js files to concatenate and minify (uglify) to one file. I'd like to get that to gzip as well but... my main issue right now is that I can't for the life of me figure out how to get a bunch of foundation .scss files to output a single, compiled, css file. Lot of commented out stuff and whatever because I've been redoing this so many times at this point code:
|
# ¿ Oct 21, 2016 21:04 |
|
HaB posted:I can't give you specific help, since I just sat and jacked with it until I got it working, but here's my webpack config:
|
# ¿ Oct 24, 2016 14:26 |
|
Lumpy posted:A couple clarifying questions: currently the folder is (largely from Foundation 5 import and file names changed to protect the innocent): code:
Yes that's a giant mess, so I'm totally find with restructuring if I get this to work. I'm currently working on a "stupid" version, that's what I've posted so far. code:
|
# ¿ Oct 24, 2016 16:21 |
|
Lumpy posted:how are you importing your SCSS in your js? Oh I see, you're saying I should have it that way in the 'stupid' version. Well I just tried can't get that to work either. I've tried the documentation, but it's rear end, and the comments are the usual FOSS "hurr durr you have a problem with the docs? improve them yourself" I can't find any documenation/tutorial on what I'm trying to do so I'm thinking I'm just not understanding the entire concept of Webpack and/or it's not suitable for the website I work on. Basically I am a 3 year old and anything anyone says might as well be written in Aramaic. I think that's my level of understanding w/r/t any front end framework more advanced that HTML4. The Merkinman fucked around with this message at 17:37 on Oct 24, 2016 |
# ¿ Oct 24, 2016 17:01 |
|
That's why I think I'm using Webpack wrong, as in, not for its intended purpose. We have a bunch of scss files compiled into one, monolithic, app.css (command line compass) We have a bunch of js files that are included on every page (command line uglifyjs) We also have some pages with one-off js files or ones used on some pages but not others We have something, not yet production ready, that uses Angular2 written in TypeScript (Gulp) We have something, that IS production ready, that uses Knockout written in TypeScript (TypeScript command) So I was looking for something to use, to do all those things at once, in a standard way rather than every developer re-inventing the wheel. From your example, it looks like Webpack is only used for a very component-based website, where every bit of functionality has its own .js and scss? As I'm working on one site, all the time, I complete site-wide rewrite all at once would be out of the question (have to do feature, feature, feature!!).
|
# ¿ Oct 24, 2016 18:58 |
|
HaB posted:You can still do what you're talking about with webpack, but it might be more trouble than it's worth. When I asked way back, Lumpy suggested Webpack in the first place <>
|
# ¿ Oct 25, 2016 21:17 |
|
Cool thread, thanks for being the epitome of modern front-end development and suggesting I try to learn something that is ultimately useless for what I want to accomplish.
|
# ¿ Oct 25, 2016 21:33 |
|
So I'm back to waste more time and feel like an idiot. I found some tutorial on Webpack (because at this point, why not?) But early on they want you to install webpack-dev-server. It won't install for me and many others due to peer dependencies. It seems the 'fix' is in version 1.15, but AFAIK, the latest stable version of Webpack is still 1.13, so what am I supposed to do? (installing webpack-dev-server locally didn't work either)
|
# ¿ Nov 3, 2016 17:16 |
|
Anony Mouse posted:Are you using a pre-existing package.json? If so maybe try starting over from scratch and install packages one at a time manually. Could be that the dev dependencies are set wrong in package.json. I've never had a problem installing webpack and webpack-dev-server (in that order). code:
|
# ¿ Nov 4, 2016 14:00 |
|
Redmark posted:The hardest part has actually been using the native terminal, which is absolute garbage. The second hardest part is the Webpack documentation, which is merely trash. I've learned that documentation will always be trash because by the time someone writes out documentation, it's out of date.
|
# ¿ Nov 4, 2016 21:41 |
|
I'm still a big dumb idiot using Webpack when I should be using Gulp, but.. Isn't there a way I can get Webpack to look in a single folder for all js/ts/es6 files? Right now I have: code:
I tried replacing entry with: code:
|
# ¿ Nov 30, 2016 15:47 |
|
ynohtna posted:It's complaining about that due to your enclosing context telling it to look in resolved path 'js'. Depressing Box posted:You need an object with a key for each file to output multiple entry points. I did something like this in an old project (so excuse the messy code): code:
|
# ¿ Dec 2, 2016 16:54 |
|
Helicity posted:Dig into how Webpack works under the hood and it will be a bit more clear. It's a JS bundler, and everything else is a hack on top of that. If you treat it as your JS processor and handle everything else separately, your life will be easier. I had SASS compilation working as simple Hello World type thing, but never could get it working well in real-world cases, so chalked it up as another "just because someone made it work, doesn't mean it should work". I didn't know it was either until a co-worker was researching Webpack to help me with my issue I posted here earlier. We did get that issue resolved, just had to edit the values in glob.sync(path.join(__dirname, 'js/*.js'))
|
# ¿ Dec 8, 2016 15:03 |
|
The Wizard of Poz posted:Cross-posting here: What do you want to do instead? You might be better off detecting the <input type="date"> feature with modernizr .
|
# ¿ Jan 4, 2017 01:43 |
|
Anyone know why my SASS colors are compiling to different values now? It usued to be what shows on http://www.sassmeister.com/ but now colors using mix() are slightly different. I notice the website shows 3.4.21, the most recent version is 3.4.22 but somehow I have 3.4.23??
|
# ¿ Jan 18, 2017 20:01 |
|
Munkeymon posted:Using an actual type="date" to enter a birthday is currently a bad idea because the Android date control only lets you jog one month at a time, defaults to the current date and is really easy to set to the current date (accidentally press any of the green part at the top of the overlay in the image below!), so any adult is going to have to tap a stupid button 200+ times to get anywhere near their birthday. You can tap the year to change it
|
# ¿ Jan 30, 2017 19:25 |
|
|
# ¿ May 2, 2024 02:17 |
|
gently caress this field. I have to relean everything I learned about Webpack, which wasn't much, becuase of Webpack 2. So now I'm trying to do the most basic of things, but of course, tutorials are either "hello world" or "here's a giant multi-page website using 17 other technologies". All I want is it to compiles SASS, which of course it's ignoring. I was following this, until I actually tried to follow it. webpack --watch works, but when I try npm run build it has a bunch of errors*. Why? because gently caress me, I guess? I'm sure by the time I figure out where I went wrong in literally copy/pasting a tutorial Webapack To be fair, the tutorial is 4 days old, so I'm sure it's completely out of date and useless now. * code:
|
# ¿ Feb 3, 2017 22:02 |