generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

gulp watch help

Open jrogatis opened this issue 10 years ago • 7 comments

Sorry to ask a so nobie question... but im doing a Free Code Camp challenge using your generator.

My app has a folder inside a folder on the client/app/ like this:

├── client │   ├── app │   │   ├── account │   │   │   ├── login │   │   │   ├── settings │   │   │   └── signup │   │   ├── admin │   │   ├── main │   │   └── votingApp * │   │   └── poll <------*

And i cant figure out how to add sub folder on watch path.... i try this: const paths = { client: { assets: ${clientPath}/assets/**/*, images: ${clientPath}/assets/images/**/*, revManifest: ${clientPath}/assets/rev-manifest.json, scripts: [ ${clientPath}/**/!(*.spec|*.mock).js, ${clientPath}/**/**/!(*.spec|*.mock).js <------ ], and nothing deferent happens...

  • [x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.4
Node 4.5
npm 3.0
Operating System OS X 10
Item Answer
Transpiler Babel
Markup Pug
CSS SCSS
Router ngRoute
Client Tests Jasmine
DB MongoDB
Auth Y
etc etc

jrogatis avatar Sep 14 '16 14:09 jrogatis

which version of the generator did you use?

You might need to restart gulp watch for it to pick up the new folder.

Awk34 avatar Sep 14 '16 14:09 Awk34

Tks for your interest !!! version 4.0.4 but its not a task on gulp serve ?

jrogatis avatar Sep 14 '16 15:09 jrogatis

watch gets run by serve at the end, so yeah, restarting gulp serve might be your solution

Awk34 avatar Sep 14 '16 15:09 Awk34

but thats the issue.... i already done that and for some reason when i alter the script inside this path the app dosent restart like any other files in the any other path.... Can you direct me at any document or link tho figure out waht happens for my self ? Im realy sorry to to disturb you with so newbie question.

jrogatis avatar Sep 14 '16 15:09 jrogatis

Are you require/importing your module from your poll/ folder anywhere? Since you're actually using 4.x.x, Webpack takes care of the watching, so if that module is never imported anywhere, Webpack won't trigger a rebuild for it.

Awk34 avatar Sep 14 '16 17:09 Awk34

from my app config `import { routeConfig } from './app.config';

import _Auth from '../components/auth/auth.module'; import account from './account'; import admin from './admin'; import navbar from '../components/navbar/navbar.component'; import footer from '../components/footer/footer.component'; import main from './main/main.component'; import constants from './app.constants'; import util from '../components/util/util.module'; import socket from '../components/socket/socket.service'; import vote from './votingApp/vote.component'; import poll from './VotingApp/poll/poll.component'; <-------- import './app.scss';`

jrogatis avatar Sep 14 '16 18:09 jrogatis

I had kind of the same problem. The IDE i was using (webstorm) has an option where the files aren't saved to the harddrive immediately but stored temporary somewhere else. So the watcher didn't see any changes because there weren't any. After changig that option everything worked fine again.

kalcheat avatar Sep 20 '16 23:09 kalcheat