https://github.com/warelab/gramene-sites
Front end of gramene main and subsites
https://github.com/warelab/gramene-sites
Last synced: 8 months ago
JSON representation
Front end of gramene main and subsites
- Host: GitHub
- URL: https://github.com/warelab/gramene-sites
- Owner: warelab
- License: apache-2.0
- Created: 2021-09-16T16:50:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T21:22:58.000Z (over 1 year ago)
- Last Synced: 2025-02-07T22:27:42.649Z (over 1 year ago)
- Language: JavaScript
- Size: 18.3 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gramene-sites
Front end of gramene main and subsites
Install dependencies
```shell
npm install
```
This hack is necessary to get Parcel to transpile imported node modules correctly.
Edit node_modules/@parcel/core/lib/summarizeRequest.js
Change return !filePath.includes(NODE_MODULES);
to return true;
Start a site in development mode
```shell
npm run main
npm run maize
npm run grapevine
...
```
Build a site for production
```shell
node build.js [-h] [-m MODE] site
```
When updating the search index for a site, you have to change the ```grameneData``` field in ```conf/site.json``` and the ```gramene.defaultServer``` in ```html/site.html```
Whe you configure a new site, you need to create ```conf/site.json``` and ```html/site.html``` and also add it to ```conf/index.js``` and ```package.json```