- Got KSS Style Guides working again thanks to redbrickone
- Moved Koality Grid to global so it's not included on every file
- Theme should actually build now even when using Koality Grid
- Removed need to
html-wiring
as that is deprecated - Fixed the variables for Koality Grid so they conditionally get passed in
- Changed the way Koality Grid is imported to allow for variable overrides
- Added the Koality Grid as an install option
- Changed name to Koality Theme Generator on this fork of the project headed by Code Koalas
- Upgraded Yeoman to version 3
- When adding a component the
attach_library
on the top of the twig file includes the theme name - When adding a component the library definition gets added to the theme's library file
- Back in 1.3.3 I fixed the layout folder but didn't quite get it in the right spot. This is now fixed.
- Updated Babel to use env instead of a preset. This means you can simplify browser support a bit by adding browsers needed to the project's
package.json
. - Moved Autoprefixer config to the
package.json
file similar to Babel env. This sets us up for when both Babel env and Autoprefixer use the same config. - Added in error handling for JS and SCSS compiling. Now the watch task won't fail completely but will show you the error and keep watching files. This is a feature right?
- Add best practice about using the generator via npx.
- Added theme documentation that points out Autoprefixer and Babel project config.
-
Added a default description that's basically a reminder to update the theme description later. Thanks to Kevin for finding that Drupal chokes if there's no description provided.
Thanks Kevin for the issue!
-
Updated eslint to the new format. (Added a
.yml
extension.) Also fixed an issue where eslint will check the parent directories looking for a config file. This meant it could find other eslint config files and try to use those too. -
Fixed macro namespace for icon macro. This made it p much broken out of the box.
Thanks Tim and Eric for the issue!
-
Fixed issue with npm shrinkwrapping before all dev dependencies are installed.
-
Added
drupal.init.js
to KSS builder template.Thanks Eric for the issue!
-
Updated all build tool dev dependencies to the latest version.
-
Added a
.gitkeep
to the layout folder. If the theme was created and checked into the repo without anything being added to the layout dir... errors my friend. Errors.Thanks Tim for the issue!
-
Added in default breakpoints in
*.breakpoints.yml
. Having this file contain only comments was bugging out some environments.Thanks Carie for the issue!
- Updated version of Node / npm used with project. The old version was keeping the readme from showing up on https://www.npmjs.com/package/generator-mc-d8-theme.
- Moved the project from Bitbucket to Github and NPM.
- Updated README to reflect new install instructions.
- Added a warning at the end of the theme generation to remind you to delete any unused code. If you don't need it, delete it! ☠️
- Added a concat task if KSS node is used. Thanks Tobias and Mario! This should allow you to not worry about adding a new CSS file for every new component within the style guide. Everything should work by default. Note that the generated
all.css
file may need some modification if CSS files are being concatenated in the wrong order. I've provided an example of how to do that within the concat.js gulp task. Also, Don't use theall.css
file for production only the style guide. Leverage Drupal's Libraries to add CSS / JS files as needed.
- Removed duplicate style guide task include within the gulp file. This caused breakage if you didn't select the KSS option.
- Added link to CHANGELOG.md from the main README.
- Fixed broken path / twig name space for the components module. Thanks Mario!
🐊 If this release had a name it'd be "Danger Zone". We've greatly refactored the Gulp file, updated all node modules and done a ton of other stuff. We've even added a new Drupal JS behavior generator. Read on for more deets.
- Updated ESLint config for 'use strict' and switch statements.
- Added sample breakpoints.yml theme file. Thanks Jason!
- Updated node modules to latest versions.
- Added Babel config file. Also added a babel plugin that removes global strict mode from compiled js files.
- Broke apart Gulp file to individual tasks. Now Gulp tasks can be found in ...
./gulp-tasks
. They're standard NodeJS modules required into the maingulpfile.js
. This was done because the gulpfile was getting looooooooong. - Updated KSS builder (theme) to add in a way to disable the sidebar and remove container padding. Now you can click a button and kill the sidebar and all padding. It also appends a key + value pair to the URL so you don't have to do it every time you refresh the page.
- Moved all base styles into one file
_base.scss
. Since the base styles weren't touched very much, we think moving them into one file helps with maintainability. - Added a new subgenerator that creates Drupal JS Behaviors. We got tired of searching through old themes for the JS behavior boilerplate. ES6 / ES2015 ready!
- Fixed broken path to Singularity and Breakpoint node modules. Thanks Mario! No idea how this worked originally.
- Removed theme name suggestion as it's a little out of date. Seems silly to have to write "theme" AGAIN within a preprocess function.
- Removed option to not have a base theme as Drupal will use one even if you don't specify it. Setting it to something keeps our theme from being broke in the future if Drupal ever changes which theme is the "used by default" one.
- Removed npm shrinkwrap post install command as it can move depenencies around the shrinkwrap file. This causes issues with continuous integration deployment.
- Updated gitignore to ignore all .map files. Previously it was only ignoring css files and js files could sneak by.
- Updated generator readme with details on how to use the new JS Behavior subgenerator.
This update is mainly moving source files into a src
directory. The main theme files that Drupal needs are left in the top level theme folder. If you try to move them, stuff breaks.
- Added editor config file. http://editorconfig.org/
- Moved source files into a new
/src
directory.
- Added a new CHANGELOG.md! YAY!