improve esbuilder instructions
This commit is contained in:
parent
7bc89fd21a
commit
8f3991d8e7
2 changed files with 38 additions and 10 deletions
22
.gitignore
vendored
22
.gitignore
vendored
|
@ -1,9 +1,17 @@
|
||||||
|
# virtual envs
|
||||||
node_modules/
|
node_modules/
|
||||||
assets/css/default.css
|
lektor/
|
||||||
assets/css/schedule-aula.css
|
|
||||||
assets/css/speaker-info-aula.css
|
# nodejs sh1t
|
||||||
assets/css/upcoming-talk-aula.css
|
package-lock.json
|
||||||
assets/css/fonts.css
|
package.json
|
||||||
assets/css/schedule.css
|
|
||||||
assets/css/talk-info-aula.css
|
# scss
|
||||||
|
assets/css/default*.css
|
||||||
|
assets/css/schedule-aula*.css
|
||||||
|
assets/css/speaker-info-aula*.css
|
||||||
|
assets/css/upcoming-talk-aula*.css
|
||||||
|
assets/css/fonts*.css
|
||||||
|
assets/css/schedule*.css
|
||||||
|
assets/css/talk-info-aula*.css
|
||||||
|
|
||||||
|
|
26
README.md
26
README.md
|
@ -5,21 +5,41 @@ This is a lektor Projekt, more about lektor on [getlektor.com](https://getlektor
|
||||||
|
|
||||||
Because thsi project is migrated from a hugo project, currently the [esbuild](https://esbuild.github.io/) Javascript builder is not automated and has to be done manually to update scripts.
|
Because thsi project is migrated from a hugo project, currently the [esbuild](https://esbuild.github.io/) Javascript builder is not automated and has to be done manually to update scripts.
|
||||||
|
|
||||||
|
lektor venv install
|
||||||
|
---------------------
|
||||||
|
To install the python package lektor as venv, run these commands:
|
||||||
|
```bash
|
||||||
|
python -m venv lektor
|
||||||
|
source lektor/bin/activate
|
||||||
|
pip install lektor
|
||||||
|
```
|
||||||
|
|
||||||
|
Run lektor:
|
||||||
|
```bash
|
||||||
|
source lektor/bin/activate
|
||||||
|
lektor server -f scss
|
||||||
|
```
|
||||||
|
|
||||||
esbuild instructions
|
esbuild instructions
|
||||||
----------------------
|
----------------------
|
||||||
prepare esbuild nodejs enviroment
|
prepare esbuild nodejs enviroment
|
||||||
```
|
```
|
||||||
|
# aktivate lektor ennv
|
||||||
|
source lektor/bin/activate
|
||||||
|
|
||||||
|
# install nodeenv
|
||||||
pip install nodeenv
|
pip install nodeenv
|
||||||
|
|
||||||
|
# add nodejs env to current env
|
||||||
nodeenv -p
|
nodeenv -p
|
||||||
|
|
||||||
|
# install esbuild
|
||||||
npm install --save-exact --save-dev esbuild
|
npm install --save-exact --save-dev esbuild
|
||||||
./node_modules/.bin/esbuild --version
|
./node_modules/.bin/esbuild --version
|
||||||
|
|
||||||
npm install react react-dom
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
build assets
|
build assets
|
||||||
```bash
|
```bash
|
||||||
|
source lektor/bin/activate
|
||||||
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule.js --bundle --outfile=assets/rendered_schedule.js
|
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule.js --bundle --outfile=assets/rendered_schedule.js
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue