From 6dd0dc4198c9114b1ef43c370e39ebc7567235db Mon Sep 17 00:00:00 2001 From: Madeline Jensen Date: Wed, 7 Sep 2022 09:40:06 -0700 Subject: [PATCH 1/2] fix: removes references to php files. --- README.md | 6 ++++- generator-drupal-theme/README.md | 2 +- .../generators/app/index.js | 22 +++---------------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index fb0044f..cb658a2 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -This will be O3 readme, moved project readme to generator-drupal-theme for npm \ No newline at end of file +## Good day, O3'er. This README is just for you. + +This project is hosted on nmpjs.org as the [O3 Drupal Theme Generator](https://www.npmjs.com/package/@o3world/generator-drupal-theme). +Please follow the instructions there to install and use! + diff --git a/generator-drupal-theme/README.md b/generator-drupal-theme/README.md index 2a669ac..b1ec061 100644 --- a/generator-drupal-theme/README.md +++ b/generator-drupal-theme/README.md @@ -19,7 +19,7 @@ If this is your first time using the generator, you will want to install Yeoman After installing the above, this command will be available. - Within the folder you wish to generate your theme in. Typically in `web/themes/custom/` run: ```bash - yo drupal-theme + yo @o3world/drupal-theme ``` ## Storybook To run storybook: diff --git a/generator-drupal-theme/generators/app/index.js b/generator-drupal-theme/generators/app/index.js index fdea069..bc5de60 100644 --- a/generator-drupal-theme/generators/app/index.js +++ b/generator-drupal-theme/generators/app/index.js @@ -11,9 +11,9 @@ module.exports = class extends Generator { this.log( '\n\n', yosay( - `Welcome to the impressive ${chalk.red( - 'generator-drupal-theme', - )} generator!`, + `Hey! you are using the ${chalk.red( + '@o3world/generator-drupal-theme', + )} generator! I'm here to make your job easier`, ), ); @@ -94,10 +94,6 @@ module.exports = class extends Generator { // // Build file name specific theme files. // - buildFileFromTemplate( - this.templatePath('_root-files/drupal/AbstractComponent.php'), - themeDirectoryPath('/') - ) buildFileFromTemplate( this.templatePath('_root-files/drupal/TemplatedName.info.yml'), themeDirectoryPath('/') @@ -106,18 +102,6 @@ module.exports = class extends Generator { this.templatePath('_root-files/drupal/TemplatedName.libraries.yml'), themeDirectoryPath('/') ) - buildFileFromTemplate( - this.templatePath('_root-files/drupal/TemplatedName.theme'), - themeDirectoryPath('/') - ) - buildFileFromTemplate( - this.templatePath('_root-files/drupal/TemplatedNameComponentInterface.php'), - themeDirectoryPath('/') - ) - buildFileFromTemplate( - this.templatePath('_root-files/drupal/TemplatedNameServicesCollector.php'), - themeDirectoryPath('/') - ) // build other files this.fs.copyTpl( From 664b1ded89c661b685ca9cbac20230f7bdd8d8ad Mon Sep 17 00:00:00 2001 From: Madeline Jensen Date: Wed, 7 Sep 2022 09:43:08 -0700 Subject: [PATCH 2/2] Updates the readme for the parent repo. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cb658a2..03b6fce 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,7 @@ This project is hosted on nmpjs.org as the [O3 Drupal Theme Generator](https://www.npmjs.com/package/@o3world/generator-drupal-theme). Please follow the instructions there to install and use! +If you would like to contribute to this project, it would be greatly appreciated. Working on tools that help improve the workflow of fellow engineers is just a nice thing to do. Here are some notes. + +- This repo uses GitHub Actions & semantic releases to publish to npm. +