package.json 4 KB
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
{
baesangjune's avatar
yarn    
baesangjune committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  "name": "@popperjs/core",
  "version": "2.6.0",
  "description": "Tooltip and Popover Positioning Engine",
  "main": "dist/cjs/popper.js",
  "main:umd": "dist/umd/popper.js",
  "module": "lib/index.js",
  "unpkg": "dist/umd/popper.min.js",
  "author": "Federico Zivolo <federico.zivolo@gmail.com>",
  "license": "MIT",
  "repository": "github:popperjs/popper-core",
  "keywords": [
    "tooltip",
    "popover",
    "dropdown",
    "popup",
    "popper",
    "positioning engine"
  ],
  "funding": {
    "type": "opencollective",
    "url": "https://opencollective.com/popperjs"
Sangjune Bae's avatar
Sangjune Bae committed
23
  },
baesangjune's avatar
yarn    
baesangjune committed
24
25
26
27
  "files": [
    "index.d.ts",
    "/dist",
    "/lib"
Sangjune Bae's avatar
Sangjune Bae committed
28
  ],
baesangjune's avatar
yarn    
baesangjune committed
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
  "sideEffects": false,
  "scripts": {
    "clean": "rimraf lib && rimraf dist && rimraf test/visual/dist",
    "test": "yarn test:unit && yarn test:functional",
    "test:unit": "jest --coverage src",
    "test:functional": "DEV_PORT=`get-port` jest tests/functional",
    "test:flow": "flow",
    "test:typescript": "tsc --project tests/typescript/tsconfig.json",
    "test:eslint": "eslint .",
    "dev": "NODE_ENV=dev concurrently 'yarn serve' 'yarn build:dev --watch'",
    "serve": "serve -l ${DEV_PORT:-5000} tests/visual",
    "build": "yarn clean && yarn build:es && yarn build:esbrowser && yarn build:bundles && yarn build:flow && yarn build:typescript",
    "build:es": "babel src -d lib --ignore '**/*.test.js','**/__mocks__'",
    "build:esbrowser": "BROWSER_COMPAT=true yarn build:es -d dist/esm",
    "build:bundles": "rollup -c .config/rollup.config.js",
    "build:dev": "NODE_ENV=dev babel src -d tests/visual/dist",
    "build:flow": "flow-copy-source --ignore \"**/*.test.js\" src lib && replace-in-files --string=__DEV__ --replacement=false 'lib/**/*.flow'",
    "build:typescript": "rimraf dist/typescript; flow-to-ts \"src/**/*.js\" --write --inline-utility-types; tsc-silent --project .config/tsconfig.json --createSourceFile .config/createSourceFile.js --suppress @; rimraf \"src/**/*.ts\"",
    "prepublishOnly": "yarn build"
  },
  "prettier": {
    "semi": true,
    "trailingComma": "es5",
    "singleQuote": true,
    "proseWrap": "always"
Sangjune Bae's avatar
Sangjune Bae committed
54
55
56
57
  },
  "babel": {
    "extends": "./.config/babel.config"
  },
baesangjune's avatar
yarn    
baesangjune committed
58
59
60
61
62
63
64
65
66
67
  "jest": {
    "preset": "./.config/jest.config"
  },
  "eslintConfig": {
    "extends": "./.config/eslint.config"
  },
  "husky": {
    "hooks": {
      "pre-commit": "pretty-quick --staged"
    }
Sangjune Bae's avatar
Sangjune Bae committed
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
  },
  "devDependencies": {
    "@ampproject/rollup-plugin-closure-compiler": "^0.25.2",
    "@atomico/rollup-plugin-sizes": "^1.1.4",
    "@babel/cli": "^7.8.3",
    "@babel/core": "^7.7.5",
    "@babel/plugin-transform-flow-strip-types": "^7.7.4",
    "@babel/plugin-transform-runtime": "^7.7.6",
    "@babel/preset-env": "^7.7.6",
    "@fezvrasta/tsc-silent": "^1.3.0",
    "@khanacademy/flow-to-ts": "^0.1.7",
    "@rollup/plugin-babel": "^5.0.0",
    "@rollup/plugin-replace": "^2.3.2",
    "babel-eslint": "^10.0.3",
    "babel-jest": "^25.5.1",
    "babel-plugin-add-import-extension": "^1.3.0",
    "babel-plugin-annotate-pure-calls": "^0.4.0",
    "babel-plugin-dev-expression": "^0.2.2",
    "babel-plugin-inline-replace-variables": "^1.3.1",
    "babel-plugin-transform-inline-environment-variables": "^0.4.3",
    "concurrently": "^5.2.0",
    "dotenv": "^8.2.0",
    "eslint": "^6.8.0",
    "eslint-plugin-flowtype": "^4.6.0",
    "eslint-plugin-import": "^2.20.0",
    "eslint-plugin-unused-imports": "^0.1.2",
    "flow-bin": "^0.139.0",
    "flow-copy-source": "^2.0.9",
    "get-port-cli": "^2.0.0",
    "husky": "^4.2.1",
    "jest": "^25.5.1",
    "jest-environment-jsdom-sixteen": "^1.0.3",
    "jest-environment-puppeteer": "^4.4.0",
    "jest-image-snapshot": "^3.1.0",
    "jest-puppeteer": "^4.4.0",
    "poster": "^0.0.9",
    "prettier": "^2.0.5",
    "pretty-quick": "^2.0.1",
    "puppeteer": "^3.0.2",
    "replace-in-files-cli": "^0.3.1",
    "rollup": "^2.7.3",
    "rollup-plugin-flow-entry": "^0.3.3",
    "rollup-plugin-license": "^2.0.0",
    "rollup-plugin-terser": "^5.2.0",
    "rollup-plugin-visualizer": "^4.0.3",
    "serve": "^11.3.0",
    "typescript": "^3.7.5"
baesangjune's avatar
yarn    
baesangjune committed
115
  }
Sangjune Bae's avatar
Sangjune Bae committed
116
}