Giter VIP home page Giter VIP logo

Comments (12)

passy avatar passy commented on September 15, 2024

This is deliberate to allow the dist folder to be its own git repository
for deployment purposes. You can still adjust the behavior in the
Gruntfileif you like.
On Mar 20, 2013 6:54 PM, "Thanos Lefteris" [email protected] wrote:

  • Started with the files generated by webapp I did a build
  • I removed the .htaccess, from my app folder and Gruntfile copy task
    config
  • After a build, .htaccess is still in the dist forder


Reply to this email directly or view it on GitHubhttps://github.com/yeoman/generator-webapp/issues/37
.

from generator-webapp_deprecated.

alefteris avatar alefteris commented on September 15, 2024

Could this be made more explicit, with a comment maybe? Or even better a rule to exclude just the .git dir/files?

Also what I will need to change in Gruntfile to remove the dotfiles? Thanks.

from generator-webapp_deprecated.

passy avatar passy commented on September 15, 2024

You could change the dist: ['.tmp', '<%= yeoman.dist %>/*'] to dist: ['.tmp', '<%= yeoman.dist %>'] for the clean task (removing just the whole dist directory instead of just the non-hidden files inside).

@sindresorhus Do you think a comment would be helpful here?

from generator-webapp_deprecated.

sindresorhus avatar sindresorhus commented on September 15, 2024

@passy I would rather find a way to clean out everything except for .git. Any ideas?

from generator-webapp_deprecated.

passy avatar passy commented on September 15, 2024

.gitignore would also be useful.
On Mar 22, 2013 12:49 AM, "Sindre Sorhus" [email protected] wrote:

@passy https://github.com/passy I would rather find a way to clean out
everything except for .git. Any ideas?


Reply to this email directly or view it on GitHubhttps://github.com/yeoman/generator-webapp/issues/37#issuecomment-15273576
.

from generator-webapp_deprecated.

sindresorhus avatar sindresorhus commented on September 15, 2024

yup

from generator-webapp_deprecated.

kevva avatar kevva commented on September 15, 2024

This works.

clean: {
  dist: {
    files: [{
      dot: true,
      src: [
        'dist/*',
        '!dist/.git*'
      ]
    }]
  }
}

from generator-webapp_deprecated.

sindresorhus avatar sindresorhus commented on September 15, 2024

@kevva feel free to do that update directly ;)

from generator-webapp_deprecated.

kevva avatar kevva commented on September 15, 2024

Yep, done :)))))).

from generator-webapp_deprecated.

sindresorhus avatar sindresorhus commented on September 15, 2024

@kevva awesome, thanks for doing this. Keep em coming :D

Tip: use fixes #ticketnumber in commits to close issues directly from the commit and create a reference between them.

Fixed in yeoman/generator-webapp@7616dc4

from generator-webapp_deprecated.

sindresorhus avatar sindresorhus commented on September 15, 2024

@kevva could you do the same on generator-angular?

from generator-webapp_deprecated.

kevva avatar kevva commented on September 15, 2024

@sindresorhus, I'm on it.

from generator-webapp_deprecated.

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.