0.4.1 • Published 8 months ago

event-theme-maker v0.4.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months 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.4.1

8 months ago

0.4.0

1 year ago

0.3.9

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago