Add `rake frontend:install`.
parent
b311f82461
commit
497ab2342c
|
@ -0,0 +1,15 @@
|
|||
require_relative '../key_gen'
|
||||
|
||||
namespace :frontend do
|
||||
desc "Install the frontend into /public"
|
||||
task install: :environment do
|
||||
`
|
||||
|
||||
git clone https://github.com/FarmBot/farmbot-web-frontend.git public
|
||||
cd public
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
`
|
||||
end
|
||||
end
|
|
@ -4,7 +4,7 @@
|
|||
"description": "[![Code Climate](https://codeclimate.com/github/FarmBot/farmbot-web-app/badges/gpa.svg)](https://codeclimate.com/github/FarmBot/farmbot-web-app) [![Test Coverage](https://codeclimate.com/github/FarmBot/farmbot-web-app/badges/coverage.svg)](https://codeclimate.com/github/FarmBot/farmbot-web-app) [![Build Status](https://travis-ci.org/FarmBot/farmbot-web-app.svg)](https://travis-ci.org/FarmBot/farmbot-web-app)",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"start": "rake frontend:install"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue