Add `rake frontend:install`.

pull/274/head
Rick Carlino 2016-09-22 09:15:57 -05:00
parent b311f82461
commit 497ab2342c
3 changed files with 17 additions and 1 deletions

1
index.js 100644
View File

@ -0,0 +1 @@
console.log("Hello, world!");

View File

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

View File

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