aboutsummaryrefslogtreecommitdiffstats
path: root/packages/metacoin
diff options
context:
space:
mode:
Diffstat (limited to 'packages/metacoin')
-rw-r--r--packages/metacoin/package.json3
-rw-r--r--packages/metacoin/test/metacoin_test.ts4
-rw-r--r--packages/metacoin/test/utils/config.ts1
-rw-r--r--packages/metacoin/test/utils/web3_wrapper.ts1
4 files changed, 4 insertions, 5 deletions
diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json
index b7c0cbec9..ff8cea62c 100644
--- a/packages/metacoin/package.json
+++ b/packages/metacoin/package.json
@@ -7,10 +7,11 @@
"private": true,
"description": "Example solidity project using 0x dev tools",
"scripts": {
+ "watch": "tsc -w",
+ "lint": "tslint --project . --exclude **/src/contract_wrappers/**/*",
"watch_without_deps": "yarn pre_build && tsc -w",
"build": "yarn pre_build && tsc",
"pre_build": "run-s compile generate_contract_wrappers copy_artifacts",
- "lint": "tslint --project .",
"clean": "shx rm -rf lib artifacts src/contract_wrappers",
"copy_artifacts": "copyfiles './artifacts/**/*' './contracts/**/*' ./lib",
"test": "yarn run_mocha",
diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts
index 3436fb49e..09e0d6b36 100644
--- a/packages/metacoin/test/metacoin_test.ts
+++ b/packages/metacoin/test/metacoin_test.ts
@@ -1,7 +1,6 @@
import { BlockchainLifecycle, devConstants } from '@0xproject/dev-utils';
import { ContractArtifact } from '@0xproject/sol-compiler';
import { BigNumber } from '@0xproject/utils';
-import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as chai from 'chai';
import { LogWithDecodedArgs } from 'ethereum-types';
import 'make-promises-safe';
@@ -18,7 +17,7 @@ const artifact: ContractArtifact = MetacoinArtifact as any;
chaiSetup.configure();
const { expect } = chai;
const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
-
+// tslint:disable:no-unnecessary-type-assertion
describe('Metacoin', () => {
let metacoin: MetacoinContract;
const ownerAddress = devConstants.TESTRPC_FIRST_ADDRESS;
@@ -116,3 +115,4 @@ describe('Metacoin', () => {
});
});
});
+// tslint:enable:no-unnecessary-type-assertion
diff --git a/packages/metacoin/test/utils/config.ts b/packages/metacoin/test/utils/config.ts
index ef4932845..c26fe5f25 100644
--- a/packages/metacoin/test/utils/config.ts
+++ b/packages/metacoin/test/utils/config.ts
@@ -1,5 +1,4 @@
import { devConstants } from '@0xproject/dev-utils';
-import * as path from 'path';
export const config = {
networkId: 50,
diff --git a/packages/metacoin/test/utils/web3_wrapper.ts b/packages/metacoin/test/utils/web3_wrapper.ts
index 724ed4e1f..273cdf961 100644
--- a/packages/metacoin/test/utils/web3_wrapper.ts
+++ b/packages/metacoin/test/utils/web3_wrapper.ts
@@ -2,7 +2,6 @@ import { env, EnvVars } from '@0xproject/dev-utils';
import { GanacheSubprovider, prependSubprovider } from '@0xproject/subproviders';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as fs from 'fs';
-import * as _ from 'lodash';
import ProviderEngine = require('web3-provider-engine');
import { config } from './config';