Git Product home page Git Product logo

Comments (26)

mxstbr avatar mxstbr commented on June 2, 2024

Sorry, misclicked and closed the issue on accident.

I'd say let's go with components + CSS modules, it's the future and PostCSS fits perfectly with it.

from postcss.org.

ai avatar ai commented on June 2, 2024

Do not forget about all: initial and postcss-autoreset. Global reset and inherited properties is a problem too.

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

I can setup the boilerplate for Statinamic, that will help me review statinamic doc + enhance the setup command.
Note: Statinamic default boilerplate provides css modules.

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

@MoOx can we do it together/can you walk me through it? Haven't worked with Statinamic at all.

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

Here is a start http://moox.io/statinamic/docs/setup/
That should help.
I think I need to add more stuff based on a discussion with someone in reactiflux.
Meanwhile, if you want to try this now, feel free to ask all the question you got as Github issues in Statinamic repo for now :)

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

@MoOx Cheers, will take a look!

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Great, feel free to override README with documentation of how to to get Statinamic up and running locally once it's up.

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

"npm start" will be enough for local usage.

For "production" (build + commit to github pages - gh-pages branch) we will need to follow (once) instructions of statinamic docs to automate deploy on each commit pushed to master. I can help for that.

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

Let's do that and make master protected and only be committed into via PRs for safety.

If all you are going to do is the setup thing in the Statinamic docs, I can submit a PR as well.

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

Feel free to do it @mxstbr ;)

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Agreed @mxstbr that's already set to default. PR needs to be reviewed before merged into master.

@mxstbr can you setup the initial files to master then we can go from there with setting up more files and things like PostCSS if needed.

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

@mxstbr if you need assistance, do not hesitate to use Statinamic support (me haha). I plan to work on this project for the incoming weeks/months.

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

@marcustisater will do!

@MoOx thanks, if I run into problems I'll submit issues!

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

Very initial setup done, will take a deeper look tomorrow!

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

Do not hesitate to tell me how bad your experience was (because currently I think it's not really convenient...) and what we should improve. Feedbacks are important to me.

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Can someone double check this for me #16? Thanks.

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

Need a better webpack config maybe

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

I think I will include postcss-cssnext in the default boilerplate but that won't be good for everybody.
Anyway, that's the power of statinamic: you define what you want/need.
Here is an example of another config https://github.com/putaindecode/putaindecode.io/blob/master/scripts/build.js

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Discussion from the meeting is to get the boilerplate ready before #12 is completed and also provide more documentation - #28

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

I think it makes sense to separate available layouts (e.g. Page, PageError,...) from more general React components (e.g. Button, Footer,...) by putting them in a separate folder.

I suggest we call the folder web_modules/pages for the layouts and web_modules/components for more general components.

routes was another option I was thinking about, but I'm pretty sure for beginners the connection between the URL and the component is clearer if the folder is called pages.

Thoughts? (Maybe worth including that separation in the official boilerplate @MoOx?)

from postcss.org.

MoOx avatar MoOx commented on June 2, 2024

What about this (I use it on a website and I like it)

  • web_modules/* for components
  • web_modules/layouts/* for layouts components ?

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

👍 I like it!

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

When #45 is reviewed and merged, this issue can be closed as the boilerplate setup is done for now. There will highly likely be small improvements over time, but the current state is enough for beginning to work on the actual site.

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Yup, sounds good. Nice work.

from postcss.org.

marcustisater avatar marcustisater commented on June 2, 2024

Merged?

from postcss.org.

mxstbr avatar mxstbr commented on June 2, 2024

Oh yeah sorry, forgot to close the Issue!

from postcss.org.

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.