Merge branch 'development' into feature/utils/console-log
* development: (25 commits) Enable coverage for all other packages with tests Fix parallel coverage results reporting Fix linter issuesx Remove outdated comment Add script copying to build command Add postpublish script to sol-cov Move configuration into package.json configs section Transform input data before encoding for callAsync and getABIEncodedTransactionData Consolidate docs generation and uploading logic Use async/await instead of promise syntax Move changelog entry remove unneeded include remove unused dep Fix lint issues Re-add linter to monorepo-scripts but with tslint-config dep at earlier version to avoid cyclical dependency small fixes move scripts to monorepro-scripts Fix gitignore Move abi-gen scripts to src Add missing dep ...
This commit is contained in:
		@@ -40,6 +40,10 @@ jobs:
 | 
				
			|||||||
          command: npm run testrpc -- --db testrpc_snapshot
 | 
					          command: npm run testrpc -- --db testrpc_snapshot
 | 
				
			||||||
          background: true
 | 
					          background: true
 | 
				
			||||||
      - run: yarn lerna:run --scope 0x.js test:circleci
 | 
					      - run: yarn lerna:run --scope 0x.js test:circleci
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/0x.js/coverage/lcov.info
 | 
				
			||||||
  test-contracts:
 | 
					  test-contracts:
 | 
				
			||||||
    docker:
 | 
					    docker:
 | 
				
			||||||
      - image: circleci/node:6.12
 | 
					      - image: circleci/node:6.12
 | 
				
			||||||
@@ -53,6 +57,10 @@ jobs:
 | 
				
			|||||||
          command: npm run testrpc -- --db testrpc_snapshot
 | 
					          command: npm run testrpc -- --db testrpc_snapshot
 | 
				
			||||||
          background: true
 | 
					          background: true
 | 
				
			||||||
      - run: yarn lerna:run --scope contracts test:circleci
 | 
					      - run: yarn lerna:run --scope contracts test:circleci
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/contracts/coverage/lcov.info
 | 
				
			||||||
  test-deployer:
 | 
					  test-deployer:
 | 
				
			||||||
    docker:
 | 
					    docker:
 | 
				
			||||||
      - image: circleci/node:6.12
 | 
					      - image: circleci/node:6.12
 | 
				
			||||||
@@ -66,6 +74,10 @@ jobs:
 | 
				
			|||||||
          command: npm run testrpc -- --db testrpc_snapshot
 | 
					          command: npm run testrpc -- --db testrpc_snapshot
 | 
				
			||||||
          background: true
 | 
					          background: true
 | 
				
			||||||
      - run: yarn lerna:run --scope @0xproject/deployer test:circleci
 | 
					      - run: yarn lerna:run --scope @0xproject/deployer test:circleci
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-deployer-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/deployer/coverage/lcov.info
 | 
				
			||||||
  test-rest:
 | 
					  test-rest:
 | 
				
			||||||
    docker:
 | 
					    docker:
 | 
				
			||||||
      - image: circleci/node:6.12
 | 
					      - image: circleci/node:6.12
 | 
				
			||||||
@@ -79,6 +91,26 @@ jobs:
 | 
				
			|||||||
          command: npm run testrpc -- --db testrpc_snapshot
 | 
					          command: npm run testrpc -- --db testrpc_snapshot
 | 
				
			||||||
          background: true
 | 
					          background: true
 | 
				
			||||||
      - run: yarn lerna:run --ignore contracts --ignore 0x.js --ignore @0xproject/deployer test:circleci
 | 
					      - run: yarn lerna:run --ignore contracts --ignore 0x.js --ignore @0xproject/deployer test:circleci
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/assert/coverage/lcov.info
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/connect/coverage/lcov.info
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/dev-utils/coverage/lcov.info
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/json-schemas/coverage/lcov.info
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - ~/repo/packages/subproviders/coverage/lcov.info
 | 
				
			||||||
  lint:
 | 
					  lint:
 | 
				
			||||||
    working_directory: ~/repo
 | 
					    working_directory: ~/repo
 | 
				
			||||||
    docker:
 | 
					    docker:
 | 
				
			||||||
@@ -97,6 +129,39 @@ jobs:
 | 
				
			|||||||
          keys:
 | 
					          keys:
 | 
				
			||||||
            - repo-{{ .Environment.CIRCLE_SHA1 }}
 | 
					            - repo-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
      - run: yarn prettier:ci
 | 
					      - run: yarn prettier:ci
 | 
				
			||||||
 | 
					  submit-coverage:
 | 
				
			||||||
 | 
					    docker:
 | 
				
			||||||
 | 
					      - image: circleci/node:6.12
 | 
				
			||||||
 | 
					    working_directory: ~/repo
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - repo-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-deployer-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - run: yarn report_coverage
 | 
				
			||||||
workflows:
 | 
					workflows:
 | 
				
			||||||
  version: 2
 | 
					  version: 2
 | 
				
			||||||
  main:
 | 
					  main:
 | 
				
			||||||
@@ -120,6 +185,9 @@ workflows:
 | 
				
			|||||||
      - lint:
 | 
					      - lint:
 | 
				
			||||||
          requires:
 | 
					          requires:
 | 
				
			||||||
            - build
 | 
					            - build
 | 
				
			||||||
notify:
 | 
					      - submit-coverage:
 | 
				
			||||||
  webhooks:
 | 
					          requires:
 | 
				
			||||||
    - url: https://coveralls.io/webhook?repo_token=ZYESXQbPiGidXzn2qkajycWa42uZHZsMX
 | 
					            - test-0xjs
 | 
				
			||||||
 | 
					            - test-deployer
 | 
				
			||||||
 | 
					            - test-rest
 | 
				
			||||||
 | 
					            - test-contracts
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -75,3 +75,6 @@ bin/
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# generated contract artifacts
 | 
					# generated contract artifacts
 | 
				
			||||||
packages/contracts/src/artifacts
 | 
					packages/contracts/src/artifacts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Monorepo scripts
 | 
				
			||||||
 | 
					packages/*/scripts/
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,6 @@ This repository is a monorepo including the 0x protocol smart contracts and nume
 | 
				
			|||||||
| --------------------------------------------------------------- | ---------------------------------------------------------------- |
 | 
					| --------------------------------------------------------------- | ---------------------------------------------------------------- |
 | 
				
			||||||
| [`@0xproject/contracts`](/packages/contracts)                   | 0x solidity smart contracts & tests                              |
 | 
					| [`@0xproject/contracts`](/packages/contracts)                   | 0x solidity smart contracts & tests                              |
 | 
				
			||||||
| [`@0xproject/react-docs-example`](/packages/react-docs-example) | Example documentation site created with `@0xproject/react-docs`  |
 | 
					| [`@0xproject/react-docs-example`](/packages/react-docs-example) | Example documentation site created with `@0xproject/react-docs`  |
 | 
				
			||||||
| [`@0xproject/monorepo-scripts`](/packages/monorepo-scripts)     | Shared monorepo scripts                                          |
 | 
					 | 
				
			||||||
| [`@0xproject/testnet-faucets`](/packages/testnet-faucets)       | A faucet micro-service that dispenses test ERC20 tokens or Ether |
 | 
					| [`@0xproject/testnet-faucets`](/packages/testnet-faucets)       | A faucet micro-service that dispenses test ERC20 tokens or Ether |
 | 
				
			||||||
| [`@0xproject/website`](/packages/website)                       | 0x website & Portal DApp                                         |
 | 
					| [`@0xproject/website`](/packages/website)                       | 0x website & Portal DApp                                         |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,6 +7,7 @@
 | 
				
			|||||||
        "testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
 | 
					        "testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
 | 
				
			||||||
        "prettier": "prettier --write '**/*.{ts,tsx,json,md}' --config .prettierrc",
 | 
					        "prettier": "prettier --write '**/*.{ts,tsx,json,md}' --config .prettierrc",
 | 
				
			||||||
        "prettier:ci": "prettier --list-different '**/*.{ts,tsx,json,md}' --config .prettierrc",
 | 
					        "prettier:ci": "prettier --list-different '**/*.{ts,tsx,json,md}' --config .prettierrc",
 | 
				
			||||||
 | 
					        "report_coverage": "lcov-result-merger 'packages/*/coverage/lcov.info' | coveralls",
 | 
				
			||||||
        "lerna:run": "lerna run",
 | 
					        "lerna:run": "lerna run",
 | 
				
			||||||
        "lerna:rebuild": "lerna run clean; lerna run build;",
 | 
					        "lerna:rebuild": "lerna run clean; lerna run build;",
 | 
				
			||||||
        "lerna:publish":
 | 
					        "lerna:publish":
 | 
				
			||||||
