2023-05-26 09:22:34 +00:00
|
|
|
use std log warning
|
|
|
|
|
2023-05-20 12:57:51 +00:00
|
|
|
print '-------------------------------------------------------------------'
|
2024-05-20 17:22:08 +00:00
|
|
|
print 'Building nushell (nu) and all the plugins'
|
2023-05-20 12:57:51 +00:00
|
|
|
print '-------------------------------------------------------------------'
|
|
|
|
|
2023-05-26 09:22:34 +00:00
|
|
|
warning "./scripts/build-all.nu will be deprecated, please use the `toolkit build` command instead"
|
|
|
|
|
2023-10-19 20:07:01 +00:00
|
|
|
let repo_root = ($env.CURRENT_FILE | path dirname --num-levels 2)
|
2023-05-20 12:57:51 +00:00
|
|
|
|
|
|
|
def build-nushell [] {
|
|
|
|
print $'(char nl)Building nushell'
|
|
|
|
print '----------------------------'
|
|
|
|
|
|
|
|
cd $repo_root
|
2024-05-20 17:22:08 +00:00
|
|
|
cargo build --locked
|
2023-05-20 12:57:51 +00: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,
|
2024-08-06 20:23:56 +00:00
|
|
|
nu_plugin_polars
|
2023-05-20 12:57:51 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
for plugin in $plugins {
|
|
|
|
$plugin | build-plugin
|
|
|
|
}
|