Skip to content

Instantly share code, notes, and snippets.

@ohmrefresh
Created August 29, 2020 07:10
Show Gist options
  • Save ohmrefresh/d677d6ae520909aba9366d67ccaee92f to your computer and use it in GitHub Desktop.
Save ohmrefresh/d677d6ae520909aba9366d67ccaee92f to your computer and use it in GitHub Desktop.
demo config react component project
{
"name": "component-a",
"version": "1.0.0",
"description": "Made with create-react-library",
"author": "ohmrefresh",
"license": "MIT",
"repository": "ohmrefresh/component-a",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"engines": {
"node": ">=10"
},
"scripts": {
"build": "microbundle-crl --no-compress --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"prepare": "run-s build",
"test": "run-s test:unit test:lint test:build",
"test:build": "run-s build",
"test:lint": "eslint .",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"predeploy": "cd example && npm install && npm run build",
"deploy": "gh-pages -d example/build",
"publish-my-org": "npm publish --registry http://127.0.0.1:8081/repository/npm-private/"
},
"peerDependencies": {
"react": "^16.0.0"
},
"devDependencies": {
"microbundle-crl": "^0.13.10",
"babel-eslint": "^10.0.3",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.7.0",
"eslint-config-standard": "^14.1.0",
"eslint-config-standard-react": "^9.2.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-standard": "^4.0.1",
"gh-pages": "^2.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1"
},
"files": [
"dist"
],
"publishConfig": {
"registry": "http://127.0.0.1:8081/repository/npm-private/"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment