Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create gulp task serve the ./dist folder #7

Open
luisrudge opened this issue Jan 17, 2015 · 5 comments
Open

create gulp task serve the ./dist folder #7

luisrudge opened this issue Jan 17, 2015 · 5 comments

Comments

@luisrudge
Copy link

There's no way to run the generator and start developing, because there's no task to serve files, and watch for changes etc

@aminroosta
Copy link

I think there is no need for that !
You can serve files from src folder while developing. ( requirejs dynamically loads other js files).
When you are ready to deploy you app , run gulp and use the content of dist folder .

@luisrudge
Copy link
Author

I'm on windows and there's no easy way to serve a folder with static content. Plus, the way you described doesn't watch for file changes

@aminroosta
Copy link

i'm on windows too.
here is what i usually do, first of all i install a command line http server :
npm install -g static-server
then i go to the root of project cd path/to/project/folder
and then static-server src/.
there is no need to watch for file changes , simply refresh your browser and make sure that it does not
cache the files (disable browser cache).

@luisrudge
Copy link
Author

Ah, nice. I didn't know about static-server. Thanks!
Still, livereload is awesome and pretty much a standard for gulp/grunt tasks

@PetaPetaPeta
Copy link

If you have python installed you can also just do python -m SimpleHTTPServer from the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants