forked from LearningLocker/learninglocker
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
5e646c9
commit a4a3452
Showing
1,819 changed files
with
129,661 additions
and
146,838 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,51 @@ | ||
{ | ||
"presets": [ | ||
// 'latest', | ||
// Experimental ECMAScript proposals | ||
// https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0 | ||
"react", | ||
// Latest stable ECMAScript features | ||
// https://github.com/babel/babel/tree/master/packages/babel-preset-latest | ||
// webpack 2.0 can handle es6 modules natively | ||
// and provides dead code removal | ||
["env", { | ||
"es2015": { | ||
"modules": false | ||
} | ||
}], | ||
// JSX, Flow | ||
// https://github.com/babel/babel/tree/master/packages/babel-preset-react | ||
"stage-0" | ||
], | ||
"plugins": [ | ||
"transform-runtime", | ||
"transform-es2015-destructuring", | ||
"transform-object-rest-spread", | ||
"transform-es2015-parameters", | ||
"transform-decorators-legacy", | ||
"transform-class-properties", | ||
"syntax-dynamic-import" | ||
], | ||
"env": { | ||
"development": { | ||
"plugins": [ | ||
// Adds component stack to warning messages | ||
// https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-source | ||
"transform-react-jsx-source", | ||
// Adds __self attribute to JSX which React will use for some warnings | ||
// https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-self | ||
"transform-react-jsx-self" | ||
] | ||
}, | ||
"production": { | ||
"presets": [ | ||
// Optimize React code for the production build | ||
// https://github.com/thejameskyle/babel-react-optimize | ||
"react-optimize" | ||
] | ||
}, | ||
"test": { | ||
"plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"] | ||
} | ||
} | ||
} |
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,12 +1,9 @@ | ||
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines, 2 spaced tabs, UTF-8 with a newline ending | ||
# across every file | ||
[*] | ||
end_of_line = lf | ||
indent_style = space | ||
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,4 @@ | ||
webpack/* | ||
karma.conf.js | ||
tests.webpack.js | ||
dist |
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,78 @@ | ||
{ "extends": "eslint-config-airbnb", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"mocha": true, | ||
"jest/globals": true | ||
}, | ||
"parser": "babel-eslint", | ||
"rules": { | ||
"max-len": 0, | ||
"linebreak-style": 0, | ||
"array-callback-return": 0, | ||
"generator-star-spacing": 0, | ||
"no-mixed-operators": 0, | ||
"react/no-multi-comp": 0, | ||
"react/prop-types": 0, // doesn't really work with functional components and HOCs | ||
"react/sort-comp": [1, { | ||
"order": [ | ||
'lifecycle', | ||
'everything-else', | ||
'rendering', | ||
], | ||
groups: { | ||
rendering: [ | ||
'/^render.+$/', | ||
'render' | ||
] | ||
} | ||
}], | ||
"id-length": 0, | ||
"import/default": 0, | ||
"import/no-duplicates": 0, | ||
"import/named": 0, | ||
"import/namespace": 0, | ||
"import/no-unresolved": 0, | ||
"import/no-named-as-default": 0, | ||
"import/extensions": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"react/forbid-prop-types": [1, { "forbid": ['any', 'array'] }], | ||
"jsx-a11y/no-static-element-interactions": 0, // stops you having onClick on a div | ||
"react/jsx-closing-bracket-location": [1, 'after-props'], | ||
"react/jsx-no-bind": 0, // it's actually pretty useful to bind and the only workaround is to make an entirely new component | ||
"react/no-unused-prop-types": [2, { skipShapeProps: true }], | ||
"no-shadow": [2, { "builtinGlobals": false, "hoist": "functions", "allow": ['err'] }], | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], | ||
"comma-dangle": 0, // not sure why airbnb turned this on. gross! | ||
"no-underscore-dangle": 0, | ||
"consistent-return": 0, | ||
"no-param-reassign": 0, | ||
"global-require": 0, | ||
"indent": [2, 2, {"SwitchCase": 1}], | ||
"no-console": 0, | ||
"no-alert": 0, | ||
"radix": 0, | ||
"no-constant-condition": 0, | ||
"no-const-assign": 0, // seems to be buggy, triggers on let | ||
}, | ||
"plugins": [ | ||
"react", "import", "jest" | ||
], | ||
"settings": { | ||
"import/parser": "babel-eslint", | ||
"import/resolve": { | ||
moduleDirectory: ["node_modules", "src"] | ||
} | ||
}, | ||
"globals": { | ||
"__DEVELOPMENT__": true, | ||
"__SITE_URL__": true, | ||
"__CLIENT__": true, | ||
"__SERVER__": true, | ||
"__DISABLE_SSR__": true, | ||
"__DEVTOOLS__": true, | ||
"__GOOGLE_ENABLED__": true, | ||
"socket": true, | ||
"webpackIsomorphicTools": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,12 +1,27 @@ | ||
/bootstrap/compiled.php | ||
/vendor | ||
composer.phar | ||
.DS_Store | ||
Thumbs.db | ||
.phpintel | ||
.env.*.php | ||
|
||
/app/config/ht2 | ||
/app/config/production | ||
/app/config/staging | ||
/app/config/local/*.php | ||
.DS_STORE | ||
.env | ||
.env | ||
.env.* | ||
.idea/ | ||
.tags | ||
.tmp | ||
*.csv | ||
*.iml | ||
*.orig | ||
api/logs/* | ||
dist/ | ||
dump.rdb | ||
node_modules/ | ||
npm-debug.log | ||
pids/ | ||
static/logos/*.* | ||
storage/*.* | ||
uploads/* | ||
webpack-assets.json | ||
webpack-stats.json | ||
.vagrant | ||
Vagrantfile | ||
bootstrap.sh | ||
.vscode | ||
.tmp | ||
yarn-error.log |
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,31 +1,44 @@ | ||
language: php | ||
language: node_js | ||
node_js: "6" | ||
sudo: false | ||
|
||
php: | ||
- 5.5 | ||
env: | ||
- MONGODB=3.2.13 | ||
|
||
install: | ||
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz | ||
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz | ||
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version | ||
- yarn | ||
|
||
services: | ||
- mongodb | ||
- redis-server | ||
|
||
install: | ||
- echo y | pecl install mongo | ||
- php -r "readfile('https://getcomposer.org/installer');" | php | ||
- php composer.phar install --no-interaction --dev | ||
before_install: | ||
- export CXX=g++-4.8 | ||
- export DISPLAY=:99.0 | ||
- export NODE_UNICODETABLE_UNICODEDATA_TXT=$PWD/UnicodeData.txt | ||
- sh -e /etc/init.d/xvfb start | ||
- touch .env | ||
|
||
before_script: | ||
- phpenv config-add travisconfig.ini | ||
- sleep 3 | ||
- sudo chmod -R 777 ./uploads | ||
- php artisan migrate --env="testing" | ||
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data | ||
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork | ||
|
||
cache: | ||
directories: | ||
- $HOME/.yarn-cache | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
|
||
script: | ||
- ./vendor/bin/phpunit | ||
- sh test.sh | ||
|
||
notifications: | ||
slack: | ||
secure: bSHZUJ5uisX15oQVLu/6Q+Q6719//x1oWo02noCY2WhXTszTbdKV25OG34pwcndO7AfrXLetm6CAF46Yj0K+GzwEtqjear8JQj8ugnZmjJTG0prYNzFJic7Lkf2a+2mROBDd60cLDW3OMGhBvxMV5ZEhutQ9o+fwMgcbKIy/gAM= | ||
webhooks: | ||
urls: | ||
- secure: "IH89fjFa94bV0+RCyoRYcUGpBDT/F87Vdpki+wH7HoowVN7Zsv0O+V6Bl6Xl31VqrEJ3KmBcVpm4KL3Fkv081NqRmC03pqyNmLhHzf10k2m6kFm52pwD6t8f4eoRHuCHnbFdAMBCBfQbXC8oVFXtSNtfISYikCrs6uZ/cwmAxWk=" | ||
on_success: change | ||
on_failure: change | ||
- npm run lint | ||
- yarn test | ||
|
||
after_script: | ||
- pkill mongod |
Oops, something went wrong.