Comments (20)
from prejss.
Another problem. In example project and in my project on start:
Module not found: Error: Cannot resolve module 'prejss-postcss-parser' in projectroot\node_modules\prejss\lib
@ ./~/prejss/lib/index.js 16:27-59
from prejss.
@DenisIzmaylov well done! Everything works fine. But I did not check the postcss plugins yet. I think with it no problem. In JetBrains IDEA we can add //language=PostCSS
for postcss highlighting and autocomplete.
Example styles.js
import preJSS from 'prejss'
import theme from 'theme'
//language=PostCSS
const styles = preJSS`
button {
background: ${theme.color.main};
}
`
export default styles
from prejss.
@DenisIzmaylov yea))). Don't forget install postcss plugin in idea.
PHPStorm WebStorm 2016, 2017
from prejss.
@DenisIzmaylov Looks like I'm late, of course
from prejss.
standalone demo project works fine.
Thanks
from prejss.
Thanks for your feedback!
Have you tried to run npm install
in "basic" directory?
from prejss.
Very interesting. So we'll try to fix it in next 2 days.
from prejss.
Thanks for details. I'll try to review it in next two days. But feel free to make a PR. It's simple and fun!
from prejss.
Another problem. In example project and in my project on start:
Module not found: Error: Cannot resolve module 'prejss-postcss-parser' in
@BrRenat Sorry for a bit delay. Just fixed it. Could you please try again?
from prejss.
@budarin, just checked for your issue. It seems everything is working correctly now. Could you please check up?
from prejss.
Also I've just published example React.js application with PreJSS, have a joy:
from prejss.
There are some problems:
- i have not found any mention about nodemon
- commands are not cross operating system
from prejss.
That's truth. Thank you for your feedback. I've removed basic example:
It's not a good practice to keep large example in the same repo since we have to keep traction on each project separately.
Please try it:
This example already contains a mention about nodemon and uses cross-env
.
Please give any feedback once you have success with that.
from prejss.
@BrRenat Omg. Really? Will it work? Could you please provide a screenshot from JetBrains IDEA?
import preJSS from 'prejss'
import theme from 'theme'
// language=PostCSS
const styles = preJSS`
button {
background: ${theme.color.main};
}
`
from prejss.
Wow! Really awesome. Could I use this screenshot for my talk on MoscowJS today?
from prejss.
node 6 not supported
Object.entries is not a function
from prejss.
Anyway thanks :) BTW Should we support Node.js 6?
from prejss.
Is there any problems on this issue still exists which we have to fix/to do?
from prejss.
@budarin Thank you for your effort. Looking forward for your pull requests! 🎉
from prejss.
Related Issues (20)
- Themes support HOT 1
- Styles Linting support
- Syntax Highlighting support
- Nested selectors not hashed HOT 7
- wrong parser on float property HOT 4
- Classname notation/conversion
- TypeError: chunks.map is not a function HOT 2
- Add Flow HOT 2
- Update to PostCSS 6
- Use SCSS variables amongst files and inject them into other preJSS usages
- App crashing when importing prejss: Module not found require-from-string HOT 3
- Could not locate the bindings file
- Add ESLint HOT 2
- Add travis config
- Use postcss-load-config to load plugins HOT 1
- Hot Module Replacement HOT 1
- Add tests HOT 1
- Add example for PostCSS config HOT 5
- React Native support
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 prejss.