-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
package.json
28 lines (28 loc) · 1.47 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
{
"name": "date-fns-example-flow",
"version": "0.1.0",
"description": "Example of date-fns usage with flow",
"main": "example.js.flow",
"author": "Sasha Koss <koss@nocorp.me>",
"license": "MIT",
"dependencies": {
"babel-cli": "^6.22.2",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"flow-bin": "^0.38.0"
},
"scripts": {
"build": "yarn run build-date-fns && yarn run flow-check && yarn run build-babel",
"flow-check": "flow check",
"build-date-fns": "env PACKAGE_OUTPUT_PATH=\"$(pwd)/node_modules/date-fns\" ../../scripts/build/package.sh",
"build-babel": "yarn run build-babel-example && yarn run build-babel-fp && yarn run build-babel-misc && yarn build-babel-destructuring",
"build-babel-example": "mkdir -p dist && babel example.js.flow --out-file dist/example.js",
"build-babel-fp": "mkdir -p dist && babel fp.js.flow --out-file dist/fp.js",
"build-babel-misc": "mkdir -p dist && babel misc.js.flow --out-file dist/misc.js",
"build-babel-destructuring": "mkdir -p dist && babel destructuring.js.flow --out-file dist/destructuring.js",
"test": "yarn run test-example && yarn run test-fp && yarn run test-misc && yarn run test-destructuring",
"test-example": "test $(env TZ=UTC node ./dist/example.js) = true",
"test-fp": "test $(env TZ=UTC node ./dist/fp.js) = true",
"test-misc": "test $(env TZ=UTC node ./dist/misc.js) = true",
"test-destructuring": "test $(env TZ=UTC node ./dist/destructuring.js) = true"
}
}