Add build:watch command to all TS packages

This commit is contained in:
Leonid Logvinov 2018-02-01 12:30:41 +01:00
parent 6682abf89d
commit 09659cc304
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4
15 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"main": "lib/src/index.js", "main": "lib/src/index.js",
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"prebuild": "run-s clean generate_contract_wrappers", "prebuild": "run-s clean generate_contract_wrappers",
"build": "run-p build:umd:prod build:commonjs; exit 0;", "build": "run-p build:umd:prod build:commonjs; exit 0;",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_DIR", "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_DIR",

View File

@ -5,6 +5,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"lint": "tslint --project . 'src/**/*.ts'", "lint": "tslint --project . 'src/**/*.ts'",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"build": "tsc" "build": "tsc"

View File

@ -5,6 +5,7 @@
"main": "lib/src/index.js", "main": "lib/src/index.js",
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf _bundles lib test_temp", "clean": "shx rm -rf _bundles lib test_temp",
"lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'", "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",

View File

@ -6,6 +6,7 @@
"main": "lib/src/index.js", "main": "lib/src/index.js",
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf _bundles lib test_temp", "clean": "shx rm -rf _bundles lib test_temp",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_DIR", "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_DIR",

View File

@ -8,6 +8,7 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"build:watch": "tsc -w",
"prebuild": "run-s clean copy_artifacts", "prebuild": "run-s clean copy_artifacts",
"copy_artifacts": "copyfiles './build/**/*' './deploy/solc/solc_bin/*' './deploy/test/fixtures/contracts/**/*' './deploy/test/fixtures/contracts/*' ./lib", "copy_artifacts": "copyfiles './build/**/*' './deploy/solc/solc_bin/*' './deploy/test/fixtures/contracts/**/*' './deploy/test/fixtures/contracts/*' ./lib",
"build": "tsc", "build": "tsc",

View File

@ -5,6 +5,7 @@
"main": "lib/src/index.js", "main": "lib/src/index.js",
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "yarn clean && copyfiles 'test/fixtures/contracts/**/*' src/solc/solc_bin/* ./lib && tsc", "build": "yarn clean && copyfiles 'test/fixtures/contracts/**/*' src/solc/solc_bin/* ./lib && tsc",
"test": "npm run build; mocha lib/test/*_test.js", "test": "npm run build; mocha lib/test/*_test.js",
"compile": "npm run build; node lib/src/cli.js compile", "compile": "npm run build; node lib/src/cli.js compile",

View File

@ -5,6 +5,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"lint": "tslint --project . 'src/**/*.ts'" "lint": "tslint --project . 'src/**/*.ts'"

View File

@ -5,6 +5,7 @@
"main": "lib/src/index.js", "main": "lib/src/index.js",
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"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:circleci": "yarn test",

View File

@ -4,6 +4,7 @@
"private": true, "private": true,
"description": "Helper scripts for the monorepo", "description": "Helper scripts for the monorepo",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"deps_versions": "node ./lib/deps_versions.js", "deps_versions": "node ./lib/deps_versions.js",
"lint": "tslint --project . 'src/**/*.ts'", "lint": "tslint --project . 'src/**/*.ts'",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",

View File

@ -5,6 +5,7 @@
"types": "lib/src/index.d.ts", "types": "lib/src/index.d.ts",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"build": "tsc", "build": "tsc",
"lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'", "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",

View File

@ -5,6 +5,7 @@
"description": "A faucet micro-service that dispenses test ERC20 tokens or Ether", "description": "A faucet micro-service that dispenses test ERC20 tokens or Ether",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "node ../../node_modules/gulp/bin/gulp.js build", "build": "node ../../node_modules/gulp/bin/gulp.js build",
"dev": "node ../../node_modules/gulp/bin/gulp.js run", "dev": "node ../../node_modules/gulp/bin/gulp.js run",
"start": "node ./bin/server.js", "start": "node ./bin/server.js",

View File

@ -4,6 +4,7 @@
"description": "Lint rules related to 0xProject for TSLint", "description": "Lint rules related to 0xProject for TSLint",
"main": "tslint.json", "main": "tslint.json",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"lint": "tslint --project . 'rules/**/*.ts'" "lint": "tslint --project . 'rules/**/*.ts'"

View File

@ -5,6 +5,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"lint": "tslint --project . 'src/**/*.ts'" "lint": "tslint --project . 'src/**/*.ts'"

View File

@ -5,6 +5,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"lint": "tslint --project . 'src/**/*.ts'" "lint": "tslint --project . 'src/**/*.ts'"

View File

@ -5,6 +5,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"scripts": { "scripts": {
"build:watch": "tsc -w",
"build": "tsc", "build": "tsc",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"lint": "tslint --project . 'src/**/*.ts'" "lint": "tslint --project . 'src/**/*.ts'"