Skip to content

Commit

Permalink
HUE-9414. [ui] Publish ERD component to NPM (sree)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreenaths committed Jul 20, 2020
1 parent 9cde62d commit cefe617
Show file tree
Hide file tree
Showing 6 changed files with 583 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build
env
metastore_db
VERSION_INFO
npm_dist

# Generated configuration
desktop/conf/*.ini
Expand Down
21 changes: 21 additions & 0 deletions NPM-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


https://docs.gethue.com/developer/api/#sql-autocompletion

npm install gethue


import sqlAutocompleteParser from 'gethue/parse/sql/hive/hiveAutocompleteParser';

const beforeCursor = 'SELECT col1, col2, tbl2.col3 FROM tbl; '; // Note extra space at end
const afterCursor = '';
const dialect = 'hive';
const debug = false;

console.log(
JSON.stringify(
sqlAutocompleteParser.parseSql(beforeCursor, afterCursor, dialect, debug),
null,
2
)
);
6 changes: 6 additions & 0 deletions docs/docs-site/content/developer/development/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,12 @@ Release:

Then send release notes to the [Forum](https://discourse.gethue.com/), [hue-user](https://groups.google.com/a/cloudera.org/forum/#!forum/hue-user), https://twitter.com/gethue !

### Publishing GetHue

To publish gethue to NPM registry, the following command would have to be run. Kindly refrain from using `npm publish`.

npm run publish-gethue

## Building

### Dev Docker
Expand Down
Loading

0 comments on commit cefe617

Please sign in to comment.