mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fixed makefile/package.json to run separated commands, updated README.md
This commit is contained in:
parent
85d5975f2a
commit
744bfa9bd4
13
Makefile
13
Makefile
@ -12,15 +12,12 @@ download-bins:
|
|||||||
install-deps:
|
install-deps:
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
|
|
||||||
out/app_vue.js:
|
compile-dev:
|
||||||
yarn dev:renderer:vue
|
yarn compile:main --cache
|
||||||
|
yarn compile:renderer --cache
|
||||||
|
|
||||||
out/app_react.js:
|
dev: install-deps compile-dev
|
||||||
yarn dev:renderer:react
|
yarn dev # run electron and watch files
|
||||||
|
|
||||||
dev: install-deps out/app_vue.js out/app_react.js
|
|
||||||
yarn dev:main
|
|
||||||
yarn dev-run-renderer --watch -k
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
yarn test
|
yarn test
|
||||||
|
|||||||
11
README.md
11
README.md
@ -31,6 +31,17 @@ Download a pre-built package from the [releases](https://github.com/lensapp/lens
|
|||||||
* `make dev` - builds and starts the app
|
* `make dev` - builds and starts the app
|
||||||
* `make test` - run tests
|
* `make test` - run tests
|
||||||
|
|
||||||
|
## Development (advanced)
|
||||||
|
|
||||||
|
Allows faster separately re-run some of involved processes:
|
||||||
|
|
||||||
|
1. `yarn dev:main` compiles electron's main process and watch files
|
||||||
|
1. `yarn dev:renderer:vue` compiles electron's renderer vue-part
|
||||||
|
1. `yarn dev:renderer:react` compiles electron's renderer react-part
|
||||||
|
1. `yarn dev-run` when all files compiled run this command to open the app
|
||||||
|
|
||||||
|
Alternatively to compile both render parts in single command use `yarn dev:renderer`
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Bug reports and pull requests are welcome on GitHub at https://github.com/lensapp/lens.
|
Bug reports and pull requests are welcome on GitHub at https://github.com/lensapp/lens.
|
||||||
|
|||||||
@ -11,12 +11,10 @@
|
|||||||
"email": "info@lakendlabs.com"
|
"email": "info@lakendlabs.com"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -k 'yarn dev:main --watch' 'yarn dev:renderer --watch'",
|
"dev": "concurrently -k 'yarn dev-run' 'yarn dev:main' 'yarn dev:renderer:react' 'yarn dev:renderer:vue'",
|
||||||
"dev-run": "electron --inspect .",
|
"dev-run": "electron --inspect .",
|
||||||
"dev-run-renderer": "concurrently -k 'yarn dev:renderer --watch' 'electron --inspect .'",
|
"dev:main": "DEBUG=true yarn compile:main --watch $@",
|
||||||
"dev-test": "yarn test --watch",
|
"dev:renderer": "DEBUG=true yarn compile:renderer --watch $@",
|
||||||
"dev:main": "DEBUG=true yarn compile:main $@",
|
|
||||||
"dev:renderer": "DEBUG=true yarn compile:renderer $@",
|
|
||||||
"dev:renderer:react": "yarn dev:renderer --config-name react $@",
|
"dev:renderer:react": "yarn dev:renderer --config-name react $@",
|
||||||
"dev:renderer:vue": "yarn dev:renderer --config-name vue $@",
|
"dev:renderer:vue": "yarn dev:renderer --config-name vue $@",
|
||||||
"compile": "yarn download-bins && concurrently 'yarn i18n:compile' 'yarn compile:main -p' 'yarn compile:renderer -p'",
|
"compile": "yarn download-bins && concurrently 'yarn i18n:compile' 'yarn compile:main -p' 'yarn compile:renderer -p'",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"outDir": "./dist",
|
"outDir": "./out",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"target": "ES2017",
|
"target": "ES2017",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user