Comments (15)
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.
@chrislopresto v0.2.12 fixes my issue. Thanks!
from ember-freestyle.
@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.
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.
You may need to specify snippetSearchPaths
like this:
ember-freestyle/ember-cli-build.js
Line 12 in 789cbb2
By default, ember-freestyle looks in app
. I obviously need to document this!
from ember-freestyle.
FYI, the technique comes from https://github.com/ef4/ember-code-snippet
from ember-freestyle.
@wireframe Let me know if this resolves things for you.
from ember-freestyle.
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.
@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.
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.
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.
@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.
FYI, this whole setup needs to be cleaned up. I think these are the two next issues to focus on:
- Simplify Technique for Including Notes #61
- Support different FREESTYLE-USAGE-* code snippet delimiters #48
from ember-freestyle.
@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 `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.
@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)
- Style loading issues with freestyle page snapshot using @percy/ember HOT 6
- `ember-canary` scenario fails HOT 1
- Drop support for Node.js v10
- Remove `pick` helper? HOT 3
- Revert allowing the `ember-beta` scenario to fail
- Test against Embroider
- Remove the use of `ember-cli-sass-lint` HOT 1
- Deprecate `FreestyleShowdownContent` component
- Remove `freestyle-note` component from `app` folder HOT 1
- Update `ember-auto-import`
- Remove resolutions / unpin dependencies
- Use `exclude` option instead of `blacklist` option in README once available
- Migrate to Glimmer components
- Don't publish `.husky` folder
- Add support for glint HOT 2
- Migrate to V2 addon HOT 1
- UI / UX Improvements HOT 1
- Remove use of `EmptyObject` type HOT 1
- Add optional Freestyle::Usage section to document/explore CSS variables
- Breaks under `ember-cli` v5 (uses `ember-cli-preprocess-registry` v5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-freestyle.