Skip to content

Commit

Permalink
Additional changes to support move from src to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fuller authored and diasbruno committed Jun 16, 2017
1 parent 138f8ef commit 92ccf1d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ engines:
javascript:
ratings:
paths:
- lib/**
- src/**
- "**.js"
exclude_paths:
- "specs/"
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Modal from '../../lib/index';
import Modal from '../../src/index';

const appElement = document.getElementById('example');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --inline --host 127.0.0.1 --content-base examples/",
"test": "cross-env NODE_ENV=test karma start",
"test": "cross-env BABEL_ENV=commonjs NODE_ENV=test karma start",
"lint": "eslint lib/",
"clean": "rimraf lib es",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
Expand Down
2 changes: 1 addition & 1 deletion specs/Modal.events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import expect from 'expect';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Modal from '../lib/components/Modal';
import Modal from '../src/components/Modal';
import {
moverlay, mcontent,
clickAt, mouseDownAt, mouseUpAt, escKeyDown, tabKeyDown,
Expand Down
4 changes: 2 additions & 2 deletions specs/Modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import createReactClass from 'create-react-class';
import Modal from '../lib/components/Modal';
import * as ariaAppHider from '../lib/helpers/ariaAppHider';
import Modal from '../src/components/Modal';
import * as ariaAppHider from '../src/helpers/ariaAppHider';
import {
isBodyWithReactModalOpenClass,
contentAttribute,
Expand Down
4 changes: 2 additions & 2 deletions specs/Modal.style.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import expect from 'expect';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Modal from '../lib/components/Modal';
import * as ariaAppHider from '../lib/helpers/ariaAppHider';
import Modal from '../src/components/Modal';
import * as ariaAppHider from '../src/helpers/ariaAppHider';
import {
mcontent, moverlay,
renderModal, emptyDOM
Expand Down
2 changes: 1 addition & 1 deletion specs/helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Modal from '../lib/components/Modal';
import Modal from '../src/components/Modal';
import TestUtils from 'react-addons-test-utils';

const divStack = [];
Expand Down
2 changes: 1 addition & 1 deletion specs/spec_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ testsContext.keys().forEach((path) => {
}
});

const componentsContext = require.context('../lib', true, /\.js$/);
const componentsContext = require.context('../src', true, /\.js$/);
componentsContext.keys().forEach((path) => {
try {
componentsContext(path);
Expand Down
4 changes: 2 additions & 2 deletions webpack.dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var reactDOMExternal = {
module.exports = {

entry: {
'react-modal': './lib/index.js',
'react-modal.min': './lib/index.js'
'react-modal': './src/index.js',
'react-modal.min': './src/index.js'
},

externals: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (process.env.CONTINUOUS_INTEGRATION || process.env.COVERAGE) {
commonConfig.module.postLoaders = commonConfig.module.postLoaders || [];
commonConfig.module.postLoaders.push({
test: /\.js$/,
include: path.resolve('lib'),
include: path.resolve('src'),
loader: 'istanbul-instrumenter'
});
}
Expand Down

0 comments on commit 92ccf1d

Please sign in to comment.