From 68066369be3ed1aee5697c33524a7810e2105bbb Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Tue, 30 Oct 2018 12:28:03 -0700 Subject: [PATCH] update readme and clean up config --- README.md | 11 +++++------ package.json | 1 + packages/superset-ui-translation/package.json | 16 ---------------- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index da58f97a0b..e8db37556d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @superset-ui +# @superset-ui [![Build Status](https://img.shields.io/travis/com/apache-superset/superset-ui.svg?style=flat-square )](https://travis-ci.com/apache-superset/superset-ui) @@ -44,22 +44,21 @@ superset-ui/ ... ``` -For easiest development +### Installation 1. clone this repo -2. install the root npm modules including lerna and yarn -3. have lerna install package dependencies and manage the symlinking between packages for you +2. have lerna install package dependencies and manage the symlinking between packages for you ```sh git clone ...superset-ui && cd superset-ui npm install -lerna bootstrap +npm run bootstrap ``` ### Builds, linting, and testing Each package defines its own build config, linting, and testing. You can have lerna run commands -across all packages using the syntax `lerna exec test` from the root `@superset/monorepo` root +across all packages using the syntax `npm run test` (or `npm run test:watch` for watch mode) from the root `@superset/monorepo` root directory. ### Publishing diff --git a/package.json b/package.json index 0f09da012b..da05d0c068 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Superset UI", "private": true, "scripts": { + "bootstrap": "lerna bootstrap", "build": "yarn run build:cjs && yarn run build:esm", "build:cjs": "NODE_ENV=production beemo babel ./src --out-dir lib/ --minify --workspaces=*", "build:esm": "NODE_ENV=production beemo babel ./src --out-dir esm/ --esm --minify --workspaces=*", diff --git a/packages/superset-ui-translation/package.json b/packages/superset-ui-translation/package.json index e02f083b85..48900490eb 100644 --- a/packages/superset-ui-translation/package.json +++ b/packages/superset-ui-translation/package.json @@ -25,27 +25,11 @@ }, "homepage": "https://github.com/apache-superset/superset-ui#readme", "devDependencies": { - "@data-ui/build-config": "^0.0.23", "jest-mock-console": "^0.4.0" }, "dependencies": { - "@babel/runtime": "^7.1.2", "jed": "^1.1.1" }, - "beemo": { - "module": "@data-ui/build-config", - "drivers": [ - "babel", - "eslint", - { - "driver": "jest", - "env": { - "NODE_ENV": "test" - } - }, - "prettier" - ] - }, "publishConfig": { "access": "public" }