-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Make Feast UI importable as a NPM Module (#2370)
* Make FeastUI publishable as NPM Module Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Fixes tests Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Add Feature Flags as Config Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Update package.json Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Make where to fetch projects configurable. Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Match Feast's License Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Better error messages for missing Project List Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Fix typo and remove gitignore Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Add customization instructions to the README Signed-off-by: Tony Chu <tonyhschu@gmail.com> * Add back tests and document publishing Signed-off-by: Tony Chu <tonyhschu@gmail.com>
- Loading branch information
Showing
80 changed files
with
2,928 additions
and
2,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: [["@babel/preset-env"], ["@babel/preset-react"]], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Publishing the Feast Package to NPM | ||
|
||
The Feast UI is published as a module to NPM and can be found here: https://www.npmjs.com/package/@feast-dev/feast-ui | ||
|
||
To publish a new version of the module, you will need to be part of the @feast-dev team in NPM. Ask Tony to add you if necessary. You will also need to [login to your NPM account on the command line](https://docs.npmjs.com/cli/v8/commands/npm-adduser). | ||
|
||
## Steps for Publishing | ||
|
||
1. Make sure tests are passing. Run tests with `yarn tests` in the ui directory. | ||
2. Bump the version number in `package.json` as appropriate. | ||
3. Package the modules for distributions. Run the library build script with `yarn build:lib`. We use [Rollup](https://rollupjs.org/) for building the module, and the configs are in the `rollup.config.js` file. | ||
4. Publish the package to NPM. Run `npm publish` | ||
5. [Check NPM to see that the package was properly publish](https://www.npmjs.com/package/@feast-dev/feast-ui). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.