-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
713 changed files
with
29,920 additions
and
13,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
node_modules/** | ||
**/node_modules/** | ||
build/** | ||
.tmp/** | ||
mocks/** | ||
docs/** | ||
*.json | ||
*.md | ||
*.less | ||
*.scss | ||
*.svg | ||
git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
module.exports = { | ||
'extends': ['plugin:chronobank-react/recommended'] | ||
root: true, | ||
extends: ['plugin:chronobank-react/recommended'], | ||
rules: { | ||
'space-before-function-paren': ['error', 'always'], | ||
'import/no-extraneous-dependencies': 'off' // TODO Use webpack resolver possible to solve issues with aliased modules | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ coverage/ | |
*.bac | ||
|
||
/build | ||
/report | ||
.truffle-solidity-loader | ||
/coverage | ||
yarn.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
sudo: required | ||
sudo: true | ||
dist: trusty | ||
os: linux | ||
group: stable | ||
language: node_js | ||
node_js: 7.9.0 | ||
|
||
install: | ||
- npm install | ||
- export NODE_ENV='' | ||
|
||
script: | ||
- npm run testrpc > /dev/null & | ||
- sleep 5 && npm run bridge > /dev/null & | ||
- sleep 60 && npm run contracts | ||
- npm test -- --coverage | ||
|
||
after_script: | ||
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | ||
|
||
notifications: | ||
slack: chrono-dev:a6jsr4kW5U4uxrGNOxygOWGF | ||
email: false | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
jobs: | ||
include: | ||
- stage: build docker image | ||
script: | ||
- npm config set NPM_CONFIG_LOGLEVEL error | ||
- npm install --silent | ||
- npm run testrpc > /dev/null & | ||
- sleep 5 && npm run bridge > /dev/null & | ||
- sleep 60 && npm run contracts --silent | ||
- npm test -- --coverage | ||
- npm run build --silent | ||
- FULL_GCR_KEY="-----BEGIN PRIVATE KEY-----\n"$GCR_KEY"\n-----END PRIVATE KEY-----\n" | ||
- sed -i -e "s%\PWD%$FULL_GCR_KEY%g" gcregistry.json | ||
- sed -i -e "s%branch%$TRAVIS_BRANCH%g" Dockerfile | ||
- cat Dockerfile | ||
- docker login -u _json_key -p "$(cat gcregistry.json)" https://gcr.io | ||
- rm -rf gcregistry.json | ||
- | | ||
if [ "$TRAVIS_TAG" == "" ]; then | ||
IMAGE_TAG_NAME="latest" | ||
elif [ "$TRAVIS_TAG" != "" ]; then | ||
IMAGE_TAG_NAME="$TRAVIS_TAG" | ||
fi; | ||
- docker build --quiet -t gcr.io/deep-wares-144610/$TRAVIS_BRANCH/chronomint:$IMAGE_TAG_NAME . | ||
- docker push gcr.io/deep-wares-144610/$TRAVIS_BRANCH/chronomint:$IMAGE_TAG_NAME | ||
- kill -9 $(ps ax | grep testrpc) | ||
- kill -9 $(ps ax | grep bridge.js) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM node:7.9-slim | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY . /usr/src/app | ||
EXPOSE 3000 | ||
CMD npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* eslint-disable */ | ||
|
||
function isComponent(imported) { | ||
return /^components\//g.test(imported.moduleName) | ||
} | ||
|
||
function isPage(imported) { | ||
return /^pages\//g.test(imported.moduleName) | ||
} | ||
|
||
function isDao(imported) { | ||
return /^dao\//g.test(imported.moduleName) | ||
} | ||
|
||
function isModels(imported) { | ||
return /^models\//g.test(imported.moduleName) | ||
} | ||
|
||
function isNetwork(imported) { | ||
return /^network\//g.test(imported.moduleName) | ||
} | ||
|
||
function isRedux(imported) { | ||
return /^redux\//g.test(imported.moduleName) | ||
} | ||
|
||
function isUtils(imported) { | ||
return /^utils\//g.test(imported.moduleName) | ||
} | ||
|
||
function isStyle(imported) { | ||
return /\.(?:css|less|scss)$/g.test(imported.moduleName) | ||
} | ||
|
||
function style(styleApi) { | ||
const { | ||
and, | ||
hasNoMember, | ||
hasMember, | ||
isAbsoluteModule, | ||
isRelativeModule, | ||
member, | ||
not, | ||
naturally, | ||
unicode | ||
} = styleApi | ||
|
||
return [ | ||
// import "foo" | ||
{ match: and(hasNoMember, isAbsoluteModule) }, | ||
{ separator: false }, | ||
|
||
// import something "foo" | ||
{ match: and(hasMember, isAbsoluteModule, not(isDao), not(isModels), not(isNetwork), not(isRedux), not(isComponent), not(isPage), not(isUtils)), sort: member(unicode) }, | ||
{ separator: false }, | ||
|
||
// DAO > Models > Actions > Components > Utils > Other > Styles | ||
|
||
// import something "dao/" | ||
{ match: and(hasMember, isAbsoluteModule, isDao), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "models/" | ||
{ match: and(hasMember, isAbsoluteModule, isModels), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "network/" | ||
{ match: and(hasMember, isAbsoluteModule, isNetwork), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "redux/" | ||
{ match: and(hasMember, isAbsoluteModule, isRedux), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "pages/" | ||
{ match: and(hasMember, isAbsoluteModule, isPage), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "components/" | ||
{ match: and(hasMember, isAbsoluteModule, isComponent), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "utils/" | ||
{ match: and(hasMember, isAbsoluteModule, isUtils), sort: member(naturally) }, | ||
{ separator: false }, | ||
|
||
// import something "./foo" | ||
{ match: and(hasMember, isRelativeModule, not(isStyle)), sort: member(naturally) }, | ||
{ separator: true }, | ||
|
||
// import "./foo.css" | ||
{ match: and(isStyle, isRelativeModule) }, | ||
{ separator: true } | ||
|
||
] | ||
} | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
|
||
exports.default = style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.