Skip to content
Permalink
Browse files

fix(constants): move constants into src and exclude from esdocs

  • Loading branch information...
satello committed Apr 13, 2018
1 parent 3a26eb9 commit 4a510bbaaf913a8cfacc45b66aa2c345a8df31a3
@@ -1,6 +1,7 @@
module.exports = {
source: './src',
destination: './docs',
excludes: ['constants/'],
plugins: [
{ name: 'esdoc-standard-plugin' },
{ name: 'esdoc-ecmascript-proposal-plugin', option: { all: true } }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,7 +2,7 @@ import contract from 'truffle-contract'
import _ from 'lodash'

import isRequired from '../utils/isRequired'
import * as errorConstants from '../../constants/error'
import * as errorConstants from '../constants/error'
import Web3Wrapper from '../utils/Web3Wrapper'

/**
@@ -1,6 +1,6 @@
import _ from 'lodash'

import * as arbitratorConstants from '../../../constants/arbitrator'
import * as arbitratorConstants from '../../constants/arbitrator'
import AbstractContract from '../AbstractContract'

/**
@@ -1,8 +1,8 @@
import PinakionPOCArtifact from 'kleros/build/contracts/PinakionPOC' // FIXME: mock
import _ from 'lodash'

import * as ethConstants from '../../../../constants/eth'
import * as errorConstants from '../../../../constants/error'
import * as ethConstants from '../../../constants/eth'
import * as errorConstants from '../../../constants/error'
import ContractImplementation from '../../ContractImplementation'
import deployContractAsync from '../../../utils/deployContractAsync'

@@ -1,7 +1,7 @@
import BlockHashRNGArtifact from 'kleros-interaction/build/contracts/BlockHashRNG'
import _ from 'lodash'

import * as ethConstants from '../../../../constants/eth'
import * as ethConstants from '../../../constants/eth'
import ContractImplementation from '../../ContractImplementation'
import deployContractAsync from '../../../utils/deployContractAsync'

@@ -1,9 +1,9 @@
import arbitrableTransactionArtifact from 'kleros-interaction/build/contracts/ArbitrableTransaction'
import _ from 'lodash'

import * as ethConstants from '../../../../constants/eth'
import * as contractConstants from '../../../../constants/contract'
import * as errorConstants from '../../../../constants/error'
import * as ethConstants from '../../../constants/eth'
import * as contractConstants from '../../../constants/contract'
import * as errorConstants from '../../../constants/error'
import ContractImplementation from '../../ContractImplementation'
import deployContractAsync from '../../../utils/deployContractAsync'

@@ -1,9 +1,9 @@
import klerosArtifact from 'kleros/build/contracts/KlerosPOC'
import _ from 'lodash'

import * as ethConstants from '../../../../constants/eth'
import * as errorConstants from '../../../../constants/error'
import * as arbitratorConstants from '../../../../constants/arbitrator'
import * as ethConstants from '../../../constants/eth'
import * as errorConstants from '../../../constants/error'
import * as arbitratorConstants from '../../../constants/arbitrator'
import ContractImplementation from '../../ContractImplementation'
import deployContractAsync from '../../../utils/deployContractAsync'

@@ -1,7 +1,7 @@
import _ from 'lodash'

import * as arbitratorConstants from '../../constants/arbitrator'
import * as disputeConstants from '../../constants/dispute'
import * as arbitratorConstants from '../constants/arbitrator'
import * as disputeConstants from '../constants/dispute'
import isRequired from '../utils/isRequired'

/**
@@ -1,9 +1,9 @@
import _ from 'lodash'

import * as arbitratorConstants from '../../constants/arbitrator'
import * as notificationConstants from '../../constants/notification'
import * as disputeConstants from '../../constants/dispute'
import { MISSING_STORE_PROVIDER } from '../../constants/error'
import * as arbitratorConstants from '../constants/arbitrator'
import * as notificationConstants from '../constants/notification'
import * as disputeConstants from '../constants/dispute'
import { MISSING_STORE_PROVIDER } from '../constants/error'
import isRequired from '../utils/isRequired'

/**
@@ -2,7 +2,7 @@ import _ from 'lodash'

import PromiseQueue from '../utils/PromiseQueue'
import isRequired from '../utils/isRequired'
import * as errorConstants from '../../constants/error'
import * as errorConstants from '../constants/error'

/**
* EventListener is used to watch events on the blockchain for a set of contracts.
@@ -1,6 +1,6 @@
import _ from 'lodash'

import * as errorConstants from '../../constants/error'
import * as errorConstants from '../constants/error'

import PromiseQueue from './PromiseQueue'

@@ -1,7 +1,7 @@
import contract from 'truffle-contract'

import * as ethConstants from '../../constants/eth'
import { UNABLE_TO_DEPLOY_CONTRACT } from '../../constants/error'
import * as ethConstants from '../constants/eth'
import { UNABLE_TO_DEPLOY_CONTRACT } from '../constants/error'

import isRequired from './isRequired'

@@ -1,4 +1,4 @@
import { MISSING_PARAMETERS } from '../../constants/error'
import { MISSING_PARAMETERS } from '../constants/error'

/**
* Used as the default parameter for an arguemnt that is considered required. It will
@@ -2,7 +2,7 @@ import Web3 from 'web3'

import KlerosPOC from '../../src/contracts/implementations/arbitrator/KlerosPOC'
import EventListener from '../../src/utils/EventListener'
import * as ethConstants from '../../constants/eth'
import * as ethConstants from '../../src/constants/eth'
import setUpContracts from '../helpers/setUpContracts'
import waitNotifications from '../helpers/waitNotifications'
import delaySecond from '../helpers/delaySecond'
@@ -2,8 +2,8 @@ import Web3 from 'web3'

import KlerosPOC from '../../src/contracts/implementations/arbitrator/KlerosPOC'
import ArbitrableTransaction from '../../src/contracts/implementations/arbitrable/ArbitrableTransaction'
import * as ethConstants from '../../constants/eth'
import * as errorConstants from '../../constants/error'
import * as ethConstants from '../../src/constants/eth'
import * as errorConstants from '../../src/constants/error'
import setUpContracts from '../helpers/setUpContracts'
import delaySecond from '../helpers/delaySecond'

@@ -3,8 +3,8 @@ import Web3 from 'web3'
import KlerosPOC from '../../src/contracts/implementations/arbitrator/KlerosPOC'
import ArbitrableTransaction from '../../src/contracts/implementations/arbitrable/ArbitrableTransaction'
import Notifications from '../../src/resources/Notifications'
import * as ethConstants from '../../constants/eth'
import * as notificationConstants from '../../constants/notification'
import * as ethConstants from '../../src/constants/eth'
import * as notificationConstants from '../../src/constants/notification'
import setUpContracts from '../helpers/setUpContracts'
import delaySecond from '../helpers/delaySecond'

0 comments on commit 4a510bb

Please sign in to comment.
You can’t perform that action at this time.