@@ -18,10 +19,10 @@
 | 
				
			|||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0xproject/utils": "^0.4.1",
 | 
					        "@0xproject/utils": "^0.4.1",
 | 
				
			||||||
        "async-child-process": "^1.1.1",
 | 
					        "async-child-process": "^1.1.1",
 | 
				
			||||||
 | 
					        "coveralls": "^3.0.0",
 | 
				
			||||||
        "ethereumjs-testrpc": "^6.0.3",
 | 
					        "ethereumjs-testrpc": "^6.0.3",
 | 
				
			||||||
 | 
					        "lcov-result-merger": "^2.0.0",
 | 
				
			||||||
        "lerna": "^2.5.1",
 | 
					        "lerna": "^2.5.1",
 | 
				
			||||||
        "prettier": "^1.11.1",
 | 
					        "prettier": "^1.11.1"
 | 
				
			||||||
        "publish-release": "0xproject/publish-release",
 | 
					 | 
				
			||||||
        "semver-sort": "^0.0.4"
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								packages/0x.js/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/0x.js/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -19,19 +19,27 @@
 | 
				
			|||||||
        "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json",
 | 
					        "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json",
 | 
				
			||||||
        "generate_contract_wrappers": "node ../abi-gen/lib/index.js --abis 'src/artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|TokenRegistry|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'",
 | 
					        "generate_contract_wrappers": "node ../abi-gen/lib/index.js --abis 'src/artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|TokenRegistry|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
				
			||||||
        "test:circleci": "run-s test:coverage report_test_coverage",
 | 
					        "test:circleci": "run-s test:coverage",
 | 
				
			||||||
        "test": "run-s clean test:commonjs",
 | 
					        "test": "run-s clean test:commonjs",
 | 
				
			||||||
        "test:coverage": "nyc npm run test --all",
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
        "report_test_coverage": "nyc report --reporter=text-lcov | coveralls",
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
        "update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
 | 
					        "update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
 | 
				
			||||||
        "clean": "shx rm -rf _bundles lib test_temp",
 | 
					        "clean": "shx rm -rf _bundles lib test_temp scripts",
 | 
				
			||||||
        "build:umd:prod": "NODE_ENV=production webpack",
 | 
					        "build:umd:prod": "NODE_ENV=production webpack",
 | 
				
			||||||
        "build:commonjs": "tsc && copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts;",
 | 
					        "build:commonjs": "tsc && copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "test:commonjs": "run-s build:commonjs run_mocha",
 | 
					        "test:commonjs": "run-s build:commonjs run_mocha",
 | 
				
			||||||
        "run_mocha": "mocha lib/test/**/*_test.js --timeout 10000 --bail --exit"
 | 
					        "run_mocha": "mocha lib/test/**/*_test.js --timeout 10000 --bail --exit"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "artifacts": "TokenTransferProxy Exchange TokenRegistry Token EtherToken"
 | 
					        "artifacts": "TokenTransferProxy Exchange TokenRegistry Token EtherToken",
 | 
				
			||||||
 | 
					        "postpublish": {
 | 
				
			||||||
 | 
					            "assets": ["_bundles/index.js", "_bundles/index.min.js"],
 | 
				
			||||||
 | 
					            "docPublishConfigs": {
 | 
				
			||||||
 | 
					                "extraFileIncludes": ["../types/src/index.ts"],
 | 
				
			||||||
 | 
					                "s3BucketPath": "s3://0xjs-docs-jsons/",
 | 
				
			||||||
 | 
					                "s3StagingBucketPath": "s3://staging-0xjs-docs-jsons/"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
@@ -44,6 +52,7 @@
 | 
				
			|||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0xproject/abi-gen": "^0.2.5",
 | 
					        "@0xproject/abi-gen": "^0.2.5",
 | 
				
			||||||
        "@0xproject/dev-utils": "^0.2.1",
 | 
					        "@0xproject/dev-utils": "^0.2.1",
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/bintrees": "^1.0.2",
 | 
					        "@types/bintrees": "^1.0.2",
 | 
				
			||||||
        "@types/jsonschema": "^1.1.1",
 | 
					        "@types/jsonschema": "^1.1.1",
 | 
				
			||||||
@@ -59,13 +68,13 @@
 | 
				
			|||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4",
 | 
					        "chai-typescript-typings": "^0.0.4",
 | 
				
			||||||
        "copyfiles": "^1.2.0",
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "coveralls": "^3.0.0",
 | 
					 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "json-loader": "^0.5.4",
 | 
					        "json-loader": "^0.5.4",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "nyc": "^11.0.1",
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
        "opn-cli": "^3.1.0",
 | 
					        "opn-cli": "^3.1.0",
 | 
				
			||||||
 | 
					        "prettier": "^1.11.1",
 | 
				
			||||||
        "request": "^2.81.0",
 | 
					        "request": "^2.81.0",
 | 
				
			||||||
        "request-promise-native": "^1.0.5",
 | 
					        "request-promise-native": "^1.0.5",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,47 +0,0 @@
 | 
				
			|||||||
const execAsync = require('async-child-process').execAsync;
 | 
					 | 
				
			||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
const tsConfig = require('../tsconfig.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const cwd = __dirname + '/..';
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
// Include any external packages that are part of the 0x.js public interface
 | 
					 | 
				
			||||||
// to this array so that TypeDoc picks it up and adds it to the Docs JSON
 | 
					 | 
				
			||||||
// So far, we only have @0xproject/types as part of 0x.js's public interface.
 | 
					 | 
				
			||||||
const fileIncludes = [...tsConfig.include, '../types/src/index.ts'];
 | 
					 | 
				
			||||||
const fileIncludesAdjusted = postpublish_utils.adjustFileIncludePaths(fileIncludes, __dirname);
 | 
					 | 
				
			||||||
const projectFiles = fileIncludesAdjusted.join(' ');
 | 
					 | 
				
			||||||
const S3BucketPath = 's3://0xjs-docs-jsons/';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
let tag;
 | 
					 | 
				
			||||||
let version;
 | 
					 | 
				
			||||||
postpublish_utils
 | 
					 | 
				
			||||||
    .getLatestTagAndVersionAsync(subPackageName)
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        tag = result.tag;
 | 
					 | 
				
			||||||
        version = result.version;
 | 
					 | 
				
			||||||
        const releaseName = postpublish_utils.getReleaseName(subPackageName, version);
 | 
					 | 
				
			||||||
        const assets = [__dirname + '/../_bundles/index.js', __dirname + '/../_bundles/index.min.js'];
 | 
					 | 
				
			||||||
        return postpublish_utils.publishReleaseNotesAsync(tag, releaseName, assets);
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .then(function(release) {
 | 
					 | 
				
			||||||
        console.log('POSTPUBLISH: Release successful, generating docs...');
 | 
					 | 
				
			||||||
        const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json';
 | 
					 | 
				
			||||||
        return execAsync('JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_FILES="' + projectFiles + '" yarn docs:json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        if (result.stderr !== '') {
 | 
					 | 
				
			||||||
            throw new Error(result.stderr);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        const fileName = 'v' + version + '.json';
 | 
					 | 
				
			||||||
        console.log('POSTPUBLISH: Doc generation successful, uploading docs... as ', fileName);
 | 
					 | 
				
			||||||
        const s3Url = S3BucketPath + fileName;
 | 
					 | 
				
			||||||
        return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .catch(function(err) {
 | 
					 | 
				
			||||||
        throw err;
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
const execAsync = require('async-child-process').execAsync;
 | 
					 | 
				
			||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const tsConfig = require('../tsconfig.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const cwd = __dirname + '/..';
 | 
					 | 
				
			||||||
const S3BucketPath = 's3://staging-0xjs-docs-jsons/';
 | 
					 | 
				
			||||||
// Include any external packages that are part of the 0x.js public interface
 | 
					 | 
				
			||||||
// to this array so that TypeDoc picks it up and adds it to the Docs JSON
 | 
					 | 
				
			||||||
// So far, we only have @0xproject/types as part of 0x.js's public interface.
 | 
					 | 
				
			||||||
const fileIncludes = [...tsConfig.include, '../types/src/index.ts'];
 | 
					 | 
				
			||||||
const fileIncludesAdjusted = postpublish_utils.adjustFileIncludePaths(fileIncludes, __dirname);
 | 
					 | 
				
			||||||
const projectFiles = fileIncludesAdjusted.join(' ');
 | 
					 | 
				
			||||||
const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json';
 | 
					 | 
				
			||||||
const version = process.env.DOCS_VERSION;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
execAsync('JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_FILES="' + projectFiles + '" yarn docs:json', {
 | 
					 | 
				
			||||||
    cwd,
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        if (result.stderr !== '') {
 | 
					 | 
				
			||||||
            throw new Error(result.stderr);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        const fileName = 'v' + version + '.json';
 | 
					 | 
				
			||||||
        const s3Url = S3BucketPath + fileName;
 | 
					 | 
				
			||||||
        return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .catch(function(err) {
 | 
					 | 
				
			||||||
        console.log(err);
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
							
								
								
									
										6
									
								
								packages/0x.js/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								packages/0x.js/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -4,6 +4,12 @@ declare module 'dirty-chai';
 | 
				
			|||||||
declare module 'request-promise-native';
 | 
					declare module 'request-promise-native';
 | 
				
			||||||
declare module 'web3-provider-engine';
 | 
					declare module 'web3-provider-engine';
 | 
				
			||||||
declare module 'web3-provider-engine/subproviders/rpc';
 | 
					declare module 'web3-provider-engine/subproviders/rpc';
 | 
				
			||||||
 | 
					declare module 'publish-release';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// semver-sort declarations
 | 
				
			||||||
 | 
					declare module 'semver-sort' {
 | 
				
			||||||
 | 
					    const desc: (versions: string[]) => string[];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// HACK: In order to merge the bignumber declaration added by chai-bignumber to the chai Assertion
 | 
					// HACK: In order to merge the bignumber declaration added by chai-bignumber to the chai Assertion
 | 
				
			||||||
// interface we must use `namespace` as the Chai definitelyTyped definition does. Since we otherwise
 | 
					// interface we must use `namespace` as the Chai definitelyTyped definition does. Since we otherwise
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/0x.js/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/0x.js/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										8
									
								
								packages/0x.js/src/monorepo_scripts/stagedocs.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/0x.js/src/monorepo_scripts/stagedocs.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.publishDocsToStagingAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -7,8 +7,8 @@
 | 
				
			|||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts'",
 | 
				
			||||||
        "clean": "shx rm -rf lib",
 | 
					        "clean": "shx rm -rf lib scripts",
 | 
				
			||||||
        "build": "tsc"
 | 
					        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "bin": {
 | 
					    "bin": {
 | 
				
			||||||
        "abi-gen": "lib/index.js"
 | 
					        "abi-gen": "lib/index.js"
 | 
				
			||||||
@@ -34,12 +34,14 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/glob": "^5.0.33",
 | 
					        "@types/glob": "^5.0.33",
 | 
				
			||||||
        "@types/handlebars": "^4.0.36",
 | 
					        "@types/handlebars": "^4.0.36",
 | 
				
			||||||
        "@types/mkdirp": "^0.5.1",
 | 
					        "@types/mkdirp": "^0.5.1",
 | 
				
			||||||
        "@types/node": "^8.0.53",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
        "@types/yargs": "^10.0.0",
 | 
					        "@types/yargs": "^10.0.0",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "tslint": "5.8.0",
 | 
					        "tslint": "5.8.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/abi-gen/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/abi-gen/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -2,3 +2,10 @@ declare function toSnakeCase(str: string): string;
 | 
				
			|||||||
declare module 'to-snake-case' {
 | 
					declare module 'to-snake-case' {
 | 
				
			||||||
    export = toSnakeCase;
 | 
					    export = toSnakeCase;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/abi-gen/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/abi-gen/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										0
									
								
								packages/assert/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/assert/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -6,13 +6,15 @@
 | 
				
			|||||||
    "types": "lib/src/index.d.ts",
 | 
					    "types": "lib/src/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "clean": "shx rm -rf _bundles lib test_temp",
 | 
					        "clean": "shx rm -rf _bundles lib test_temp scripts",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
				
			||||||
        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
					        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
				
			||||||
        "prepublishOnly": "run-p build",
 | 
					        "prepublishOnly": "run-p build",
 | 
				
			||||||
        "test": "run-s clean build run_mocha",
 | 
					        "test": "run-s clean build run_mocha",
 | 
				
			||||||
        "test:circleci": "yarn test"
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
 | 
					        "test:circleci": "yarn test:coverage"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
@@ -24,12 +26,15 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/assert/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/assert/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/lodash": "^4.14.86",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/valid-url": "^1.0.2",
 | 
					        "@types/valid-url": "^1.0.2",
 | 
				
			||||||
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4",
 | 
					        "chai-typescript-typings": "^0.0.4",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/assert/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/assert/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1 +1,8 @@
 | 
				
			|||||||
declare module 'dirty-chai';
 | 
					declare module 'dirty-chai';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/assert/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/assert/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -6,8 +6,8 @@
 | 
				
			|||||||
    "types": "lib/index.d.ts",
 | 
					    "types": "lib/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "clean": "shx rm -rf lib",
 | 
					        "clean": "shx rm -rf lib scripts",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts'"
 | 
					        "lint": "tslint --project . 'src/**/*.ts'"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
@@ -20,8 +20,10 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/base-contract/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/base-contract/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/lodash": "^4.14.86",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "tslint": "5.8.0",
 | 
					        "tslint": "5.8.0",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								packages/base-contract/src/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								packages/base-contract/src/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										6
									
								
								packages/chai-as-promised-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								packages/chai-as-promised-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -4,6 +4,10 @@
 | 
				
			|||||||
    "description": "Typescript type definitions for chai-as-promised",
 | 
					    "description": "Typescript type definitions for chai-as-promised",
 | 
				
			||||||
    "main": "index.d.ts",
 | 
					    "main": "index.d.ts",
 | 
				
			||||||
    "types": "index.d.ts",
 | 
					    "types": "index.d.ts",
 | 
				
			||||||
 | 
					    "scripts": {
 | 
				
			||||||
 | 
					        "build": "tsc && copyfiles -u 1 './lib/**/*' ./scripts",
 | 
				
			||||||
 | 
					        "clean": "shx rm -rf scripts"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
        "url": "git+https://github.com/0xProject/0x-monorepo.git"
 | 
					        "url": "git+https://github.com/0xProject/0x-monorepo.git"
 | 
				
			||||||
@@ -20,6 +24,11 @@
 | 
				
			|||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4"
 | 
					        "chai-typescript-typings": "^0.0.4"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
 | 
					        "shx": "^0.2.2"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
      "access": "public"
 | 
					      "access": "public"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "extends": "../../tsconfig",
 | 
				
			||||||
 | 
					    "compilerOptions": {
 | 
				
			||||||
 | 
					        "outDir": "lib"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "include": ["./monorepo_scripts/**/*"]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										6
									
								
								packages/chai-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								packages/chai-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -4,6 +4,10 @@
 | 
				
			|||||||
    "description": "Typescript type definitions for chai",
 | 
					    "description": "Typescript type definitions for chai",
 | 
				
			||||||
    "main": "index.d.ts",
 | 
					    "main": "index.d.ts",
 | 
				
			||||||
    "types": "index.d.ts",
 | 
					    "types": "index.d.ts",
 | 
				
			||||||
 | 
					    "scripts": {
 | 
				
			||||||
 | 
					        "build": "tsc && copyfiles -u 1 './lib/**/*' ./scripts",
 | 
				
			||||||
 | 
					        "clean": "shx rm -rf scripts"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
        "url": "git+https://github.com/0xProject/0x-monorepo.git"
 | 
					        "url": "git+https://github.com/0xProject/0x-monorepo.git"
 | 
				
			||||||
@@ -13,6 +17,11 @@
 | 
				
			|||||||
        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/chai-typescript-typings#readme",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/chai-typescript-typings#readme",
 | 
				
			||||||
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
 | 
					        "shx": "^0.2.2"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
      "access": "public"
 | 
					      "access": "public"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/chai-typescript-typings/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								packages/chai-typescript-typings/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "extends": "../../tsconfig",
 | 
				
			||||||
 | 
					    "compilerOptions": {
 | 
				
			||||||
 | 
					        "outDir": "lib"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "include": ["./monorepo_scripts/**/*"]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										0
									
								
								packages/connect/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/connect/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -13,15 +13,26 @@
 | 
				
			|||||||
    "types": "lib/src/index.d.ts",
 | 
					    "types": "lib/src/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "clean": "shx rm -rf _bundles lib test_temp",
 | 
					        "clean": "shx rm -rf _bundles lib test_temp scripts",
 | 
				
			||||||
        "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_FILES",
 | 
					        "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_FILES",
 | 
				
			||||||
        "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json",
 | 
					        "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json",
 | 
				
			||||||
        "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
 | 
					        "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
				
			||||||
        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
					        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
				
			||||||
        "test": "run-s clean build copy_test_fixtures run_mocha",
 | 
					        "test": "run-s clean build copy_test_fixtures run_mocha",
 | 
				
			||||||
        "test:circleci": "yarn test"
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
 | 
					        "test:circleci": "yarn test:coverage"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "config": {
 | 
				
			||||||
 | 
					        "postpublish": {
 | 
				
			||||||
 | 
					            "assets": ["_bundles/index.js", "_bundles/index.min.js"],
 | 
				
			||||||
 | 
					            "docPublishConfigs": {
 | 
				
			||||||
 | 
					                "s3BucketPath": "s3://connect-docs-jsons/",
 | 
				
			||||||
 | 
					                "s3StagingBucketPath": "s3://staging-connect-docs-jsons/"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
@@ -46,12 +57,15 @@
 | 
				
			|||||||
        "websocket": "^1.0.25"
 | 
					        "websocket": "^1.0.25"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/fetch-mock": "^5.12.1",
 | 
					        "@types/fetch-mock": "^5.12.1",
 | 
				
			||||||
        "@types/lodash": "^4.14.86",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/query-string": "^5.0.1",
 | 
					        "@types/query-string": "^5.0.1",
 | 
				
			||||||
        "@types/websocket": "^0.0.34",
 | 
					        "@types/websocket": "^0.0.34",
 | 
				
			||||||
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
 | 
					        "async-child-process": "^1.1.1",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-as-promised-typescript-typings": "^0.0.10",
 | 
					        "chai-as-promised-typescript-typings": "^0.0.10",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,45 +0,0 @@
 | 
				
			|||||||
const execAsync = require('async-child-process').execAsync;
 | 
					 | 
				
			||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
const tsConfig = require('../tsconfig.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const cwd = __dirname + '/..';
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
const S3BucketPath = 's3://connect-docs-jsons/';
 | 
					 | 
				
			||||||
// Include any external packages that are part of the @0xproject/connect public interface
 | 
					 | 
				
			||||||
// to this array so that TypeDoc picks it up and adds it to the Docs JSON
 | 
					 | 
				
			||||||
const fileIncludes = [...tsConfig.include];
 | 
					 | 
				
			||||||
const fileIncludesAdjusted = postpublish_utils.adjustFileIncludePaths(fileIncludes, __dirname);
 | 
					 | 
				
			||||||
const projectFiles = fileIncludesAdjusted.join(' ');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
let tag;
 | 
					 | 
				
			||||||
let version;
 | 
					 | 
				
			||||||
postpublish_utils
 | 
					 | 
				
			||||||
    .getLatestTagAndVersionAsync(subPackageName)
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        tag = result.tag;
 | 
					 | 
				
			||||||
        version = result.version;
 | 
					 | 
				
			||||||
        const releaseName = postpublish_utils.getReleaseName(subPackageName, version);
 | 
					 | 
				
			||||||
        return postpublish_utils.publishReleaseNotesAsync(tag, releaseName);
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .then(function(release) {
 | 
					 | 
				
			||||||
        console.log('POSTPUBLISH: Release successful, generating docs...');
 | 
					 | 
				
			||||||
        const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json';
 | 
					 | 
				
			||||||
        return execAsync('JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_FILES="' + projectFiles + '" yarn docs:json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        if (result.stderr !== '') {
 | 
					 | 
				
			||||||
            throw new Error(result.stderr);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        const fileName = 'v' + version + '.json';
 | 
					 | 
				
			||||||
        console.log('POSTPUBLISH: Doc generation successful, uploading docs... as ', fileName);
 | 
					 | 
				
			||||||
        const s3Url = S3BucketPath + fileName;
 | 
					 | 
				
			||||||
        return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .catch(function(err) {
 | 
					 | 
				
			||||||
        throw err;
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
@@ -1,30 +0,0 @@
 | 
				
			|||||||
const execAsync = require('async-child-process').execAsync;
 | 
					 | 
				
			||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const tsConfig = require('../tsconfig.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const cwd = __dirname + '/..';
 | 
					 | 
				
			||||||
const S3BucketPath = 's3://staging-connect-docs-jsons/';
 | 
					 | 
				
			||||||
const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json';
 | 
					 | 
				
			||||||
const version = process.env.DOCS_VERSION;
 | 
					 | 
				
			||||||
// Include any external packages that are part of the @0xproject/connect public interface
 | 
					 | 
				
			||||||
// to this array so that TypeDoc picks it up and adds it to the Docs JSON
 | 
					 | 
				
			||||||
const fileIncludes = [...tsConfig.include];
 | 
					 | 
				
			||||||
const fileIncludesAdjusted = postpublish_utils.adjustFileIncludePaths(fileIncludes, __dirname);
 | 
					 | 
				
			||||||
const projectFiles = fileIncludesAdjusted.join(' ');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
execAsync('JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_FILES="' + projectFiles + '" yarn docs:json', {
 | 
					 | 
				
			||||||
    cwd,
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
    .then(function(result) {
 | 
					 | 
				
			||||||
        if (result.stderr !== '') {
 | 
					 | 
				
			||||||
            throw new Error(result.stderr);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        const fileName = 'v' + version + '.json';
 | 
					 | 
				
			||||||
        const s3Url = S3BucketPath + fileName;
 | 
					 | 
				
			||||||
        return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json', {
 | 
					 | 
				
			||||||
            cwd,
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    .catch(function(err) {
 | 
					 | 
				
			||||||
        console.log(err);
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
							
								
								
									
										1
									
								
								packages/connect/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								packages/connect/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					declare module 'async-child-process';
 | 
				
			||||||
declare module 'dirty-chai';
 | 
					declare module 'dirty-chai';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
declare module '*.json' {
 | 
					declare module '*.json' {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/connect/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/connect/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										8
									
								
								packages/connect/src/monorepo_scripts/stagedocs.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/connect/src/monorepo_scripts/stagedocs.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.publishDocsToStagingAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -32,6 +32,8 @@ public {{this.name}} = {
 | 
				
			|||||||
        txData: TxData = {},
 | 
					        txData: TxData = {},
 | 
				
			||||||
    ): Promise<number> {
 | 
					    ): Promise<number> {
 | 
				
			||||||
        const self = this as {{contractName}}Contract;
 | 
					        const self = this as {{contractName}}Contract;
 | 
				
			||||||
 | 
					        const inputAbi = _.find(this.abi, {name: '{{this.name}}'}).inputs;
 | 
				
			||||||
 | 
					        [{{> params inputs=inputs}}] = BaseContract._transformABIData(inputAbi, [{{> params inputs=inputs}}], BaseContract._bigNumberToString.bind(this));
 | 
				
			||||||
        const encodedData = this._ethersInterface.functions.{{this.name}}(
 | 
					        const encodedData = this._ethersInterface.functions.{{this.name}}(
 | 
				
			||||||
            {{> params inputs=inputs}}
 | 
					            {{> params inputs=inputs}}
 | 
				
			||||||
        ).data
 | 
					        ).data
 | 
				
			||||||
@@ -49,6 +51,8 @@ public {{this.name}} = {
 | 
				
			|||||||
        txData: TxData = {},
 | 
					        txData: TxData = {},
 | 
				
			||||||
    ): string {
 | 
					    ): string {
 | 
				
			||||||
        const self = this as {{contractName}}Contract;
 | 
					        const self = this as {{contractName}}Contract;
 | 
				
			||||||
 | 
					        const inputAbi = _.find(this.abi, {name: '{{this.name}}'}).inputs;
 | 
				
			||||||
 | 
					        [{{> params inputs=inputs}}] = BaseContract._transformABIData(inputAbi, [{{> params inputs=inputs}}], BaseContract._bigNumberToString.bind(this));
 | 
				
			||||||
        const abiEncodedTransactionData = this._ethersInterface.functions.{{this.name}}(
 | 
					        const abiEncodedTransactionData = this._ethersInterface.functions.{{this.name}}(
 | 
				
			||||||
            {{> params inputs=inputs}}
 | 
					            {{> params inputs=inputs}}
 | 
				
			||||||
        ).data
 | 
					        ).data
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@
 | 
				
			|||||||
        "copy_artifacts": "copyfiles './src/artifacts/**/*' ./lib",
 | 
					        "copy_artifacts": "copyfiles './src/artifacts/**/*' ./lib",
 | 
				
			||||||
        "build": "tsc",
 | 
					        "build": "tsc",
 | 
				
			||||||
        "test": "run-s build run_mocha",
 | 
					        "test": "run-s build run_mocha",
 | 
				
			||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "run_mocha": "mocha 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					        "run_mocha": "mocha 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
        "compile:comment": "Yarn workspaces do not link binaries correctly so we need to reference them directly https://github.com/yarnpkg/yarn/issues/3846",
 | 
					        "compile:comment": "Yarn workspaces do not link binaries correctly so we need to reference them directly https://github.com/yarnpkg/yarn/issues/3846",
 | 
				
			||||||
        "compile": "node ../deployer/lib/src/cli.js compile --contracts ${npm_package_config_contracts} --contracts-dir src/contracts --artifacts-dir src/artifacts",
 | 
					        "compile": "node ../deployer/lib/src/cli.js compile --contracts ${npm_package_config_contracts} --contracts-dir src/contracts --artifacts-dir src/artifacts",
 | 
				
			||||||
@@ -24,8 +24,7 @@
 | 
				
			|||||||
        "coverage:report:text": "istanbul report text",
 | 
					        "coverage:report:text": "istanbul report text",
 | 
				
			||||||
        "coverage:report:html": "istanbul report html && open coverage/index.html",
 | 
					        "coverage:report:html": "istanbul report html && open coverage/index.html",
 | 
				
			||||||
        "coverage:report:lcov": "istanbul report lcov",
 | 
					        "coverage:report:lcov": "istanbul report lcov",
 | 
				
			||||||
        "coverage:report:coveralls": "yarn coverage:report:lcov && cat coverage/lcov.info | coveralls",
 | 
					        "test:circleci": "yarn test:coverage"
 | 
				
			||||||
        "test:circleci": "yarn test:coverage && yarn coverage:report:coveralls"
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "contracts": "Exchange,DummyToken,ZRXToken,Token,WETH9,TokenTransferProxy,MultiSigWallet,MultiSigWalletWithTimeLock,MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress,MaliciousToken,TokenRegistry,Arbitrage,EtherDelta,AccountLevels"
 | 
					        "contracts": "Exchange,DummyToken,ZRXToken,Token,WETH9,TokenTransferProxy,MultiSigWallet,MultiSigWalletWithTimeLock,MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress,MaliciousToken,TokenRegistry,Arbitrage,EtherDelta,AccountLevels"
 | 
				
			||||||
@@ -54,7 +53,6 @@
 | 
				
			|||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4",
 | 
					        "chai-typescript-typings": "^0.0.4",
 | 
				
			||||||
        "copyfiles": "^1.2.0",
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "coveralls": "^3.0.0",
 | 
					 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "ethers-typescript-typings": "^0.0.2",
 | 
					        "ethers-typescript-typings": "^0.0.2",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								packages/deployer/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/deployer/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -6,13 +6,15 @@
 | 
				
			|||||||
    "types": "lib/src/index.d.ts",
 | 
					    "types": "lib/src/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "build": "yarn clean && copyfiles 'test/fixtures/contracts/**/*' ./lib && tsc",
 | 
					        "build": "yarn clean && copyfiles 'test/fixtures/contracts/**/*' ./lib && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "test": "npm run build; mocha lib/test/*_test.js",
 | 
					        "test": "npm run build; mocha lib/test/*_test.js",
 | 
				
			||||||
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
        "compile": "npm run build; node lib/src/cli.js compile",
 | 
					        "compile": "npm run build; node lib/src/cli.js compile",
 | 
				
			||||||
        "clean": "shx rm -rf ./lib",
 | 
					        "clean": "shx rm -rf lib scripts",
 | 
				
			||||||
        "migrate": "npm run build; node lib/src/cli.js migrate",
 | 
					        "migrate": "npm run build; node lib/src/cli.js migrate",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
				
			||||||
        "test:circleci": "yarn test"
 | 
					        "test:circleci": "yarn test:coverage"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "bin": {
 | 
					    "bin": {
 | 
				
			||||||
        "0x-deployer": "lib/src/cli.js"
 | 
					        "0x-deployer": "lib/src/cli.js"
 | 
				
			||||||
@@ -28,10 +30,12 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/deployer/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/deployer/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@types/require-from-string": "^1.2.0",
 | 
					        "@types/require-from-string": "^1.2.0",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "copyfiles": "^1.2.0",
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
        "ethers-typescript-typings": "^0.0.2",
 | 
					        "ethers-typescript-typings": "^0.0.2",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/deployer/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/deployer/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -42,3 +42,10 @@ declare module 'solc' {
 | 
				
			|||||||
declare module 'web3-eth-abi' {
 | 
					declare module 'web3-eth-abi' {
 | 
				
			||||||
    export function encodeParameters(typesArray: string[], parameters: any[]): string;
 | 
					    export function encodeParameters(typesArray: string[], parameters: any[]): string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/deployer/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/deployer/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										0
									
								
								packages/dev-utils/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/dev-utils/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -6,11 +6,13 @@
 | 
				
			|||||||
    "types": "lib/src/index.d.ts",
 | 
					    "types": "lib/src/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
        "test": "run-s clean build run_mocha",
 | 
					        "test": "run-s clean build run_mocha",
 | 
				
			||||||
        "test:circleci": "yarn test",
 | 
					        "test:circleci": "yarn test:coverage",
 | 
				
			||||||
        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
					        "run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
 | 
				
			||||||
        "clean": "shx rm -rf lib",
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
 | 
					        "clean": "shx rm -rf lib scripts",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'"
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
@@ -23,12 +25,15 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/dev-utils/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/dev-utils/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@0xproject/web3-wrapper": "^0.2.1",
 | 
					        "@0xproject/web3-wrapper": "^0.2.1",
 | 
				
			||||||
        "@types/lodash": "^4.14.86",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4",
 | 
					        "chai-typescript-typings": "^0.0.4",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/dev-utils/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/dev-utils/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,2 +1,9 @@
 | 
				
			|||||||
declare module 'web3-provider-engine';
 | 
					declare module 'web3-provider-engine';
 | 
				
			||||||
declare module 'web3-provider-engine/subproviders/rpc';
 | 
					declare module 'web3-provider-engine/subproviders/rpc';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/dev-utils/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/dev-utils/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										6
									
								
								packages/ethers-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								packages/ethers-typescript-typings/monorepo_scripts/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -5,7 +5,9 @@
 | 
				
			|||||||
    "main": "index.d.ts",
 | 
					    "main": "index.d.ts",
 | 
				
			||||||
    "types": "index.d.ts",
 | 
					    "types": "index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "lint": "tslint index.d.ts"
 | 
					        "lint": "tslint index.d.ts",
 | 
				
			||||||
 | 
					        "build": "tsc && copyfiles -u 1 './lib/**/*' ./scripts",
 | 
				
			||||||
 | 
					        "clean": "shx rm -rf scripts"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
@@ -21,6 +23,9 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/ethers-typescript-typings#readme",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/ethers-typescript-typings#readme",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "tslint": "5.8.0",
 | 
					        "tslint": "5.8.0",
 | 
				
			||||||
        "tslint-config-0xproject": "^0.0.2",
 | 
					        "tslint-config-0xproject": "^0.0.2",
 | 
				
			||||||
        "typescript": "2.7.1"
 | 
					        "typescript": "2.7.1"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/ethers-typescript-typings/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								packages/ethers-typescript-typings/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "extends": "../../tsconfig",
 | 
				
			||||||
 | 
					    "compilerOptions": {
 | 
				
			||||||
 | 
					        "outDir": "lib"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "include": ["./monorepo_scripts/**/*"]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										0
									
								
								packages/json-schemas/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								packages/json-schemas/coverage/.gitkeep
									
									
									
									
									
										Normal file
									
								
							@@ -8,10 +8,12 @@
 | 
				
			|||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
 | 
				
			||||||
        "test": "run-s clean build run_mocha",
 | 
					        "test": "run-s clean build run_mocha",
 | 
				
			||||||
        "test:circleci": "yarn test",
 | 
					        "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
 | 
				
			||||||
 | 
					        "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
 | 
				
			||||||
 | 
					        "test:circleci": "yarn test:coverage",
 | 
				
			||||||
        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
					        "run_mocha": "mocha lib/test/**/*_test.js",
 | 
				
			||||||
        "clean": "shx rm -rf _bundles lib test_temp",
 | 
					        "clean": "shx rm -rf _bundles lib test_temp scripts",
 | 
				
			||||||
        "build": "tsc"
 | 
					        "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
@@ -28,13 +30,16 @@
 | 
				
			|||||||
        "lodash.values": "^4.3.0"
 | 
					        "lodash.values": "^4.3.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
        "@0xproject/utils": "^0.4.1",
 | 
					        "@0xproject/utils": "^0.4.1",
 | 
				
			||||||
        "@types/lodash.foreach": "^4.5.3",
 | 
					        "@types/lodash.foreach": "^4.5.3",
 | 
				
			||||||
        "@types/lodash.values": "^4.3.3",
 | 
					        "@types/lodash.values": "^4.3.3",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
 | 
					        "nyc": "^11.0.1",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "chai-typescript-typings": "^0.0.4",
 | 
					        "chai-typescript-typings": "^0.0.4",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "lodash.foreach": "^4.5.0",
 | 
					        "lodash.foreach": "^4.5.0",
 | 
				
			||||||
        "mocha": "^4.0.1",
 | 
					        "mocha": "^4.0.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/json-schemas/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/json-schemas/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1 +1,8 @@
 | 
				
			|||||||
declare module 'dirty-chai';
 | 
					declare module 'dirty-chai';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
							
								
								
									
										5
									
								
								packages/monorepo-scripts/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								packages/monorepo-scripts/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v0.1.13 - _TBD_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Add postpublish utils
 | 
				
			||||||
@@ -1,8 +1,9 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0xproject/monorepo-scripts",
 | 
					    "name": "@0xproject/monorepo-scripts",
 | 
				
			||||||
    "version": "0.1.12",
 | 
					    "version": "0.1.12",
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "description": "Helper scripts for the monorepo",
 | 
					    "description": "Helper scripts for the monorepo",
 | 
				
			||||||
 | 
					    "main": "lib/index.js",
 | 
				
			||||||
 | 
					    "types": "lib/index.d.ts",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "deps_versions": "node ./lib/deps_versions.js",
 | 
					        "deps_versions": "node ./lib/deps_versions.js",
 | 
				
			||||||
@@ -19,8 +20,9 @@
 | 
				
			|||||||
        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/monorepo-scripts/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/monorepo-scripts/README.md",
 | 
				
			||||||
 | 
					    "comment": "// We purposefully use an older version of tslint-config here to avoid creating an import cycle",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "0.4.8",
 | 
				
			||||||
        "@types/glob": "^5.0.33",
 | 
					        "@types/glob": "^5.0.33",
 | 
				
			||||||
        "@types/node": "^8.0.53",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -29,8 +31,12 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0xproject/utils": "^0.4.1",
 | 
					        "@0xproject/utils": "^0.4.1",
 | 
				
			||||||
 | 
					        "es6-promisify": "^5.0.0",
 | 
				
			||||||
 | 
					        "async-child-process": "^1.1.1",
 | 
				
			||||||
 | 
					        "publish-release": "0xproject/publish-release",
 | 
				
			||||||
        "chalk": "^2.3.0",
 | 
					        "chalk": "^2.3.0",
 | 
				
			||||||
        "glob": "^7.1.2",
 | 
					        "glob": "^7.1.2",
 | 
				
			||||||
        "lodash": "^4.17.4"
 | 
					        "lodash": "^4.17.4",
 | 
				
			||||||
 | 
					        "semver-sort": "^0.0.4"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								packages/monorepo-scripts/src/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/monorepo-scripts/src/globals.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					declare module 'async-child-process';
 | 
				
			||||||
 | 
					declare module 'publish-release';
 | 
				
			||||||
 | 
					declare module 'es6-promisify';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// semver-sort declarations
 | 
				
			||||||
 | 
					declare module 'semver-sort' {
 | 
				
			||||||
 | 
					    const desc: (versions: string[]) => string[];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										1
									
								
								packages/monorepo-scripts/src/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								packages/monorepo-scripts/src/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					export { postpublishUtils } from './postpublish_utils';
 | 
				
			||||||
							
								
								
									
										161
									
								
								packages/monorepo-scripts/src/postpublish_utils.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										161
									
								
								packages/monorepo-scripts/src/postpublish_utils.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,161 @@
 | 
				
			|||||||
 | 
					import { execAsync } from 'async-child-process';
 | 
				
			||||||
 | 
					import * as promisify from 'es6-promisify';
 | 
				
			||||||
 | 
					import * as _ from 'lodash';
 | 
				
			||||||
 | 
					import * as publishRelease from 'publish-release';
 | 
				
			||||||
 | 
					import semverSort = require('semver-sort');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { utils } from './utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const publishReleaseAsync = promisify(publishRelease);
 | 
				
			||||||
 | 
					const githubPersonalAccessToken = process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS;
 | 
				
			||||||
 | 
					const generatedDocsDirectoryName = 'generated_docs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface PostpublishConfigs {
 | 
				
			||||||
 | 
					    cwd: string;
 | 
				
			||||||
 | 
					    packageName: string;
 | 
				
			||||||
 | 
					    version: string;
 | 
				
			||||||
 | 
					    assets: string[];
 | 
				
			||||||
 | 
					    docPublishConfigs: DocPublishConfigs;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface DocPublishConfigs {
 | 
				
			||||||
 | 
					    fileIncludes: string[];
 | 
				
			||||||
 | 
					    s3BucketPath: string;
 | 
				
			||||||
 | 
					    s3StagingBucketPath: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const postpublishUtils = {
 | 
				
			||||||
 | 
					    generateConfig(packageJSON: any, tsConfigJSON: any, cwd: string): PostpublishConfigs {
 | 
				
			||||||
 | 
					        if (_.isUndefined(packageJSON.name)) {
 | 
				
			||||||
 | 
					            throw new Error('name field required in package.json. Cannot publish release notes to Github.');
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if (_.isUndefined(packageJSON.version)) {
 | 
				
			||||||
 | 
					            throw new Error('version field required in package.json. Cannot publish release notes to Github.');
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        const postpublishConfig = _.get(packageJSON, 'config.postpublish', {});
 | 
				
			||||||
 | 
					        const configs: PostpublishConfigs = {
 | 
				
			||||||
 | 
					            cwd,
 | 
				
			||||||
 | 
					            packageName: packageJSON.name,
 | 
				
			||||||
 | 
					            version: packageJSON.version,
 | 
				
			||||||
 | 
					            assets: _.get(postpublishConfig, 'assets', []),
 | 
				
			||||||
 | 
					            docPublishConfigs: {
 | 
				
			||||||
 | 
					                fileIncludes: [
 | 
				
			||||||
 | 
					                    ...tsConfigJSON.include,
 | 
				
			||||||
 | 
					                    ..._.get(postpublishConfig, 'docPublishConfigs.extraFileIncludes', []),
 | 
				
			||||||
 | 
					                ],
 | 
				
			||||||
 | 
					                s3BucketPath: _.get(postpublishConfig, 'docPublishConfigs.s3BucketPath'),
 | 
				
			||||||
 | 
					                s3StagingBucketPath: _.get(postpublishConfig, 'docPublishConfigs.s3StagingBucketPath'),
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        return configs;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    async runAsync(packageJSON: any, tsConfigJSON: any, cwd: string): Promise<void> {
 | 
				
			||||||
 | 
					        const configs = this.generateConfig(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
 | 
					        const release = await this.publishReleaseNotesAsync(
 | 
				
			||||||
 | 
					            configs.cwd,
 | 
				
			||||||
 | 
					            configs.packageName,
 | 
				
			||||||
 | 
					            configs.version,
 | 
				
			||||||
 | 
					            configs.assets,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        if (
 | 
				
			||||||
 | 
					            !_.isUndefined(configs.docPublishConfigs.s3BucketPath) ||
 | 
				
			||||||
 | 
					            !_.isUndefined(configs.docPublishConfigs.s3StagingBucketPath)
 | 
				
			||||||
 | 
					        ) {
 | 
				
			||||||
 | 
					            utils.log('POSTPUBLISH: Release successful, generating docs...');
 | 
				
			||||||
 | 
					            await postpublishUtils.generateAndUploadDocsAsync(
 | 
				
			||||||
 | 
					                configs.cwd,
 | 
				
			||||||
 | 
					                configs.docPublishConfigs.fileIncludes,
 | 
				
			||||||
 | 
					                configs.version,
 | 
				
			||||||
 | 
					                configs.docPublishConfigs.s3BucketPath,
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            utils.log(`POSTPUBLISH: No S3Bucket config found for ${packageJSON.name}. Skipping doc JSON generation.`);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    async publishDocsToStagingAsync(packageJSON: any, tsConfigJSON: any, cwd: string) {
 | 
				
			||||||
 | 
					        const configs = this.generateConfig(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
 | 
					        if (_.isUndefined(configs.docPublishConfigs.s3StagingBucketPath)) {
 | 
				
			||||||
 | 
					            utils.log('config.postpublish.docPublishConfigs.s3StagingBucketPath entry in package.json not found!');
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        utils.log('POSTPUBLISH: Generating docs...');
 | 
				
			||||||
 | 
					        await postpublishUtils.generateAndUploadDocsAsync(
 | 
				
			||||||
 | 
					            configs.cwd,
 | 
				
			||||||
 | 
					            configs.docPublishConfigs.fileIncludes,
 | 
				
			||||||
 | 
					            configs.version,
 | 
				
			||||||
 | 
					            configs.docPublishConfigs.s3StagingBucketPath,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    async publishReleaseNotesAsync(cwd: string, packageName: string, version: string, assets: string[]): Promise<void> {
 | 
				
			||||||
 | 
					        const releaseName = this.getReleaseName(packageName, version);
 | 
				
			||||||
 | 
					        const tag = this.getTag(packageName, version);
 | 
				
			||||||
 | 
					        utils.log('POSTPUBLISH: Releasing ', releaseName, '...');
 | 
				
			||||||
 | 
					        const finalAssets = this.adjustAssetPaths(cwd, assets);
 | 
				
			||||||
 | 
					        const result = await publishReleaseAsync({
 | 
				
			||||||
 | 
					            token: githubPersonalAccessToken,
 | 
				
			||||||
 | 
					            owner: '0xProject',
 | 
				
			||||||
 | 
					            repo: '0x-monorepo',
 | 
				
			||||||
 | 
					            tag,
 | 
				
			||||||
 | 
					            name: releaseName,
 | 
				
			||||||
 | 
					            notes: 'N/A',
 | 
				
			||||||
 | 
					            draft: false,
 | 
				
			||||||
 | 
					            prerelease: false,
 | 
				
			||||||
 | 
					            reuseRelease: true,
 | 
				
			||||||
 | 
					            reuseDraftOnly: false,
 | 
				
			||||||
 | 
					            assets,
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    getTag(packageName: string, version: string) {
 | 
				
			||||||
 | 
					        return `${packageName}@${version}`;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    getReleaseName(subPackageName: string, version: string): string {
 | 
				
			||||||
 | 
					        const releaseName = `${subPackageName} v${version}`;
 | 
				
			||||||
 | 
					        return releaseName;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    adjustAssetPaths(cwd: string, assets: string[]) {
 | 
				
			||||||
 | 
					        const finalAssets: string[] = [];
 | 
				
			||||||
 | 
					        _.each(assets, (asset: string) => {
 | 
				
			||||||
 | 
					            finalAssets.push(`${cwd}/${asset}`);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        return finalAssets;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    adjustFileIncludePaths(fileIncludes: string[], cwd: string): string[] {
 | 
				
			||||||
 | 
					        const fileIncludesAdjusted = _.map(fileIncludes, fileInclude => {
 | 
				
			||||||
 | 
					            let path = _.startsWith(fileInclude, './') ? `${cwd}/${fileInclude.substr(2)}` : `${cwd}/${fileInclude}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // HACK: tsconfig.json needs wildcard directory endings as `/**/*`
 | 
				
			||||||
 | 
					            // but TypeDoc needs it as `/**` in order to pick up files at the root
 | 
				
			||||||
 | 
					            if (_.endsWith(path, '/**/*')) {
 | 
				
			||||||
 | 
					                path = path.slice(0, -2);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            return path;
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        return fileIncludesAdjusted;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    async generateAndUploadDocsAsync(cwd: string, fileIncludes: string[], version: string, S3BucketPath: string) {
 | 
				
			||||||
 | 
					        const fileIncludesAdjusted = this.adjustFileIncludePaths(fileIncludes, cwd);
 | 
				
			||||||
 | 
					        const projectFiles = fileIncludesAdjusted.join(' ');
 | 
				
			||||||
 | 
					        const jsonFilePath = `${cwd}/${generatedDocsDirectoryName}/index.json`;
 | 
				
			||||||
 | 
					        const result = await execAsync(
 | 
				
			||||||
 | 
					            `JSON_FILE_PATH=${jsonFilePath} PROJECT_FILES="${projectFiles}" yarn docs:json`,
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                cwd,
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        if (!_.isEmpty(result.stderr)) {
 | 
				
			||||||
 | 
					            throw new Error(result.stderr);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        const fileName = `v${version}.json`;
 | 
				
			||||||
 | 
					        utils.log(`POSTPUBLISH: Doc generation successful, uploading docs... as ${fileName}`);
 | 
				
			||||||
 | 
					        const s3Url = S3BucketPath + fileName;
 | 
				
			||||||
 | 
					        await execAsync(`S3_URL=${s3Url} yarn upload_docs_json`, {
 | 
				
			||||||
 | 
					            cwd,
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        // Remove the generated docs directory
 | 
				
			||||||
 | 
					        await execAsync(`rm -rf ${generatedDocsDirectoryName}`, {
 | 
				
			||||||
 | 
					            cwd,
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        utils.log(`POSTPUBLISH: Docs uploaded to S3 bucket: ${S3BucketPath}`);
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
							
								
								
									
										5
									
								
								packages/monorepo-scripts/src/utils.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								packages/monorepo-scripts/src/utils.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					export const utils = {
 | 
				
			||||||
 | 
					    log(...args: any[]): void {
 | 
				
			||||||
 | 
					        console.log(...args); // tslint:disable-line:no-console
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
@@ -34,6 +34,7 @@
 | 
				
			|||||||
        "@types/lodash": "^4.14.86",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
        "@types/node": "^8.0.53",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
        "awesome-typescript-loader": "^3.1.3",
 | 
					        "awesome-typescript-loader": "^3.1.3",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "css-loader": "^0.28.9",
 | 
					        "css-loader": "^0.28.9",
 | 
				
			||||||
        "json-loader": "^0.5.4",
 | 
					        "json-loader": "^0.5.4",
 | 
				
			||||||
        "less": "^2.7.2",
 | 
					        "less": "^2.7.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,53 +1,56 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@0xproject/react-docs",
 | 
					    "name": "@0xproject/react-docs",
 | 
				
			||||||
  "version": "0.0.1",
 | 
					    "version": "0.0.1",
 | 
				
			||||||
  "description": "React documentation component for rendering TypeDoc & Doxity generated JSON",
 | 
					    "description": "React documentation component for rendering TypeDoc & Doxity generated JSON",
 | 
				
			||||||
  "main": "lib/index.js",
 | 
					    "main": "lib/index.js",
 | 
				
			||||||
  "types": "lib/index.d.ts",
 | 
					    "types": "lib/index.d.ts",
 | 
				
			||||||
  "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
    "lint": "tslint --project . 'src/ts/**/*.ts' 'src/ts/**/*.tsx'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'src/**/*.tsx'",
 | 
				
			||||||
    "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
    "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
    "clean": "shx rm -rf lib"
 | 
					        "clean": "shx rm -rf lib scripts"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "author": "Fabio Berger",
 | 
					    "author": "Fabio Berger",
 | 
				
			||||||
  "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
  "bugs": {
 | 
					    "bugs": {
 | 
				
			||||||
      "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "homepage": "https://github.com/0xProject/0x-monorepo/packages/react-docs/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/react-docs/README.md",
 | 
				
			||||||
  "repository": {
 | 
					    "repository": {
 | 
				
			||||||
      "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
      "url": "https://github.com/0xProject/0x-monorepo.git"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo.git"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
    "@0xproject/tslint-config": "^0.4.9",
 | 
					        "@0xproject/dev-utils": "^0.2.1",
 | 
				
			||||||
    "@types/lodash": "^4.14.86",
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
    "@types/material-ui": "0.18.0",
 | 
					        "@0xproject/tslint-config": "^0.4.9",
 | 
				
			||||||
    "@types/node": "^8.0.53",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
    "@types/react": "^15.0.15",
 | 
					        "@types/material-ui": "0.18.0",
 | 
				
			||||||
    "@types/react-dom": "^0.14.23",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
    "@types/react-scroll": "0.0.31",
 | 
					        "@types/react": "^15.0.15",
 | 
				
			||||||
    "@types/react-tap-event-plugin": "0.0.30",
 | 
					        "@types/react-dom": "^0.14.23",
 | 
				
			||||||
    "shx": "^0.2.2",
 | 
					        "@types/react-scroll": "0.0.31",
 | 
				
			||||||
    "tslint": "^5.9.1",
 | 
					        "@types/react-tap-event-plugin": "0.0.30",
 | 
				
			||||||
    "typescript": "2.7.1"
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
  },
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
  "dependencies": {
 | 
					        "tslint": "^5.9.1",
 | 
				
			||||||
    "@0xproject/react-shared": "^0.0.1",
 | 
					        "typescript": "2.7.1"
 | 
				
			||||||
    "@0xproject/utils": "^0.4.1",
 | 
					    },
 | 
				
			||||||
    "basscss": "^8.0.3",
 | 
					    "dependencies": {
 | 
				
			||||||
    "compare-versions": "^3.0.1",
 | 
					        "@0xproject/react-shared": "^0.0.1",
 | 
				
			||||||
    "lodash": "^4.17.4",
 | 
					        "@0xproject/utils": "^0.4.1",
 | 
				
			||||||
    "material-ui": "^0.17.1",
 | 
					        "basscss": "^8.0.3",
 | 
				
			||||||
    "react": "15.6.1",
 | 
					        "compare-versions": "^3.0.1",
 | 
				
			||||||
    "react-dom": "15.6.1",
 | 
					        "lodash": "^4.17.4",
 | 
				
			||||||
    "react-markdown": "^3.2.2",
 | 
					        "material-ui": "^0.17.1",
 | 
				
			||||||
    "react-scroll": "^1.5.2",
 | 
					        "react": "15.6.1",
 | 
				
			||||||
    "react-tap-event-plugin": "^2.0.1",
 | 
					        "react-dom": "15.6.1",
 | 
				
			||||||
    "react-tooltip": "^3.2.7"
 | 
					        "react-markdown": "^3.2.2",
 | 
				
			||||||
  },
 | 
					        "react-scroll": "^1.5.2",
 | 
				
			||||||
  "publishConfig": {
 | 
					        "react-tap-event-plugin": "^2.0.1",
 | 
				
			||||||
    "access": "public"
 | 
					        "react-tooltip": "^3.2.7"
 | 
				
			||||||
  }
 | 
					    },
 | 
				
			||||||
 | 
					    "publishConfig": {
 | 
				
			||||||
 | 
					        "access": "public"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								packages/react-docs/scripts/postpublish.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								packages/react-docs/scripts/postpublish.js
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										8
									
								
								packages/react-docs/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packages/react-docs/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/monorepo-scripts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					import * as tsConfigJSON from '../tsconfig.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const cwd = `${__dirname}/..`;
 | 
				
			||||||
 | 
					// tslint:disable-next-line:no-floating-promises
 | 
				
			||||||
 | 
					postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);
 | 
				
			||||||
@@ -9,5 +9,5 @@
 | 
				
			|||||||
            "*": ["node_modules/@types/*", "*"]
 | 
					            "*": ["node_modules/@types/*", "*"]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "include": ["./src/ts/**/*", "../../node_modules/web3-typescript-typings/index.d.ts"]
 | 
					    "include": ["./src/**/*", "../../node_modules/web3-typescript-typings/index.d.ts"]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,50 +1,53 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@0xproject/react-shared",
 | 
					    "name": "@0xproject/react-shared",
 | 
				
			||||||
  "version": "0.0.1",
 | 
					    "version": "0.0.1",
 | 
				
			||||||
  "description": "0x shared react components",
 | 
					    "description": "0x shared react components",
 | 
				
			||||||
  "main": "lib/index.js",
 | 
					    "main": "lib/index.js",
 | 
				
			||||||
  "types": "lib/index.d.ts",
 | 
					    "types": "lib/index.d.ts",
 | 
				
			||||||
  "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
    "lint": "tslint --project . 'src/ts/**/*.ts' 'src/ts/**/*.tsx'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts' 'src/**/*.tsx'",
 | 
				
			||||||
    "build": "tsc",
 | 
					        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
 | 
				
			||||||
    "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
    "clean": "shx rm -rf lib"
 | 
					        "clean": "shx rm -rf lib scripts"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "author": "Fabio Berger",
 | 
					    "author": "Fabio Berger",
 | 
				
			||||||
  "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
  "bugs": {
 | 
					    "bugs": {
 | 
				
			||||||
      "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo/issues"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "homepage": "https://github.com/0xProject/0x-monorepo/packages/react-shared/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/react-shared/README.md",
 | 
				
			||||||
  "repository": {
 | 
					    "repository": {
 | 
				
			||||||
      "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
      "url": "https://github.com/0xProject/0x-monorepo.git"
 | 
					        "url": "https://github.com/0xProject/0x-monorepo.git"
 | 
				
			||||||
  },
 | 
					    },
 | 
				
			||||||
  "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
    "@0xproject/tslint-config": "^0.4.9",
 | 
					        "@0xproject/dev-utils": "^0.2.1",
 | 
				
			||||||
    "@types/lodash": "^4.14.86",
 | 
					        "@0xproject/monorepo-scripts": "^0.1.12",
 | 
				
			||||||
    "@types/material-ui": "0.18.0",
 | 
					        "@0xproject/tslint-config": "^0.4.9",
 | 
				
			||||||
    "@types/node": "^8.0.53",
 | 
					        "@types/lodash": "^4.14.86",
 | 
				
			||||||
    "@types/react": "^15.0.15",
 | 
					        "@types/material-ui": "0.18.0",
 | 
				
			||||||
    "@types/react-dom": "^0.14.23",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
    "@types/react-scroll": "0.0.31",
 | 
					        "@types/react": "^15.0.15",
 | 
				
			||||||
    "shx": "^0.2.2",
 | 
					        "@types/react-dom": "^0.14.23",
 | 
				
			||||||
    "tslint": "^5.9.1",
 | 
					        "@types/react-scroll": "0.0.31",
 | 
				
			||||||
    "typescript": "2.7.1"
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
  },
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
  "dependencies": {
 | 
					        "tslint": "^5.9.1",
 | 
				
			||||||
    "basscss": "^8.0.3",
 | 
					        "typescript": "2.7.1"
 | 
				
			||||||
    "is-mobile": "^0.2.2",
 | 
					    },
 | 
				
			||||||
    "lodash": "^4.17.4",
 | 
					    "dependencies": {
 | 
				
			||||||
    "material-ui": "^0.17.1",
 | 
					        "basscss": "^8.0.3",
 | 
				
			||||||
    "react": "15.6.1",
 | 
					        "is-mobile": "^0.2.2",
 | 
				
			||||||
    "react-dom": "15.6.1",
 | 
					        "lodash": "^4.17.4",
 | 
				
			||||||
    "react-highlight": "0xproject/react-highlight",
 | 
					        "material-ui": "^0.17.1",
 | 
				
			||||||
    "react-markdown": "^3.2.2",
 | 
					        "react": "15.6.1",
 | 
				
			||||||
    "react-scroll": "^1.5.2",
 | 
					        "react-dom": "15.6.1",
 | 
				
			||||||
    "react-tap-event-plugin": "^2.0.1"
 | 
					        "react-highlight": "0xproject/react-highlight",
 | 
				
			||||||
  },
 | 
					        "react-markdown": "^3.2.2",
 | 
				
			||||||
  "publishConfig": {
 | 
					        "react-scroll": "^1.5.2",
 | 
				
			||||||
    "access": "public"
 | 
					        "react-tap-event-plugin": "^2.0.1"
 | 
				
			||||||
  }
 | 
					    },
 | 
				
			||||||
 | 
					    "publishConfig": {
 | 
				
			||||||
 | 
					        "access": "public"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								packages/react-shared/scripts/postpublish.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								packages/react-shared/scripts/postpublish.js
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user