-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 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
52
53
54
55
{
"name": "timezoned-date",
"version": "3.0.2",
"license": "Apache-2.0",
"description": "Constructors and objects behave exactly like built-in Date; the TZ offset is configurable",
"keywords": [
"date",
"isomorphic",
"jsdom",
"mock",
"monkeypatch",
"server-side-rendering",
"timezone",
"tz",
"utc"
],
"contributors": [
"James A. Rosen <[email protected]>",
"Georgii Dolzhykov <[email protected]>"
],
"repository": {
"type": "git",
"url": "git://github.com/thorn0/timezoned-date.git"
},
"main": "./lib",
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-preset-es2015": "^6.16.0",
"eslint": "^3.8.0",
"if-node-version": "^1.1.1",
"mocha": "~3.2.0",
"prettier": "^1",
"sweet.js": "0.7.8",
"test262-harness": "^1.5.6"
},
"scripts": {
"lint": "if-node-version \">=4\" eslint src/index.js --fix",
"test": "npm run testown && npm run test262",
"pretestown": "babel test/es2015_native.js -o test/es2015_babel.js",
"testown": "mocha --timeout 5000 test/*_test.js",
"quicktest": "npm --quicktest=true run testown",
"pretest262": "test -d test262/test262 || git clone https://github.com/tc39/test262.git test262/test262 --depth 1",
"test262": "cat test262/prelude.prefix lib/index.js test262/prelude.suffix > test262/prelude.js && test262-harness --prelude test262/prelude.js \"test262/test262/test/built-ins/Date/**/*.js\"",
"prenative262": "npm run pretest262",
"native262": "test262-harness \"test262/test262/test/built-ins/Date/**/*.js\"",
"prepublish": "npm run lint && npm run formatsrc && npm run build && npm run formatlib && npm test",
"prebuild": "test -d lib || mkdir lib",
"build": "npm run sweet && npm run babel",
"sweet": "sjs -r -m ./src/macros.js src/index.js > ./lib/index.js",
"babel": "babel lib/index.js -o lib/index.js",
"formatsrc": "if-node-version \">=4\" prettier --write --print-width 110 --tab-width 4 --single-quote src/index.js",
"formatlib": "if-node-version \">=4\" prettier --write --print-width 120 --tab-width 4 --single-quote lib/index.js"
}
}