Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build script, prepush hook, peerDependencies #1

Open
3 tasks
bogas04 opened this issue Oct 30, 2018 · 1 comment
Open
3 tasks

Add build script, prepush hook, peerDependencies #1

bogas04 opened this issue Oct 30, 2018 · 1 comment

Comments

@bogas04
Copy link
Contributor

bogas04 commented Oct 30, 2018

  • Peer dependency on react@^16.3.0
  • A build script that would transpile with babel-plugins
  • A prepush hook that would build the library
@iamchiranjeebpanda01
Copy link

Modified "package.json" for the given issue:
{
"name": "@swiggy/react-context-decorator",
"version": "1.0.0",
"description": "A react utility function to decorate a component with context, similar to how react-redux works",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"build": "babel index.js -o dist/index.js",
"prepush": "npm run build"
},
"husky": {
"hooks": {
"pre-push": "npm run prepush"
}
},
"author": "@Swiggy",
"license": "MIT",
"dependencies": {
"peer": "^1.0.0",
"react": "^16.3.0"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"husky": "^8.0.3"
},
"babel": {
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-transform-class-properties"]
}
}

@VSuryaBhargava VSuryaBhargava removed their assignment Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants