Giter Site home page Giter Site logo

Comments (2)

fulls1z3 avatar fulls1z3 commented on May 4, 2024

@rdsedmundo thanks for your kind works, and your thoughts. I believe that this discussion will contribute much to the successful development and maintenance of this project. So, let's start with the points you discussed:

  • Why Gulp, couldn't use just NPM as the build tool?

I was developing software using Angular much time ago, by using Gulp as a task runner in alignment with Visual Studio 2015. This project inherited much from these previous projects (reused the functionality instead of creating from scratch). Although there're some features that NPM couldn't fully cover as Gulp does, it sounds like a great idea switching to NPM.

  • Why JSHint - it's because we have JS files, I guess - but, if the Angular app itself is entirely in Typescript, why the Node scripts couldn't be too, using ts-node?

A well-coded app needs to follow very strict guidelines, code styles. The main code style enforcer is obviously TsLint. However, JSHint was really necessary to enforce a consistent code style across the JS parts of this project.

Another brilliant idea is to convert Node scripts into TypeScript and voila: no need to JSHint!

  • Why PostCSS, Stylelint?

PostCSS - for AutoPrefixer; Stylelint - enforcing code style (I'm aware of those rules need further improvements),

  • Why having a 'lean Angular' option, if the name of the repository is Universal - couldn't this be in a separate repository?

There's actually a separate repository called ng-seed/spa which has the only lean Angular option. However, the lean Angular on this universal project saves a lot of time during development (reduced build times, HMR, etc).

  • Why this big demo project using 10 different modules at the app.module, internationalization, and a lot of components? Couldn't it be a simple Hello World, maybe with two simple routes? How I'll know if I remove everything it will still work - what is mandatory and what is not?

The main reason that this project has all those dependencies, is the fact that apart being a seed project for Angular Universal, it also showcases all included modules in alignment with each other.

On the other hand, I could briefly say that almost all dependencies with ngx- prefix can be safely removed from app.module, and app.browser.module. However, this should be documented well so people wouldn't worry about what could be possible side-effects of removing those dependencies.


Please feel free to share your thoughts further, because I believe that these ideas would lead to great contributions to this project and also will make things easier for people who use it. Also, feel free to make PR's (documentation, functionality, etc).

from universal.

fulls1z3 avatar fulls1z3 commented on May 4, 2024

@theomathieubhvr I'd like to consult you about these topics too, so it would be really cool if you could enumerate here your thoughts on these topics.

from universal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.