aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/package.json
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-12-17 09:42:27 +0800
committerJacob Evans <jacob@dekz.net>2018-12-17 12:44:24 +0800
commit2a577e04750f9f90f72f763b45232dd9b5a35d93 (patch)
tree5b6837a220835361d7bc92e62c17e81ced6a1dde /packages/migrations/package.json
parent737d1dc54d72872e24abce5a1dbe1b66d35fa21a (diff)
downloaddexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.gz
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.bz2
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.lz
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.xz
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.zst
dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.zip
Add Docker image and Snapshot commands
Diffstat (limited to 'packages/migrations/package.json')
-rw-r--r--packages/migrations/package.json13
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/migrations/package.json b/packages/migrations/package.json
index 72ffe67b2..32d61a857 100644
--- a/packages/migrations/package.json
+++ b/packages/migrations/package.json
@@ -10,13 +10,22 @@
"scripts": {
"build": "tsc -b",
"build:ci": "yarn build",
- "clean": "shx rm -rf lib",
+ "clean": "shx rm -rf lib ${npm_package_config_snapshot_name} *.zip",
"lint": "tslint --format stylish --project .",
"migrate:v2": "run-s build script:migrate:v2",
+ "migrate:v2:snapshot": "run-s build script:migrate:v2:snapshot",
"script:migrate:v2": "node ./lib/migrate.js",
- "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES"
+ "script:migrate:v2:snapshot": "node ./lib/migrate_snapshot.js",
+ "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES",
+ "build:snapshot": "rm -rf ${npm_package_config_snapshot_name} && yarn migrate:v2:snapshot && zip -r \"$(git rev-parse HEAD).zip\" ${npm_package_config_snapshot_name}",
+ "build:snapshot:docker": "docker build --tag ${npm_package_config_docker_snapshot_name}:${npm_package_version} --tag ${npm_package_config_docker_snapshot_name}:latest .",
+ "publish:snapshot": "aws s3 cp $(git rev-parse HEAD).zip ${npm_package_config_s3_snapshot_bucket}",
+ "publish:snapshot:docker": "docker push ${npm_package_config_docker_snapshot_name}:latest"
},
"config": {
+ "s3_snapshot_bucket": "s3://testrpc-snapshots",
+ "docker_snapshot_name": "0xorg/ganache-cli",
+ "snapshot_name": "0x_ganache_snapshot",
"postpublish": {
"assets": []
}