upgrade deps, add yarn lockfile
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
# Using Yarn:
|
||||
yarn add react2angular react react-dom prop-types
|
||||
|
||||
# Or, using NPM:
|
||||
npm install react2angular react react-dom prop-types --save
|
||||
```
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export function react2angular<Props>(
|
||||
|
||||
return {
|
||||
bindings: fromPairs(names.map(_ => [_, '<'])),
|
||||
controller: ['$element', class extends NgComponent<Props, void> {
|
||||
controller: ['$element', class extends NgComponent<Props> {
|
||||
constructor(private $element: IAugmentedJQuery) {
|
||||
super()
|
||||
}
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react2angular",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "The easiest way to embed React components in Angular 1 apps!",
|
||||
"main": "index.js",
|
||||
"main:esnext": "index.es2015.js",
|
||||
@@ -32,11 +32,11 @@
|
||||
"react-dom": ">=15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/angular-mocks": "^1.5.10",
|
||||
"@types/angular-mocks": ">=1.5",
|
||||
"@types/jasmine": "^2.5.53",
|
||||
"@types/jquery": "^3.2.10",
|
||||
"angular-mocks": "^1.6.5",
|
||||
"jasmine": "^2.7.0",
|
||||
"angular-mocks": ">=1.5",
|
||||
"jasmine": "^2.8.0",
|
||||
"karma": "^1.7.0",
|
||||
"karma-browserify": "^5.1.1",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
@@ -49,17 +49,17 @@
|
||||
"react": "^15.6.1",
|
||||
"react-dom": "^15.6.1",
|
||||
"rollupify": "^0.4.0",
|
||||
"tslint": "^5.5.0",
|
||||
"typescript": "^2.4.2",
|
||||
"tslint": "^5.7.0",
|
||||
"typescript": "^2.5.2",
|
||||
"watchify": "^3.9.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/angular": "^1.6.28",
|
||||
"@types/lodash.frompairs": "^4.0.2",
|
||||
"@types/angular": ">=1.5",
|
||||
"@types/lodash.frompairs": "^4.0.3",
|
||||
"@types/react": "^16.0.0",
|
||||
"@types/react-dom": "^15.5.1",
|
||||
"angular": ">=1.5.11",
|
||||
"lodash.frompairs": "^4.0.1",
|
||||
"ngcomponent": "^3.0.2"
|
||||
"ngcomponent": "^4.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user