Commit Graph

25 Commits

Author SHA1 Message Date
dependabot-preview[bot] 6b2616ebbf build(deps): bump uuid from 3.4.0 to 7.0.1 in /site
Bumps [uuid](https://github.com/uuidjs/uuid) from 3.4.0 to 7.0.1.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 13:06:23 -06:00
Pascal Precht 40c3d98217 feat(plugins/scripts-runner): introduce exec command to run scripts
This commit introduces a new feature that enables users to run (migration) scripts.
Similar to deployment hooks, scripts are functions that may perform operations on newly
deployed Smart Contracts.

Therefore a script needs to export a function that has access to some dependencies:

```
// scripts/001-some-script.js

module.exports = async ({contracts, web3, logger}) => {
  ...
};
```

Where `contracts` is a map of newly deployed Smart Contract instances, `web3` a blockchain connector
instance and `logger` Embark's logger instance. Script functions can but don't have to be `async`.

To execute such a script users use the newly introduced `exec` command:

```
$ embark exec development scripts/001-some-script.js
```

In the example above, `development` defines the environment in which Smart Contracts are being
deployed to as well as where tracking data is stored.
Alternativey, users can also provide a directory in which case Embark will try to execute every
script living inside of it:

```
$ embark exec development scripts
```

Scripts can fail and therefore emit an error accordingly. When this happens, Embark will
abort the script execution (in case multiple are scheduled to run) and informs the user
about the original error:

```
.. 001_foo.js running....
Script '001_foo.js' failed to execute. Original error: Error: Some error
```

It's recommended for scripts to emit proper instances of `Error`.

(Migration) scripts can be tracked as well but there are a couple of rules to be aware of:

- Generally, tracking all scripts that have been executed by default is not a good thing because
  some scripts might be one-off operations.
- OTOH, there might be scripts that should always be tracked by default
- Therefore, we introduce a dedicated `migrations` directory in which scripts live that should be
  tracked by default
- Any other scripts that does not live in the specified `migrations` directory will not be tracked **unless**
- The new `--track` option was provided

For more information see: https://notes.status.im/h8XwB7xkR7GKnfNh6OnPMQ
2020-02-12 16:47:04 -06:00
Pascal Precht d6d6a16169 chore: remove version switcher from docs layout 2020-02-12 10:02:22 +01:00
Iuri Matias 12057c4141 chore: update phantom siteId 2020-01-29 14:36:41 -05:00
Iuri Matias d328b9953a chore: update site urls 2020-01-28 12:07:17 -05:00
Jinho Jang 42d343712c update the footer 2020-01-23 14:02:20 -05:00
Iuri Matias 9aeddaa998 chore: rename org references from embark-framework to embarklabs 2020-01-16 15:36:29 -05:00
Bouzaine Chamsddine 6be404bc7f docs: updating copyrights to 2019-2020 2020-01-09 11:33:20 -05:00
Bouzaine Chamsddine fa49c3b3a4 docs: updating copyrights to 2020 2020-01-09 11:33:20 -05:00
Bouzaine Chamsddine 5b10a93edb docs: update improve the guide link to the new repo 2019-12-16 11:06:17 +01:00
Bouzaine Chamsddine 209baec7da docs: update the improve the guide link to the new repo 2019-12-16 11:06:17 +01:00
emizzle db0e45e96e chore(@embark/site): Add `—template` deprecation notice. 2019-12-11 09:39:20 -05:00
Jonathan Rainville c920bd5e14 chore(@embark-site): add all links to status network projects 2019-11-22 11:18:39 +01:00
Pascal Precht 7c5d662772 fix(@embark/site): ensure fathom script is only loaded in production environment 2019-11-18 08:59:56 -06:00
Jakub Sokołowski 7088c957a8 add Fathom Analytics JS to the site
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-14 15:52:16 +01:00
Michael Bradley, Jr 178264bad9 site: test whether linkjuice is defined not whether it's falsy 2019-08-26 09:44:01 -05:00
Michael Bradley, Jr 7f1f313796 site: fix path for copy-paste button 2019-08-26 09:44:01 -05:00
timhartmann 178d8cd632 feat(homepage): add section with logos from companies, who use embark 2019-07-15 09:10:47 +02:00
Pascal Precht ae5b92ff45 chore(docs): remove encoded special chars for paginator buttons 2019-06-21 10:51:14 -04:00
Pascal Precht ebe61f4085 fix(docs): ensure paginator helper has `__()` local
Templates used for rendering data inside helpers need to all over their local variables
passed down so they can be evaluated against some context object.

We didn't pass down the i18n `__()` function to the paginator template of our custom
theme resulting in compilation errors during site generation.

This commit fixes it.
2019-06-21 10:51:14 -04:00
Robin Percy f81e25710f 1 grammatical change hangover from other PR. 2019-06-20 09:04:58 -04:00
Pascal Precht 5e18674504 chore: localize static sites
This commit localizes messages of the mostly static sites of embark's
website. This is needed to have them internationalized into different
languages.
2019-06-20 10:49:26 +02:00
Pascal Precht 9239012bc6 chore(site): fix typos 2019-05-10 16:54:21 -04:00
Pascal Precht b5db6857a8
fix: add missing linkjuice built
We lost this when we moved the site into the monorepo because
all `dist` folders were ignored.

Co-Authored-By: PascalPrecht <pascal.precht@googlemail.com>
2019-05-07 17:42:32 +02:00
Pascal Precht 64731cf985 chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00