This repository hosts the source code of the "Ricerca su Treccani" Firefox extension, which lets you search the Treccani online corpus directly from the browser address bar.
The source code has been built on Windows 10 Home Edition, version 1909 (build 18363.1016), using the following tools:
- Node.js version 12.16.2;
- npm version 6.14.4;
- Typescript version 3.6.2.
You should be able to build the project on other platforms and with different versions, too.
To build this project, you first need to download and install Node.js (which includes npm), Typescript and optionally Git. For more information on how to install these tools, please see the links above.
Download this repository or clone it with Git:
git clone https://github.com/giuse94/TreccaniSearch.git
. If you opted for the download, unzip the folder (extract its content)
in a folder of your choice.
Open your favourite terminal and set the ts
folder (which you find inside the folder you created in the previous step) as your
working directory. Download and install this package
via npm: npm install @types/firefox-webext-browser
. Now you can build the project by simply running tsc
. As a result, the
package
folder will be filled with the JavaScript files you need to run the extension in your browser.