@toolbarthomas/harbor

0.910.0 • Public • Published

Harbor

Build Drupal compatible Twig styleguides, components and templates within Storybook.

Forget about maintaining multiple environements for your Drupal project: Define, develop and test any Twig pattern within Storybook; implements these patterns within Drupal and apply optional data transformation in seperate Drupal specific templates.

💎 Features:

🚀 Let's begin:

Harbor is specifically used during the development of your Twig components for a custom Drupal theme or module. You should install Harbor directly within the root of this module/theme context via Node.js:

$ npm install @toolbarthomas/harbor

Harbor will run the default Workers while running the Node command without any arguments. The Workers will process any existing asset within the default configuration.

🎨 Stylguide ABC

The default Harbor command will only generate the assets that could be used within the Twig templates. You can generate and view any existing Twig templates within one single command while following the configured structure:

$ node ./node_modules/@toolbarthomas/harbor/index.js --task=setup

Harbor will scan your working directory for any existing Twig component and generates the minimal Storybook stories with optional mocking data. With any Storybook stories template you can view your styleguide via:

$ node ./node_modules/@toolbarthomas/harbor/index.js --styleguide

That's it, a styleguide will be generated or launched according to your environment mode. More information regarding the workflow, API & implementations can be found here:

  1. Workers
  2. Plugins
  3. Implementations and Tips/tricks
  4. Changelog or Deprecations

⚙️ Modular Tooling

Harbor comes with optional Worker utilities that can generate the actual assets for the theme. These compilers are completely optional and can always be enabled/disabled according to your configuration:

The actual Workers are triggered from the configured NPM commands,you can customize this configuration and many more via an optional Harbor configration.

See the Front-End Guidelines for more details regarding the usage and documentation.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.910.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.910.01
0.909.00
0.908.00
0.907.00
0.906.00
0.905.00
0.904.00
0.903.00
0.902.00
0.901.00
0.900.00
0.816.00
0.815.00
0.814.00
0.813.30
0.813.10
0.813.00
0.812.00
0.811.00
0.810.00
0.809.10
0.809.00
0.806.10
0.806.00
0.805.00
0.800.00
0.724.00
0.723.00
0.722.00
0.721.00
0.720.00
0.710.00
0.709.00
0.708.00
0.707.10
0.707.00
0.706.00
0.705.00
0.704.00
0.703.00
0.702.00
0.701.10
0.300.180
0.701.00
0.700.00
0.300.00
0.226.00
0.225.01
0.224.00
0.223.10
0.223.00
0.222.10
0.222.00
0.221.00
0.220.10
0.220.00
0.219.00
0.218.00
0.217.40
0.217.30
0.217.20
0.217.10
0.217.00
0.216.00
0.215.00
0.214.00
0.213.00
0.212.00
0.211.00
0.210.00
0.209.00
0.208.01
0.207.00
0.206.00
0.205.00
0.204.00
0.203.00
0.202.00
0.201.00
0.200.20
0.200.10
0.200.00
0.126.00
0.125.30
0.125.20
0.125.10
0.125.00
0.124.20
0.124.10
0.124.00
0.123.00
0.122.00
0.121.00
0.120.70
0.120.60
0.120.50
0.120.40
0.120.30
0.120.20
0.120.10
0.120.00
0.119.00
0.118.50
0.118.40
0.118.30
0.118.20
0.118.10
0.118.00
0.117.40
0.117.20
0.117.10
0.117.00
0.116.00
0.115.00
0.114.10
0.114.00
0.112.20
0.112.10
0.112.00
0.111.10
0.111.00
0.110.20
0.110.10
0.110.00
0.105.30
0.105.20
0.105.10
0.105.00
0.104.00
0.103.70
0.103.60
0.103.50
0.103.40
0.103.30
0.103.20
0.103.10
0.103.00
0.102.00
0.101.00
0.100.00
0.94.10
0.94.00
0.93.30
0.93.20
0.93.10
0.93.00
0.92.00
0.91.00
0.90.20
0.90.10
0.90.00
0.89.60
0.89.50
0.89.40
0.89.30
0.89.20
0.89.10
0.89.00
0.88.50
0.88.40
0.88.30
0.88.20
0.88.10
0.88.00
0.87.10
0.87.00
0.86.30
0.86.20
0.86.10
0.86.00
0.85.80
0.85.70
0.85.60
0.85.50
0.85.40
0.85.20
0.85.00
0.84.00
0.82.00
0.79.70
0.79.60
0.79.50
0.79.40
0.79.30
0.79.20
0.79.10
0.79.00
0.78.10
0.78.00
0.77.20
0.77.10
0.77.00
0.76.10
0.76.00
0.75.90
0.75.80
0.75.70
0.75.60
0.75.50
0.75.40
0.75.30
0.75.20
0.75.10
0.75.00
0.74.30
0.74.20
0.74.10
0.74.00
0.73.00
0.72.80
0.72.70
0.72.60
0.72.40
0.72.30
0.72.20
0.72.10
0.72.00
0.61.10
0.61.00
0.60.30
0.60.20
0.60.10
0.60.00
0.50.20
0.50.10
0.50.00
0.41.00
0.40.00
0.32.20
0.32.10
0.32.00
0.30.00
0.24.00
0.23.00
0.20.00
0.18.00
0.16.00
0.15.01
0.13.30
0.13.20
0.13.10
0.13.00
0.12.10
0.12.00
0.11.00
0.10.00
0.9.60
0.9.50
0.9.41
0.9.30
0.9.20
0.9.10
0.9.00
0.8.70
0.8.61
0.8.50
0.8.40
0.8.30
0.8.20
0.8.10
0.8.00
0.7.00
0.6.10
0.6.00
0.5.00
0.4.60
0.4.50
0.4.40
0.4.20
0.4.10
0.4.00

Package Sidebar

Install

npm i @toolbarthomas/harbor

Weekly Downloads

86

Version

0.910.0

License

MIT

Unpacked Size

176 kB

Total Files

89

Last publish

Collaborators

  • toolbarthomas