-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
39 lines (39 loc) · 1.79 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
36
37
38
39
{
"name": "embed",
"version": "0.5.0",
"description": "The embedded script for tweeker.io",
"main": "index.js",
"scripts": {
"update-version": "yarn version",
"build": "yarn run update-version && rm dist/* && yarn run webpack --env production && cp dist/*.js dist/latest.js && yarn run external",
"build:staging": "rm dist/* && yarn run webpack --env staging && cp dist/*.js dist/latest.js && yarn run external",
"external": "uglifyjs --compress --mangle --output dist/external.js -- src/external.js ",
"start": "rm dist/* && yarn run webpack --env development && yarn run external && webpack-dev-server --env development",
"upload": "aws s3 sync --acl public-read --profile tweeker dist/ s3://tweeker-embed",
"upload:staging": "aws s3 sync --acl public-read --profile tweeker dist/ s3://tweeker-embed-staging",
"invalidate": "aws cloudfront --profile tweeker create-invalidation --distribution-id EZC8IDGNC6NNW --paths '/latest.js' '/version.txt' '/external.js'",
"invalidate:staging": "aws cloudfront --profile tweeker create-invalidation --distribution-id E2MRGMMRJ8LZZY --paths '/latest.js' '/version.txt' '/external.js'",
"deploy": "yarn build && yarn upload && yarn invalidate",
"deploy:staging": "yarn build:staging && yarn upload:staging && yarn invalidate:staging"
},
"keywords": [],
"author": "Tweeker LLC",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-loader": "^8.0.5",
"create-file-webpack": "^1.0.2",
"dotenv": "^8.1.0",
"nodemon": "^1.18.11",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.1",
"webpack-dev-server": "^3.10.3"
},
"dependencies": {
"@babel/polyfill": "^7.4.3",
"core-js": "^3.0.1",
"global": "^4.4.0"
}
}