028139a0e1
refs https://github.com/TryGhost/members.js/issues/12 - Updates package name and add umd/unpkg setup in `package.json` - Updated webpack config to publish minified bundle at `umd/memebrs.min.js` - Updated .gitignore to remove build folders
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "@tryghost/members-js",
|
|
"version": "0.1.0",
|
|
"license": "MIT",
|
|
"repository": "git@github.com:TryGhost/membersjs.git",
|
|
"author": "Ghost Foundation",
|
|
"unpkg": "umd/members.min.js",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"dependencies": {
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.3.2",
|
|
"@testing-library/user-event": "^7.1.2",
|
|
"prop-types": "^15.7.2",
|
|
"react": "^16.13.1",
|
|
"react-dom": "^16.13.1",
|
|
"react-scripts": "3.4.1"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "npm run build:combined && npm run build:bundle",
|
|
"build:combined": "node ./scripts/build-combined.js",
|
|
"build:bundle": "webpack --config webpack.config.js",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"lint": "eslint src --ext .js --cache",
|
|
"posttest": "yarn lint",
|
|
"prepublishOnly": "yarn build"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": ["react-app", "plugin:ghost/browser"],
|
|
"plugins": ["ghost"]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"eslint-plugin-ghost": "1.2.0",
|
|
"rewire": "^5.0.0",
|
|
"webpack-cli": "^3.3.11"
|
|
}
|
|
}
|