Skip to content

Commit

Permalink
weback and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bkawk committed Apr 13, 2018
1 parent 6e69dc0 commit e5bba2b
Show file tree
Hide file tree
Showing 14 changed files with 369 additions and 411 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["es2015", {"modules": false}]]
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.min.js
*.config.js
environment*.js
socket.io.js
build
abi.js
import-ecc.js
import-socketio.js
main.min.js
*.ecc.js
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
"extends": ["eslint:recommended", "google"],
"parser": "babel-eslint",
"env": {
"browser": true
},
"rules": {
"brace-style": "off",
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
"require-jsdoc": "off",
"max-len": ["error", 100]
},
"globals": {
"Polymer": true,
"Promise": true,
"webpack": true,
}
};
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js
sudo: required
dist: trusty
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
node_js:
- '6'
cache:
directories:
- $HOME/.cache/bower
- node_modules
install:
- npm install yarn -g
- npm install -g polymer-cli@next
- yarn install --flat
before_script:
- npm run lint
script:
- node --max-old-space-size=3072 ./node_modules/.bin/polymer build
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"license": "MIT",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
"buffer": "^5.1.0",
"crypto": "^1.0.1",
"eslint": "^3.19.0",
"eslint-config-google": "^0.7.0",
"eslint": "^4.19.1",
"eslint-config-google": "^0.9.1",
"eslint-plugin-html": "^2.0.0",
"ethereumjs-util": "^5.1.5",
"scryptsy": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/components/imports/import-ecc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.eosjs_ecc=f()}})(function(){var define,module,exports;return(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){(function(global){'use strict';function compare(a,b){if(a===b){return 0}
var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break}}
if(x<y){return-1}
Expand Down
1 change: 1 addition & 0 deletions src/components/imports/import-socketio.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/imports/main.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions wct.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"testTimeout": 600000,
"persistent": false,
"ttyOutput": false,
"verbose": false,
"expanded": false,
"plugins": {
"local": {
"browsers": ["chrome", "firefox"]
}
}
}
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const path = require('path');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
context: __dirname,
Expand Down
Loading

0 comments on commit e5bba2b

Please sign in to comment.