0.3.9 • Published 22 days ago

event-theme-maker v0.3.9

Weekly downloads
-
License
ISC
Repository
-
Last release
22 days ago

event-theme-maker

The Eventmaker themes developers tool belt !

Usage

In a repository containing Eventmaker themes run:

npm i event-theme-maker --save-dev

Then run:

  • start help
  • release help
  • release_email help
  • release_document help
  • validate help
  • new_theme help
  • new_repository help

All arguments can be set by a json config file or by an environment variable prefixed by ETM_.

How it works ?

When you run start

  • A webpack dev server start to compile assets (in theme/*/assets/{js|css}/main.{js|css})
  • A local server starts to serve assets
  • A local tunnel starts so your assets are accessible to the outside world
  • Your theme layouts are sent over to Eventmaker to include your local assets URL in it
  • A watcher will start so when you edit a liquid file it's automatically synchronized on Eventmaker

When you run release

  • Your assets are built by webpack
  • Your theme is bundled
  • Development environment variables are replaced by production environment variables
  • Your theme is published to the official Eventmaker theme repository
  • Your theme is available to use on your production event on Eventmaker

When you run release_email

  • Your email template is published to the official Eventmaker theme repository
  • Your email template is available to use on your production event on Eventmaker

When you run release_document

  • Your document template is published to the official Eventmaker theme repository
  • Your document template is available to use on your production event on Eventmaker

When you run validate we perform a bunch of validations to help you build themes that runs nicely on Eventmaker

When you run new_theme we create an empty theme based on the one you chose.

Only a member of Eventmaker's team should run new_repository. It's used to create a new repository for customers wishing to develop their own Eventmaker themes 😊.

For email themes development, you can add your theme in the email_themes folder. For document themes development, you can add your theme in the document_themes folder.

Requirements

  • You will need a theme developer account on Eventmaker ! Contact-us 😊.
  • The port 9999 must be free (the webpack dev server will run on this port)
  • tar must be installed (for the release command)
  • The release command can only be used in a git repository (it will run git rev to version assets)
  • This should be used in a repository that follows the structure for Eventmaker themes:
/
  shared/
  themes/
    my-theme-1/
      assets/
        js/
          main.js
        css/
          main.css
      config/
        translations.json
      layouts/
        embed.liquid
        theme.liquid
      sections/
      snippets/
      templates/
      specs.yml
    my-other-themes/
      ...
  email_themes/
    my-theme-1/
      config/
        *.json
      layouts/
        theme.liquid
      sections/
      snippets/
      specs.yml
    my-other-themes/
      ...
      specs.yml
  document_themes/
    my-theme-1/
      config/
        *.json
      layouts/
        theme.liquid
      sections/
      snippets/
      specs.yml
    my-other-theme/
      ...
      specs.yml
  package.json
  • all commands (start, release and validate) must be run from the root of the repository

For developers working on event-theme-maker

To work on this package, clone the repository and run npm install. Then you can use your local version in a repositoy containging Eventmaker themes by modifying in the package.json:

"event-theme-maker": "^x.y.z"

by

"event-theme-maker": "file:/path/to/the/root/of/this/repository"

0.3.9

22 days ago

0.3.8

1 month ago

0.3.7

2 months ago

0.3.6

3 months ago

0.3.5

3 months ago

0.3.2

3 months ago

0.3.4

3 months ago

0.3.3

3 months ago

0.3.0

5 months ago

0.3.1

5 months ago

0.2.23

5 months ago

0.2.22

9 months ago

0.2.21

9 months ago

0.2.20

9 months ago

0.2.19

10 months ago

0.2.18

11 months ago

0.2.17

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.13

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.7

1 year ago

0.2.6

2 years ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.5

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago