Skip to content

Commit efec10b

Browse files
davidjoyDavid Joy
authored andcommitted
Merge pull request #1 from edx/djoy/boilerplate
Cookie cutter boilerplate.
2 parents 1911a44 + 0373749 commit efec10b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+25254
-1
lines changed

.babelrc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"browsers": ["last 2 versions", "ie 11"]
8+
}
9+
}
10+
],
11+
"babel-preset-react"
12+
],
13+
"plugins": [
14+
"transform-object-rest-spread",
15+
"transform-class-properties"
16+
],
17+
"env": {
18+
"i18n": {
19+
"plugins": [
20+
["react-intl", {
21+
"messagesDir": "./temp"
22+
}]
23+
]
24+
}
25+
}
26+
}

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
npm-debug.log
3+
README.md
4+
LICENSE
5+
.babelrc
6+
.eslintignore
7+
.eslintrc.json
8+
.gitignore
9+
.npmignore
10+
commitlint.config.js

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage/*
2+
dist/
3+
node_modules/
4+
__mocks__/

.eslintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"extends": "eslint-config-edx",
3+
"parser": "babel-eslint",
4+
"rules": {
5+
"import/no-extraneous-dependencies": [
6+
"error",
7+
{
8+
"devDependencies": [
9+
"webpack/*.js",
10+
"**/*.test.jsx",
11+
"**/*.test.js"
12+
]
13+
}
14+
],
15+
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/340#issuecomment-338424908
16+
"jsx-a11y/anchor-is-valid": [ "error", {
17+
"components": [ "Link" ],
18+
"specialLink": [ "to" ]
19+
}],
20+
"jsx-a11y/label-has-for": [ 2, {
21+
"components": [ "label" ],
22+
"required": {
23+
"some": [ "nesting", "id" ]
24+
},
25+
"allowChildren": false
26+
}]
27+
},
28+
"env": {
29+
"jest": true
30+
},
31+
"globals": {
32+
"newrelic": false
33+
}
34+
}

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DS_Store
2+
.eslintcache
3+
.idea
4+
node_modules
5+
npm-debug.log
6+
coverage
7+
8+
dist/
9+
10+
### pyenv ###
11+
.python-version
12+
13+
### Emacs ###
14+
*~
15+
/temp
16+
/.vscode

.npmignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.eslintignore
2+
.eslintrc.json
3+
.gitignore
4+
.travis.yml
5+
docker-compose.yml
6+
Dockerfile
7+
Makefile
8+
npm-debug.log
9+
10+
webpack
11+
coverage
12+
node_modules
13+
public

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
node_js:
3+
- lts/*
4+
cache:
5+
directories:
6+
- "~/.npm"
7+
before_install:
8+
- npm install -g npm@latest
9+
- npm install -g greenkeeper-lockfile@1.14.0
10+
install:
11+
- npm ci
12+
before_script: greenkeeper-lockfile-update
13+
after_script: greenkeeper-lockfile-upload
14+
script:
15+
- make validate-no-uncommitted-package-lock-changes
16+
- npm run lint
17+
- npm run test
18+
- npm run build
19+
after_success:
20+
- npm run coveralls
21+
- codecov

.tx/config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[main]
2+
host = https://www.transifex.com
3+
4+
[edx-platform.frontend-app-account]
5+
file_filter = src/i18n/messages/<lang>.json
6+
source_file = src/i18n/transifex_input.json
7+
source_lang = en
8+
type = KEYVALUEJSON

0 commit comments

Comments
 (0)