I wanted to start a Plan for a new 3.x branch to mainly set this up as a starterkit ready theme for Drupal 9/10.
Action items
- #3337116: Set Drupal core to 9.3.0 for 3.x for Starterkit
- #3337052: Convert Basic to use starterkit theme
- #3337106: Unable to install theme build pipeline due to node-sass dependency
- #3337311: Update node dependencies
- #3337310: Remove IE config
- #3338111: Remove Gulp/Grunt and use NPM scripts to run scripts
- Update package.json to bring in Bourbon 5 and Neat 2 (Last time I checked, the new versions were not available as an option yet).
- Use Bourbon or not Bourbon 5 removes mixins that handle vendor prefixing. With this, we should add PostCSS to our Grunt package to handle vendor prefixing moving forward.
Items for review
SASS or PostCSS?
TBD
Bourbon or Not Bourbon?
TBD
Mobile and dropdown menus
There have been a couple request for having responsive and drop down menus in Basic. I believe other themes link Bootstrap and Omega come with this functionality already. Would this be a help addition to basic? I think we should continue to take the "starter-kit" approach keeping the styles simple.
See: https://www.drupal.org/node/2704147 & https://www.drupal.org/node/2798385
NPM Scripts
Remove Gulp/Grunt and use NPM scripts to run scripts
Doc Improvements
We have some opportunities for better docs in a variety of areas.
- D7 & D8: Review install instructions for node/npm.
- D8: Document why messages & tabs css is in a theme library
- ...add more notes here as we discover areas for improvement.
Let us know if you have other ideas...
Comments
Comment #2
joelpittetComment #3
joelpittetComment #4
joelpittetComment #5
joelpittetComment #6
joelpittetComment #7
joelpittetComment #8
awasson commented@ joelpittet, Is this using the package.json file you shared with us a few years ago?
This is the version I've been using with a modded version of Basic for D9 and aside from not creating map.js, it's super light and fast.
Comment #9
joelpittet@awasson Yes that would be a good approach I think to transition away from what we have, but I think we need to make what we have currently work. #3337106: Unable to install theme build pipeline due to node-sass dependency
I created that comment as a task here #3338111: Remove Gulp/Grunt and use NPM scripts to run scripts Want to take a crack at that?
Comment #10
joelpittet@awasson I pushed a MR to #3338111: Remove Gulp/Grunt and use NPM scripts to run scripts have a peek and see if I missed anything.
Comment #11
awasson commented@joelpittet,
Thanks for that. I've cloned the 3.0 Dev and tested it locally. It seems to work well in my Mac OS Ventura 13.2 environment. In my latest Basic themes, I've been using "node-sass": "^5.0" and on my arm64 (M2 Chip) Mac and found that I had to unlink the latest Node and use node 14. I'm not sure if that's the same case with Sass. I see that you've also switched out node-sass for "sass": "^1.0.0".
Anyway npm install installed without any issues and npm run watch:all appears to work well.
Cheers,
Andrew