Skip to content

Commit

Permalink
Merge pull request #11 from homer0/next
Browse files Browse the repository at this point in the history
v3.0.0
  • Loading branch information
homer0 committed Aug 1, 2019
2 parents a878dbb + 042a657 commit 2841cfd
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 473 deletions.
14 changes: 7 additions & 7 deletions .eslintrc
@@ -1,16 +1,16 @@
{
"extends": "airbnb-base",
"rules": {
indent: ['error', 2, {
MemberExpression: 0,
"indent": ["error", 2, {
"MemberExpression": 0
}],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"comma-dangle": ["error", {
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "never",
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"class-methods-use-this": "off",
"import/no-unresolved": "off",
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
8
8.10
8 changes: 0 additions & 8 deletions README.md
Expand Up @@ -63,18 +63,10 @@ When bundling your targets, the plugin will check if the target is for Node or i

## Development

Before doing anything, install the repository hooks:

```bash
# You can either use npm or yarn, it doesn't matter
yarn run hooks
```

### Yarn/NPM Tasks

| Task | Description |
|-------------------------|-------------------------------------|
| `yarn run hooks` | Install the GIT repository hooks. |
| `yarn test` | Run the project unit tests. |
| `yarn run lint` | Lint the modified files. |
| `yarn run lint:full` | Lint the project code. |
Expand Down
32 changes: 19 additions & 13 deletions package.json
Expand Up @@ -2,38 +2,44 @@
"name": "projext-plugin-rollup-react",
"description": "Allows you to bundle a React project with projext using the Rollup build engine.",
"homepage": "https://homer0.github.io/projext-plugin-rollup-react/",
"version": "2.0.2",
"version": "3.0.0",
"repository": "homer0/projext-plugin-rollup-react",
"author": "Leonardo Apiwan (@homer0) <me@homer0.com>",
"license": "MIT",
"dependencies": {
"@babel/preset-react": "^7.0.0",
"@babel/core": "7.4.4"
"@babel/preset-react": "7.0.0",
"@babel/core": "7.5.5"
},
"devDependencies": {
"wootils": "^2.3.0",
"wootils": "^2.6.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.3",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.1.0",
"@babel/preset-env": "7.4.4",
"@babel/plugin-transform-runtime": "7.4.4",
"jest-ex": "^6.0.1",
"@babel/preset-env": "7.5.5",
"@babel/plugin-transform-runtime": "7.5.5",
"jest-ex": "^6.1.1",
"jest-cli": "^24.8.0",
"jasmine-expect": "^4.0.1",
"jasmine-expect": "^4.0.3",
"esdoc": "^1.1.0",
"esdoc-standard-plugin": "^1.0.0",
"esdoc-node": "^1.0.4",
"coveralls": "^3.0.4"
"coveralls": "^3.0.5",
"husky": "^3.0.2"
},
"engine-strict": true,
"engines": {
"node": ">=8.0.0",
"node": ">=8.10.0",
"npm": ">=3.0.0"
},
"main": "src/index.js",
"husky": {
"hooks": {
"pre-commit": "./utils/hooks/pre-commit",
"post-merge": "./utils/hooks/post-merge"
}
},
"scripts": {
"hooks": "./utils/hooks/install",
"test": "./utils/scripts/test",
"lint": "./utils/scripts/lint",
"lint:full": "./utils/scripts/lint-full",
Expand Down
10 changes: 0 additions & 10 deletions utils/hooks/install

This file was deleted.

7 changes: 7 additions & 0 deletions utils/hooks/post-merge
@@ -0,0 +1,7 @@
#!/bin/bash -ex

if hash yarn 2>/dev/null; then
yarn
else
npm install
fi
3 changes: 0 additions & 3 deletions utils/hooks/post-merge.local

This file was deleted.

9 changes: 9 additions & 0 deletions utils/hooks/pre-commit
@@ -0,0 +1,9 @@
#!/bin/bash -e

if hash yarn 2>/dev/null; then
yarn run lint
yarn test
else
npm run lint
npm test
fi
4 changes: 0 additions & 4 deletions utils/hooks/pre-commit.local

This file was deleted.

0 comments on commit 2841cfd

Please sign in to comment.