Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warelab/gramene-sites
Front end of gramene main and subsites
https://github.com/warelab/gramene-sites
Last synced: 20 days 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T20:55:25.000Z (about 1 year ago)
- Last Synced: 2024-04-12T01:07:57.665Z (9 months ago)
- Language: JavaScript
- Size: 17 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 subsitesInstall 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);
toreturn 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```