mirror of
https://github.com/nushell/nushell
synced 2024-11-10 15:14:14 +00:00
905e3d0715
# Description Removes the old `nu-cmd-dataframe` crate in favor of the polars plugin. As such, this PR also removes the `dataframe` feature, related CI, and full releases of nushell.
40 lines
937 B
Text
40 lines
937 B
Text
use std log warning
|
|
|
|
print '-------------------------------------------------------------------'
|
|
print 'Building nushell (nu) and all the plugins'
|
|
print '-------------------------------------------------------------------'
|
|
|
|
warning "./scripts/build-all.nu will be deprecated, please use the `toolkit build` command instead"
|
|
|
|
let repo_root = ($env.CURRENT_FILE | path dirname --num-levels 2)
|
|
|
|
def build-nushell [] {
|
|
print $'(char nl)Building nushell'
|
|
print '----------------------------'
|
|
|
|
cd $repo_root
|
|
cargo build --locked
|
|
}
|
|
|
|
def build-plugin [] {
|
|
let plugin = $in
|
|
|
|
print $'(char nl)Building ($plugin)'
|
|
print '----------------------------'
|
|
|
|
cd $'($repo_root)/crates/($plugin)'
|
|
cargo build
|
|
}
|
|
|
|
let plugins = [
|
|
nu_plugin_inc,
|
|
nu_plugin_gstat,
|
|
nu_plugin_query,
|
|
nu_plugin_example,
|
|
nu_plugin_custom_values,
|
|
nu_plugin_formats,
|
|
]
|
|
|
|
for plugin in $plugins {
|
|
$plugin | build-plugin
|
|
}
|