Skip to content

Commit

Permalink
Merge pull request #6 from o3world/bug4/remove-integration-pieces-fro…
Browse files Browse the repository at this point in the history
…m-generator

Bug4/remove integration pieces from generator
  • Loading branch information
madelineo3 authored Sep 7, 2022
2 parents 6631591 + 664b1de commit 7fc1d25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
This will be O3 readme, moved project readme to generator-drupal-theme for npm
## 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!

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.

2 changes: 1 addition & 1 deletion generator-drupal-theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 3 additions & 19 deletions generator-drupal-theme/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
),
);

Expand Down Expand Up @@ -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('/')
Expand All @@ -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(
Expand Down

0 comments on commit 7fc1d25

Please sign in to comment.