Comments (2)
@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.
@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)
- way to access the meta title HOT 1
- unreachable endpoint HOT 3
- why should we need `electron` in this project HOT 1
- html tags including webpack javascript syntax
- How to disable all the Junits.?
- func expressions not supported in decorators in reducers in aot HOT 1
- no setting found with the specified key HOT 3
- assets path HOT 1
- EEXIST: file already exists | @ngx-cache HOT 5
- how to set facebook og tags HOT 1
- Show html css in between route-app tag HOT 1
- Any ideas to integrate socket.io?
- Migrate LGTM.com installation from OAuth to GitHub App
- Build command project name typo HOT 1
- use sitemap-generator for SSR
- Angular 4 universal ReferenceError: document is not defined HOT 1
- getting issue on yarn start:ssr HOT 2
- Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped
- error Type 'Request' is not generic
- Why do I see network requests at in Chrome broswer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal.