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 ```
36 lines
735 B
Bash
Executable File
36 lines
735 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
|
|
REPO_ROOT=$(dirname $DIR)
|
|
|
|
echo "---------------------------------------------------------------"
|
|
echo "Building nushell (nu) with dataframes and all the plugins"
|
|
echo "---------------------------------------------------------------"
|
|
echo ""
|
|
|
|
NU_PLUGINS=(
|
|
'nu_plugin_example'
|
|
'nu_plugin_gstat'
|
|
'nu_plugin_inc'
|
|
'nu_plugin_query'
|
|
'nu_plugin_custom_values'
|
|
)
|
|
|
|
echo "Building nushell"
|
|
(
|
|
cd $REPO_ROOT
|
|
cargo build --features=dataframe
|
|
)
|
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
do
|
|
echo "Building $plugin..."
|
|
echo "-----------------------------"
|
|
(
|
|
cd "$REPO_ROOT/crates/$plugin"
|
|
cargo build
|
|
)
|
|
done
|