项目作者: swarmcity

项目描述 :
Production Build - NO LONGER ACTIVE - for active development see SwarmCitySite
高级语言: HTML
项目地址: git://github.com/swarmcity/sc-boardwalk-production.git
创建时间: 2017-06-19T23:26:32Z
项目社区:https://github.com/swarmcity/sc-boardwalk-production

开源协议:

下载


Swarm City

Note: The active development has moved to Swarm City Site

Swarm City

boardwalk-production

Build Status

Refactor of Boardwalk in Polymer 2.0

Contributions

We actively welcome community contributions. Below are a set of instructions to get your dev environment setup. We have a living Production Wiki detailing what, how and why we are developing this production release. Once setup head on over to the issues and see what’s marked for contributions welcome.

  • Keep a lookout for weekend “Tidy-up” sprints, and issues labeled with “Contributions Welcome” these are a great way to meet the team and get started making contributions.

Setup version control & clone

grab a copy of Source Forge or Gitkracken then clone the repo!

Install development environment

next install Polymer CLI using
npm (we assume you have pre-installed node.js).

  1. npm install -g polymer-cli

Install Bower using npm

  1. npm install -g bower

Linux permissions issues can be solved by adding —allow-root

Bower install

  1. bower install

After install check to see which version of chai you have installed:

  1. bower ls | grep chai

If chai is a version lower than 4.0.2 install it manually:

  1. bower i -D chai

npm install

  1. npm install

Docker install

  1. alias dc='docker-compose'
  2. dc build prplserver && dc up prplserver
  3. dc build contracts
  4. dc build lint

Linting with eslint

Ensuring the code base stays clean and standardized we need all merges to pass linting

  1. npm run lint

If you’re on Windows, add the following line to .eslintrc.json to make sure linebreaks are read correctly:

  1. "linebreak-style": ["error", "windows"]

Test with Mocha and Chai via WCT

  1. polymer test -p

On Windows systems the tests might fail on their first run if the firewall permissions have yet to be set

Build

Ensure the project builds before testing

  1. polymer build

Serve

polymer serve

  1. polymer serve
  2. polymer serve build/production

Deploy

netlify deploy, set the deploy directory to build/production

  1. npm install netlify-cli -g
  2. netlify deploy

Truffle compile/deploy/test

  1. truffle migrate --reset --compile-all
  2. truffle test ./test/contracts/arcTokenTest.js

Browser Testing

BrowserStack

Thanks to the support of BrowserStack we can do real cross browser testing on multiple desktop and mobile platforms.