Add @babel/core (parcel v7 stuff)
parent
04daa7df00
commit
a5955364dd
|
@ -64,12 +64,18 @@ namespace :api do
|
|||
sh [intro, opts].join(" ")
|
||||
end
|
||||
|
||||
def clean_assets
|
||||
# Clear out cache and previous builds on initial load.
|
||||
sh [
|
||||
"rm -rf",
|
||||
DashboardController::CACHE_DIR,
|
||||
DashboardController::PUBLIC_OUTPUT_DIR,
|
||||
].join(" ") unless ENV["NO_CLEAN"]
|
||||
end
|
||||
|
||||
desc "Serve javascript assets (via Parcel bundler)."
|
||||
task serve_assets: :environment do
|
||||
# Clear out cache and previous builds on initial load.
|
||||
sh ["rm -rf",
|
||||
DashboardController::CACHE_DIR,
|
||||
DashboardController::PUBLIC_OUTPUT_DIR].join(" ") unless ENV["NO_CLEAN"]
|
||||
clean_assets
|
||||
parcel "watch", DashboardController::PARCEL_HMR_OPTS
|
||||
end
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
"author": "farmbot.io",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "7.5.4",
|
||||
"@blueprintjs/core": "3.17.1",
|
||||
"@blueprintjs/datetime": "3.11.0",
|
||||
"@blueprintjs/select": "3.9.0",
|
||||
|
|
Loading…
Reference in New Issue