GithubHelp home page GithubHelp logo

g8.ignore about giter8 HOT 16 CLOSED

foundweekends avatar foundweekends commented on July 19, 2024
g8.ignore

from giter8.

Comments (16)

softprops avatar softprops commented on July 19, 2024

I may take a stab at this one. This same issue bit me already with jquery js files in my template which have a pretty pervasive use of $ which string template loves to bite at.

What do you think of about another name for that file though. I like the analogy to .gitignore but its really not ignoring them, it's just not process/parsing them. Its already ignoring parsing image files without an explicit declaration. What are some good alternatives. .g8noparse, .g8pass? wdyt @n8han?

from giter8.

n8han avatar n8han commented on July 19, 2024

it might make sense to have this in template.properties, as a property

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

skipping template may still be useful, but I just added a workaround for charset issue like keystore.jks. see #26

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

I would like to try to latest version in GitHub. What is the best way to make consript use latest version of giter8 in GitHub?

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

Here's what I do.

steps

  1. install sbt 0.11
  2. git pull
  3. sbt "project app" +publish-local
  4. cs n8han/giter8/0.2.3-SNAPSHOT
  5. cs --clean-boot
  6. g8

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

I could not publish-local because of this error:
sbt.ResolveException: unresolved dependency: org.scala-tools.sbt#launcher-interface;0.7.4: not found

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

I guess I had that jar in my cache and didn't notice that it required additional resolver. Fixed it and pushed it.

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

Thank you.
Now there's no more error when running g8 ngocdaothanh/xitrum.

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

So do we still need ignoring feature since binaries can be skipped via try { UTF-8 } catch?

from giter8.

n8han avatar n8han commented on July 19, 2024

It could be the difference between a warning and silence.

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

Like @softprops said above, I think this feature is still very useful for text files. A config entry in the default.properties is neat.

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

I have an implementation ready..

verbatim=*.html *.jpg

Can I push it?

from giter8.

n8han avatar n8han commented on July 19, 2024

Sounds good to me.

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

verbatim is asked for when I run the command:
g8 ngocdaothanh/xitrum

I think g8 should not asked for it.

from giter8.

eed3si9n avatar eed3si9n commented on July 19, 2024

To clarify @ngocdaothanh

steps

  1. run $ g8 ngocdaothanh/xitrum
  2. g8 prompts the following:
New Xitrum project (http://ngocdaothanh.github.com/xitrum) 

name [my_project]: my_project
verbatim [*]: 

Applied ngocdaothanh/xitrum.g8 in my_project

problem

the end user is asked about verbatim's value

expectation

I am guessing that you wanted verbatim omitted from the prompting

from giter8.

ngocdaothanh avatar ngocdaothanh commented on July 19, 2024

Yes, that's clear.
I think verbatim is designed specially by the template author, there's no point in letting users customize it.

from giter8.

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.