Frontend extension UI for Apate - an LLM based context aggregator to verify information and fight misinformation
To apply the TypeScript compilation configurations specified in the tsconfig.json
file, follow these steps:
- Set VS Code to use the Workspace version of TypeScript.
- Install the typescript-plugin-css-modules plugin as a development dependency by running
npm i --save-dev typescript-plugin-css-modules
. - Add a TypeScript declaration in
src/typings.d.ts
:declare module '*.module.css';
. - Include the plugin in the
tsconfig.json
file under thecompilerOptions.plugins
section:
"plugins": [
{
"name": "typescript-plugin-css-modules"
}
]
To build the project for development, follow these steps:
- Install a new development package by running
npm i --save-dev <package_name>
. - Resolve security vulnerability issues in dependencies by running
npm audit fix
. - Install project dependencies by running
npm install
. - Start the fast development mode Webpack build process that bundles files into the
dist
folder by runningnpm start
. - Run the test suite in the
test
folder by runningnpm test
.
To load the Chrome extension, follow these steps:
- Open Chrome and navigate to
chrome://extensions/
. - Toggle on
Developer mode
in the top right corner. - Click
Load unpacked
. - Select the entire
dist
folder.
To generate a minified production build in the dist
folder, follow these steps:
- Run
npm run build
. - ZIP the entire
dist
folder (e.g.dist.zip
). - Publish the ZIP file on the Chrome Web Store Developer Dashboard.
- This project was bootstrapped with Create React App.
- Fact icons created by Designing Hub - Flaticon.