Add @babel/core (parcel v7 stuff)

pull/1271/head
Rick Carlino 2019-07-14 18:53:22 -05:00
parent 04daa7df00
commit a5955364dd
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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",