mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
8eece32a8d
# Description i've almost always wanted to clean up the root of the repo, so here is my take at it, with some important advice given by @fdncred 😌 - `README.release.txt` is now gone and directly inline in the `release-pkg` script used in the `release` *workflow* - `build.rs` has been moved to `scripts/` and its path has been changed in [`Cargo.toml`](https://github.com/amtoine/nushell/blob/refactor/clean-root/Cargo.toml#L3) according to the [*Build Scripts* section](https://doc.rust-lang.org/cargo/reference/build-scripts.html#build-scripts) of *The Cargo Book* - i've merged `images/` into `assets/` and fix the only mention to the GIF in the README - i've moved the `docs/README.md` inside the main `README.md` as a new [*Configuration* section](https://github.com/amtoine/nushell/tree/refactor/clean-root#configuration) - the very deprecated `pkg_mgrs/` has been removed - all the `.nu`, `.sh`, `.ps1` and `.cmd` scripts have been moved to `scripts/` ### things i've left as-is - all the other `.md` documents - the configuration files - all the Rust and core stuff - `docker/` - `toolkit.nu` - the `wix/` diretory which appears to be important for `winget` # User-Facing Changes scripts that used to rely on the paths to some of the scripts should now call the scripts inside `scripts/` => i think this for the greater good, it was not pretty nor scalable to have a bunch of scripts in the root of our main `nushell` 😱 *i even think we might want to move these scripts outside the main `nushell` repo* maybe to `nu_scripts` or some other tool 👍 # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - ⚫ `toolkit test` - ⚫ `toolkit test stdlib` # After Submitting ``` $nothing ```
31 lines
793 B
Batchfile
31 lines
793 B
Batchfile
@echo off
|
|
echo -------------------------------------------------------------------
|
|
echo Building nushell (nu.exe) with dataframes and all the plugins
|
|
echo -------------------------------------------------------------------
|
|
echo.
|
|
|
|
echo Building nushell.exe
|
|
cargo build --features=dataframe
|
|
echo.
|
|
|
|
call :build crates\nu_plugin_example nu_plugin_example.exe
|
|
call :build ..\..\crates\nu_plugin_gstat nu_plugin_gstat.exe
|
|
call :build ..\..\crates\nu_plugin_inc nu_plugin_inc.exe
|
|
call :build ..\..\crates\nu_plugin_query nu_plugin_query.exe
|
|
call :build ..\..\crates\nu_plugin_custom_values nu_plugin_custom_values.exe
|
|
|
|
cd ..\..
|
|
exit /b 0
|
|
|
|
:build
|
|
setlocal
|
|
set "location=%~1"
|
|
set "target=%~2"
|
|
|
|
cd "%location%"
|
|
echo Building %target%
|
|
cargo build
|
|
echo.
|
|
endlocal
|
|
exit /b 0
|