2023-05-26 11:22:34 +02:00
|
|
|
use std log warning
|
|
|
|
|
2023-05-20 14:57:51 +02:00
|
|
|
print '-------------------------------------------------------------------'
|
|
|
|
print 'Building nushell (nu) with dataframes and all the plugins'
|
|
|
|
print '-------------------------------------------------------------------'
|
|
|
|
|
2023-05-26 11:22:34 +02:00
|
|
|
warning "./scripts/build-all.nu will be deprecated, please use the `toolkit build` command instead"
|
|
|
|
|
2023-10-19 22:07:01 +02:00
|
|
|
let repo_root = ($env.CURRENT_FILE | path dirname --num-levels 2)
|
2023-05-20 14:57:51 +02:00
|
|
|
|
|
|
|
def build-nushell [] {
|
|
|
|
print $'(char nl)Building nushell'
|
|
|
|
print '----------------------------'
|
|
|
|
|
|
|
|
cd $repo_root
|
2023-08-21 19:42:42 +02:00
|
|
|
cargo build --features=dataframe,extra --locked
|
2023-05-20 14:57:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|