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