Add package.json and fix pre-commit

This commit is contained in:
Pierre BURGY 2016-09-05 15:28:06 +02:00
parent e36bed4177
commit 9ff9cea534
4 changed files with 29 additions and 7 deletions

22
package.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "strapi-settings-manager",
"version": "0.0.0",
"description": "Strapi Settings Manager",
"repository": {
"type": "git",
"url": "git://github.com/strapi/strapi-admin.git"
},
"engines": {
"npm": ">=3"
},
"author": "Strapi",
"license": "MIT",
"scripts": {
"lint:admin": "cd public && npm run lint:eslint"
},
"pre-commit": ["lint:admin"],
"dependencies": {},
"devDependencies": {
"pre-commit": "^1.1.3"
}
}

View File

@ -12,7 +12,6 @@ import { selectPlugins } from 'containers/App/selectors';
export class PluginPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
// Init variables
let content;
@ -36,6 +35,10 @@ export class PluginPage extends React.Component { // eslint-disable-line react/p
}
}
PluginPage.propTypes = {
plugins: React.PropTypes.object,
};
const mapStateToProps = createSelector(
selectPlugins(),
(plugins) => ({ plugins })

View File

@ -2,14 +2,11 @@
"name": "react-boilerplate",
"version": "3.1.0",
"description": "A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices",
"repository": {
"type": "git",
"url": "git://github.com/mxstbr/react-boilerplate.git"
},
"private": true,
"engines": {
"npm": ">=3"
},
"author": "Max Stoiber",
"author": "Strapi",
"license": "MIT",
"scripts": {
"analyze:clean": "rimraf stats.json",