Skip to content

Commit

Permalink
Project Updates & Cleanup (#650)
Browse files Browse the repository at this point in the history
* Update .npmignore in dnd-core

* Update .npmignore

* Update .npmignore

* Update .npmignore

* Centralize eslint and jest tasks in the master project
  • Loading branch information
darthtrevino committed Feb 7, 2017
1 parent b3807e0 commit 23aac6c
Show file tree
Hide file tree
Showing 23 changed files with 647 additions and 746 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
@@ -0,0 +1,10 @@
__site__
__site_prerender__
site
scripts
node_modules
coverage
docs
dist
lib
webpack.config.js
13 changes: 13 additions & 0 deletions .eslintrc
@@ -0,0 +1,13 @@
{
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalDecorators": true
}
},
"env": {
"browser": true,
"node": true
}
}
5 changes: 4 additions & 1 deletion examples/.eslintrc
Expand Up @@ -11,7 +11,10 @@
"react/no-multi-comp": "off",
"react/no-unused-prop-types": "off",
"react/prefer-stateless-function": "off",
"react/require-default-props": "off"
"react/require-default-props": "off",
"react/jsx-filename-extension": "off",
"class-methods-use-this": "off",
"react/sort-comp": "off"
},
"env": {
"jest": true
Expand Down
58 changes: 0 additions & 58 deletions examples/01 Dustbin/Single Target in iframe/__tests__/Box-test.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/01 Dustbin/Single Target/__tests__/Box-test.js
@@ -1,6 +1,5 @@
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import expect from 'expect';
import wrapInTestContext from '../../../shared/wrapInTestContext';
import Box from '../Box';

Expand Down
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -35,7 +35,12 @@
"build-site": "./scripts/buildStaticSite.sh",
"publish-site": "./scripts/publishStaticSite.sh",
"postinstall": "lerna exec --concurrency=1 -- yarn && lerna exec --concurrency=99 -- linklocal",
"test": "env PATH=$PATH:./node_modules/.bin lerna run test"
"unit_test": "jest",
"jest:watch": "jest --watch",
"jest:cov": "jest --coverage",
"lint": "eslint .",
"test_modules": "env PATH=$PATH:./node_modules/.bin lerna run test",
"test": "npm-run-all lint jest:cov test_modules"
},
"devDependencies": {
"autoprefixer": "^6.7.2",
Expand Down Expand Up @@ -68,6 +73,7 @@
"null-loader": "^0.1.0",
"postcss": "^5.2.12",
"react": "^15.4.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"react-frame-component": "^1.0.0",
"react-hot-loader": "^1.2.3",
Expand Down
5 changes: 5 additions & 0 deletions packages/dnd-core/.npmignore
@@ -1 +1,6 @@
test
.babelrc
.eslintrc
.travis.yml
coverage
test-results.xml
14 changes: 0 additions & 14 deletions packages/dnd-core/.travis.yml

This file was deleted.

10 changes: 2 additions & 8 deletions packages/dnd-core/package.json
Expand Up @@ -5,17 +5,11 @@
"main": "lib/index.js",
"scripts": {
"clean": "rimraf lib",
"lint": "eslint '{src,test}/**/*.js'",
"build": "babel src --out-dir lib",
"unit_test": "jest",
"unit_test:watch": "jest --watch",
"unit_test:cov": "jest --coverage",
"develop": "npm run unit_test:watch",
"test": "npm-run-all clean lint build unit_test:cov",
"prepublish": "npm run build"
"test": "npm-run-all clean build",
"prepublish": "npm run test"
},
"devDependencies": {
"expect.js": "^0.3.1"
},
"dependencies": {
"asap": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/dnd-core/test/.eslintrc
@@ -1,8 +1,8 @@
{
"env": {
"mocha": true
"jest": true
},
"rules": {
"max-len": ["error", 120]
}
}
}

0 comments on commit 23aac6c

Please sign in to comment.