-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
35 lines (35 loc) · 2.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "adtoken-site",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "npm run deploy:robust && npm run deploy:lunar",
"deploy:robust": "hugo --buildDrafts --theme=robust --baseUrl=\"https://adtoken.com\" && npm run htmlmin && npm run uglifyjs && aws s3 sync ./public s3://adtoken.com --acl=public-read --profile=metax --region=us-west-2",
"deploy:lunar": "hugo --theme=lunar --baseUrl=\"https://adtoken.com\" && npm run htmlmin && npm run uglifyjs && aws s3 sync ./public s3://adtoken.com/ --acl=public-read --profile=metax --region=us-west-2",
"deploy:robust:staging": "hugo --buildDrafts --theme=robust --baseUrl=\"http://staging.adtoken.com\" && npm run htmlmin && npm run uglifyjs && aws s3 sync ./public s3://staging.adtoken.com --acl=public-read --profile=metax --region=us-west-2",
"deploy:lunar:staging": "hugo --theme=lunar --baseUrl=\"http://staging.adtoken.com\" && npm run htmlmin && npm run uglifyjs && aws s3 sync ./public s3://staging.adtoken.com/ --acl=public-read --profile=metax --region=us-west-2",
"invalidate-cache": "aws cloudfront create-invalidation --distribution-id E3MTBLBQ6FT84K --paths /index.html /* /assets/* /css/* /js/* /white-paper/* /team/* /about/* /resources/* /white-paper.pdf /white-paper.pdf/* /white-paper-cn.pdf /white-paper-cn.pdf/* /white-paper-jp.pdf/* /terms-of-use.pdf /purchase-agreement.pdf /uploads/* /error.html /uploads/* /token* /.well-known/acme-challenge/* /adtokenlogo.png /overview/* --profile=metax",
"invalidate-cache:acme": "aws cloudfront create-invalidation --distribution-id E3MTBLBQ6FT84K --paths /.well-known/* /.well-known/acme-challenge/OTBnDYWah-9CDtIJAMAzx4_-AQBv1SWPyk765ncwu_A /.well-known/acme-challenge/* --profile=metax",
"ics": "node tools/reminder-generator.js",
"build:vendor": "cat static/js/vendor/jquery-3.1.1.min.js static/js/vendor/semantic.min.js static/js/vendor/clock.js static/js/vendor/jquery.unveil.js static/js/vendor/inview.js static/js/vendor/clipboard.min.js > static/js/vendor.bundle.js",
"htmlmin": "html-minifier --minify-js --minify-css --remove-comments --remove-empty-attributes --case-sensitive --use-short-doctype --collapse-whitespace public/index.html > index.html.tmp && mv index.html.tmp public/index.html",
"uglifyjs": "uglifyjs public/js/main.js > main.js.tmp && mv main.js.tmp public/js/main.js",
"update-white-paper": "npm run invalidate-cache"
},
"repository": {
"type": "git",
"url": "git+https://github.com/metaxchain/adtoken-site.git"
},
"author": "",
"license": "",
"bugs": {
"url": "https://github.com/metaxchain/adtoken-site/issues"
},
"homepage": "https://github.com/metaxchain/adtoken-site#readme",
"devDependencies": {
"html-minifier": "^3.5.2",
"ics": "^1.5.0"
}
}