move scripts to monorepro-scripts

This commit is contained in:
Fabio Berger
2018-03-13 15:29:12 +01:00
parent df1968157c
commit ca25b816fa
122 changed files with 498 additions and 297 deletions

View File

@@ -0,0 +1,6 @@
declare module '*.json' {
const json: any;
/* tslint:disable */
export default json;
/* tslint:enable */
}

View File

@@ -0,0 +1,6 @@
import { postpublishUtils } from '@0xproject/monorepo-scripts';
import * as packageJSON from '../package.json';
const subPackageName = (packageJSON as any).name;
postpublishUtils.standardPostPublishAsync(subPackageName);

View File

@@ -5,8 +5,8 @@
"main": "tslint.json",
"scripts": {
"build:watch": "tsc -w",
"build": "tsc",
"clean": "shx rm -rf lib",
"build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
"clean": "shx rm -rf lib scripts",
"lint": "tslint --project . 'rules/**/*.ts'"
},
"repository": {
@@ -30,7 +30,9 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/tslint-config/README.md",
"devDependencies": {
"@0xproject/monorepo-scripts": "^0.1.12",
"@types/lodash": "^4.14.86",
"copyfiles": "^1.2.0",
"shx": "^0.2.2",
"typescript": "2.7.1"
},

View File

@@ -1,5 +0,0 @@
const postpublish_utils = require('../../../scripts/postpublish_utils');
const packageJSON = require('../package.json');
const subPackageName = packageJSON.name;
postpublish_utils.standardPostPublishAsync(subPackageName);

View File

@@ -3,5 +3,5 @@
"compilerOptions": {
"outDir": "lib"
},
"include": ["./rules/**/*"]
"include": ["./rules/**/*", "./monorepo_scripts/**/*", "../../node_modules/web3-typescript-typings/index.d.ts"]
}