Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
aiware-header-bar
Advanced tools
New Veritone header bar reusable for all apps
The Header Bar use rollup and webpack to create bundle file and publish as cdn and npm package.
# Clone the repository
git clone https://github.com/veritone/aiware-header-bar.git
# Go inside the directory
cd aiware-header-bar
# Install dependencies
yarn (or npm install)
yarn start (or npm run dev)
Note: add this code into src/index.app.js
ReactDOM.render(
<Provider store={store}>
<HeaderBar />
</Provider>,
document.getElementById('root')
);
# Build for npmjs version
yarn build (or npm run build)
npm publish
# Build for cdn version
yarn build:cdn
yarn publish:cdn
#note: Currently I updload cdn version by myself. Script is comming.The s3 Bucket is aiware-header-bar. you need to upload the build/static/js => aiware-header-bar/aiware.js
aiware-header-bar uses a number of open source projects to work properly:
All the source code will be inside root directory. Inside src, there is client and server directory. All the frontend code (react, css, js and any other assets) will be in client directory. Backend Node.js/Express code will be in the server directory.
ESLint is a pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
.eslintrc.json file (alternatively configurations can we written in Javascript or YAML as well) is used describe the configurations required for ESLint. Below is the .eslintrc.json file which We are using Airbnb's Javascript Style Guide which is used by many JavaScript developers worldwide. Since we are going to write both client (browser) and server side (Node.js) code, We are setting the env to browser and node. Optionally, we can override the Airbnb's configurations to suit our needs.
Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser.
script/webpack.config.js file is used to describe the configurations required for webpack.
VSCode is a lightweight but powerful source code editor. ESLint takes care of the code-quality. Prettier takes care of all the formatting.
Install VSCode
Install ESLint extension
Install Prettier extension
Modify the VSCode user settings to add below configuration
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"editor.formatOnSave": true,
"prettier.eslintIntegration": true
Above, we have modified editor configurations. Alternatively, this can be configured at the project level by following this article.
FAQs
New Veritone header bar reusable for all apps
The npm package aiware-header-bar receives a total of 0 weekly downloads. As such, aiware-header-bar popularity was classified as not popular.
We found that aiware-header-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.