Git Product home page Git Product logo

Comments (15)

wireframe avatar wireframe commented on August 21, 2024 1

Thanks Chris. I'll try to test out this change today!


Ryan Sonnek
[email protected]

On Apr 20, 2016, at 11:12 AM, Chris LoPresto [email protected] wrote:

@wireframe https://github.com/wireframe Let me know if this resolves things for you.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub #30 (comment)

from ember-freestyle.

jeffsawatzky avatar jeffsawatzky commented on August 21, 2024 1

@chrislopresto v0.2.12 fixes my issue. Thanks!

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

@wireframe I'm happy to help out and see what's going on, but I'll need some details. Can you copy/paste code samples or share links to a public gist or repository?

from ember-freestyle.

wireframe avatar wireframe commented on August 21, 2024

I'll do my best to create a simple testcase. My guess at the moment is that it may have something to do with organizing my components into pods?

I'm using the ember-component-css addon which requires pods at the moment.

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

You may need to specify snippetSearchPaths like this:

snippetSearchPaths: ['tests/dummy/app', 'app/styles']

By default, ember-freestyle looks in app. I obviously need to document this!

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

FYI, the technique comes from https://github.com/ef4/ember-code-snippet

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

@wireframe Let me know if this resolves things for you.

from ember-freestyle.

wireframe avatar wireframe commented on August 21, 2024

Unfortunately, No :dice: using this approach. It could easily be user error, but I've been unable to trace down the root cause of this issue.

I'm going to have to table this issue for the time being, and you can feel free to close out this issue until I have time to revisit it further.

from ember-freestyle.

mszoernyi avatar mszoernyi commented on August 21, 2024

@wireframe Is you freestyle.hbs shareable? I'm using a pod structure as well with ember-component-css and I'm just about to setup everything. I could try your setting on the way and figure out what setting you need to set.

from ember-freestyle.

mszoernyi avatar mszoernyi commented on August 21, 2024

I would suggest we add some sane defaults for the snippet path based on the usePods flag.

snippetSearchPaths for pod structure: ['tests/dummy/app', 'app']
snippetSearchPaths for normal structure: ['tests/dummy/app/styles', 'app/styles']

from ember-freestyle.

jeffsawatzky avatar jeffsawatzky commented on August 21, 2024

I think I am having a similar issue. I found that inline snippets in my scss files are not found, but if I put them in a js file (like the freestyle.js controller) then they are found.

The scss files are in the app folder, so I believe they should be in the snippetSearchPaths by default.

The example snippet that works in js but not scss is:

/* BEGIN-FREESTYLE-USAGE modules-buttons-normal:notes

Use these whenever you need some kind of clickable surface to afford an action that
isn't a boring, inconspicuous text link.

END-FREESTYLE-USAGE */

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

@Niltz I just realized that I never wired up SCSS notes snippets. #63 will do the trick. I'll merge it and cut a new release.

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

FYI, this whole setup needs to be cleaned up. I think these are the two next issues to focus on:

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

@Niltz I just published v0.2.12, which supports SCSS note snippets. You can see it in action here:

Source

/* BEGIN-FREESTYLE-USAGE fpi:notes
# Markdown Notes In SCSS!
Hey look... these are `mardown` notes:
- coming from scss
- looking nice
END-FREESTYLE-USAGE */

/* BEGIN-FREESTYLE-USAGE fpi:notes
# Markdown Notes In SCSS!

Hey look... these are `markdown` notes:

- coming from scss
- looking nice

END-FREESTYLE-USAGE */

Rendered
http://chrislopresto.github.io/ember-freestyle/?f=fpi&m=false&s=Visual%20Style&ss=Color

from ember-freestyle.

chrislopresto avatar chrislopresto commented on August 21, 2024

@wireframe I'm going to close this for now. Feel free to reopen or open a new issue if your problem persists.

from ember-freestyle.

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.