GithubHelp home page GithubHelp logo

Fountain-Angular1 Gulp tasks add an extra /src/ directory during build, breaking local copy of the app about generator-fountain-angular1 HOT 10 CLOSED

fountainjs avatar fountainjs commented on May 25, 2024 1
Fountain-Angular1 Gulp tasks add an extra /src/ directory during build, breaking local copy of the app

from generator-fountain-angular1.

Comments (10)

msholly avatar msholly commented on May 25, 2024

FountainJS/generator-fountain-webapp#150

After struggling for longer than I care to admit - found the fix for the issue in the parent generator for this Yo. You must downgrade the glob-parent dependency of glob-stream from 3.0.1 to 3.0.0.

This should be solved here I suppose, but the parent generator team should release a fix since its broken on master.

from generator-fountain-angular1.

 avatar commented on May 25, 2024

Interesting. I was seeing a problem similar to this when doing a gulp build on a windows server. There was a src folder in the dist folder containing the assets folder, which it wasn't doing before.
I wasn't too worried about it because we develop on macs and deploy to windows. Haven't seen this on my local dev machine, so we just changed the Windows build script to move the folders to where they should be.
Looks like it could be related to this.

from generator-fountain-angular1.

Swiip avatar Swiip commented on May 25, 2024

I see in your yo-rc that you're using a 0.6 version which is very old, wan you re-test with 1.0.0-rc1?

from generator-fountain-angular1.

nish-nair avatar nish-nair commented on May 25, 2024

I have the same issue... to reproduce this, create a project using ng1-webpack-es6-sass-fountain-landing-page . Then run the command "npm run build" . Checkout the dist folder. There is an src folder in the dist folder which breaks the relative paths. because of this unwanted src folder, techs.json file cannot be loaded and throws a 404 error.
dist

from generator-fountain-angular1.

msholly avatar msholly commented on May 25, 2024

@Swiip Since the bug was fixed by an older glob-parent version, I didn't test with your release candidate. I might have time tomorrow to do so.

Just in case someone else stumbles on this issue, here's the fix again:
FountainJS/generator-fountain-webapp#150

from generator-fountain-angular1.

Chklang avatar Chklang commented on May 25, 2024

This problem is resolved? I've created a project today and i've this problem : I've a folder dist/src/app/techs/techs.json

from generator-fountain-angular1.

micaelmbagira avatar micaelmbagira commented on May 25, 2024

@Chklang This is the way it should be

from generator-fountain-angular1.

Chklang avatar Chklang commented on May 25, 2024

So why js try to load /app/techs/techs.json and not /src/app/techs/techs.json? I've a 404 in dist mode

from generator-fountain-angular1.

micaelmbagira avatar micaelmbagira commented on May 25, 2024

This is a different issue, can you describe your problem and join your .yo-rc.json in a new issue ?

from generator-fountain-angular1.

Chklang avatar Chklang commented on May 25, 2024

Ok thanks :)

from generator-fountain-angular1.

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.