You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added Node.js as build dependency and removes build files from git.
- Added version checks for both Go and Node.js.
- Overhauled the js/css make target to only run when needed.
- Merged the `generate` make target into `build` as per suggestion.
Fixes: #6782Fixes: #9216
Next, [install Node.js with npm](https://nodejs.org/en/download/) which is
27
+
required to build the JavaScript and CSS files. The minimum supported Node.js
28
+
version is 10 and the latest LTS version is recommended.
29
+
26
30
You will also need make.
27
31
<ahref='{{< relref "doc/advanced/make.en-us.md" >}}'>(See here how to get Make)</a>
28
32
@@ -98,7 +102,7 @@ from source</a>.
98
102
The simplest recommended way to build from source is:
99
103
100
104
```bash
101
-
TAGS="bindata sqlite sqlite_unlock_notify" make generate build
105
+
TAGS="bindata sqlite sqlite_unlock_notify" make build
102
106
```
103
107
104
108
However, there are a number of additional make tasks you should be aware of.
@@ -136,19 +140,17 @@ You should run revive, vet and spell-check on the code with:
136
140
make revive vet misspell-check
137
141
```
138
142
139
-
### Updating CSS
140
-
141
-
To generate the CSS, you need [Node.js](https://nodejs.org/) 8.0 or greater with npm. We use [less](http://lesscss.org/) and [postcss](https://postcss.org) to generate our CSS. Do **not** edit the files in `public/css` directly, as they are generated from `lessc` from the files in `public/less`.
143
+
### Working on CSS
142
144
143
-
Edit files in `public/less`, and then run the linter and build the CSS files via:
145
+
Edit files in `web_src/less` and run the linter and build the CSS files via:
144
146
145
147
```bash
146
148
make css
147
149
```
148
150
149
-
### Updating JS
151
+
### Working on JS
150
152
151
-
To generate the JS files, you need [Node.js](https://nodejs.org/) 8.0 or greater with npm. Edit files in `public/js`, run the linter and build the JS files via:
153
+
Edit files in `web_src/js`, run the linter and build the JS files via:
152
154
153
155
```bash
154
156
make js
@@ -235,7 +237,7 @@ Unit tests will not and cannot completely test Gitea alone. Therefore, we
235
237
have written integration tests; however, these are database dependent.
236
238
237
239
```bash
238
-
TAGS="bindata sqlite sqlite_unlock_notify" make generate build test-sqlite
240
+
TAGS="bindata sqlite sqlite_unlock_notify" make build test-sqlite
239
241
```
240
242
241
243
will run the integration tests in an sqlite environment. Other database tests
0 commit comments