gitea-guide/TLDR.md

48 lines
927 B
Markdown
Raw Normal View History

2023-05-03 16:45:20 -04:00
repeating the short npm solution
```bash
# Add into your .npmrc
@tornado:registry=https://development.tornadocash.community/api/packages/T-Hax/npm/
```
or
```bash
# Add into your .npmrc
@tornado:registry=https://git.tornado.ws/api/packages/tornado-packages/npm/
2023-05-03 16:45:20 -04:00
```
otherwise if ready to use yarn 3:
2023-04-28 13:40:24 -04:00
install
```bash
# first deinstall yarn to be safe
npm i -g corepack
corepack prepare yarn@<version> --activate
yarn --version
# Should print 3.X.X or above
```
for node <16.10
```bash
# first deinstall yarn to be safe
corepack enable
corepack prepare yarn@stable --activate
yarn --version
# Should print 3.X.X or above
```
for node >=16.10
then to setup a project
```bash
cp yarnrc.yml your-project-dir/.yarnrc.yml
cp gitea.env.example your-project-dir/.gitea.env
cp gitignore your-project-dir/.gitignore
2023-04-28 13:40:24 -04:00
# Then uncomment one of the possibilities in gitignore
```
and then head over to [config](./gitea.env.example)