1.5.3 • Published 7 months ago

@aptoma/dredition-cli v1.5.3

Weekly downloads
3
License
ISC
Repository
-
Last release
7 months ago

DrEdition CLI

Installation

npm install @aptoma/dredition-cli

Can also be installed globally:

npm install -g @aptoma/dredition-cli

Usage

DrEdition layoutpreview

Live reload

dredition layoutpreview live-reload

Should be called at the root of your assets directory. An example of an expected structure looks like this:

.
├── stylesheets
    ├── **/*.scss
│   └── styles.scss
└── templates
    └── components
        ├── headline
        │   ├── headline.html
        │   └── headline.scss
        ├── intro
        │   ├── intro.html
        │   └── intro.scss
        └── componentName
            ├── componentName.html
            └── componentName.scss

The first time the script is run, you will be asked to configure everything. The config file will be default be stored in ~/.aptoma/dredition/config.json.

If you are a developer and want to run live-reload with a dev environment, you'll have to edit config.json manually. The automated setup will only work for production use.

Example custom setups of config.json

Override urls for all configs:

{
    "default": {
        "frontendUrl": "https://{account}.dredition-dev.aptoma.no",
        "apiUrl": "https://dredition-api-dev.aptoma.no",
        "assetBuilderUrl": "https://asset-builder.dev.ecs.aws.aptoma.no"
    },
    "broadcast": {
        "account": "broadcast",
        "apikey": "secret"
    },
    "aptoma": {
        "account": "aptoma",
        "apikey": "secret"
    }
}

Override urls for only a specific config:

{
    "broadcast": {
        "account": "broadcast",
        "apikey": "secret",
    },
    "broadcast-dev": {
        "account": "broadcast",
        "apikey": "secret",
        "frontendUrl": "https://{account}.dredition-dev.aptoma.no",
        "apiUrl": "https://dredition-api-dev.aptoma.no",
        "assetBuilderUrl": "https://asset-builder.dev.ecs.aws.aptoma.no"
    }
}
1.5.3

7 months ago

1.5.2

11 months ago

1.5.1

1 year ago

1.5.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago