forked from ampproject/animations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 2.14 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
40
41
42
43
44
45
46
47
48
49
50
51
{
"name": "@ampproject/animations",
"version": "0.1.2",
"description": "JavaScript animation functions and helpers.",
"main": "dist/animations.js",
"module": "dist/animations.mjs",
"repository": {
"type": "git",
"url": "https://github.com/ampproject/animations.git"
},
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"scripts": {
"build": "tsc -p tsconfig-es6.json",
"build-watch": "npm run build -- --watch",
"clean": "rm -rf dist/ build/",
"compile": "mkdir -p dist && node_modules/google-closure-compiler/cli.js -O ADVANCED --js='compile/index.js' --js='build/**.js' --js='!build/**/test-*.js' --js='!build/src/testing/**' --externs='compile/externs.js' --rewrite_polyfills=false > build/closure-output.js",
"create-mjs": "cp build/closure-output.js dist/animations.mjs && sed -i '' 's;window.\\([^=]*=\\);export const \\1;g' dist/animations.mjs",
"create-cjs": "cp build/closure-output.js dist/animations.js && sed -i '' 's;window.\\([^=]*=\\);exports.\\1;g' dist/animations.js",
"create-global": "npm run tsickle && npm run compile",
"demo": "npm run build && http-server | grep -m 1 'http:\\.*' | xargs -I{} opener {}/docs/demo",
"dist": "npm run clean && npm run create-global && npm run create-mjs && npm run create-cjs && npm run build",
"karma": "karma start --browsers Chrome,Firefox karma.conf.js",
"test": "npm run karma -- --single-run",
"test-watch": "npm run karma -- --auto-watch",
"tsickle": "node_modules/tsickle/src/main.js",
"prepublish": "npm run dist"
},
"devDependencies": {
"@types/chai": "^4.1.6",
"@types/mocha": "^5.2.5",
"chai": "^4.2.0",
"google-closure-compiler": "^20181008.0.0",
"http-server": "^0.11.1",
"karma": "^3.0.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-mocha": "^1.3.0",
"karma-typescript": "^3.0.13",
"mocha": "^5.2.0",
"opener": "^1.5.1",
"tsickle": "^0.33.0",
"typescript": "git://github.com/mprobst/TypeScript.git#5456479a4a"
},
"dependencies": {},
"files": [
"dist"
]
}