antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serving from the root folder

aswath-veersoft opened this issue · comments

Issue Overview

I want to serve from the root folder, not from ./src/
I did some changes, and the gulp serve-dev is fine.
However, if do 'gulp build', it does not build.

What changes should be made so that it serves from the root folder.?

I think it's more complicated to serve from there, many things need to be set and it's out of this starter scope.

Thanks.
I have an existing app. I want the new angular2 module to be served from subfolder.
ex. I already have an application serving at localhost:8000, and I am enhancing the application using angular2. So, I want to be served from http://localhost:8000/src/index.html

Any pointer on this.

My starter isn't designed for serving for multi-apps/subfolder, but you can still host the build result under any routes you want, just play with web server setting.

Yes, the final build can be hosted in the subfolder. However, then, I am stuck for iterative development.

Any pointers on what other seed projects can be used for subfolders for both dev and prod? Thanks.

If the app is served from 'src' folder, then , in the system.config.js file, there is a dependency on the src folder in the map section.
var map = {
'app': 'src/tmp/app',
'test': 'src/tmp/test'
};
How, can I remove the 'src' dependency.
If I can remove the 'src' dependency, then I can host it in the root folder.