Skip to content

Commit

Permalink
Merge pull request #1 from petrarchy/graphql-test
Browse files Browse the repository at this point in the history
Initial implementation of Login and Registration components
  • Loading branch information
Zack Litzsinger authored Dec 7, 2016
2 parents 999926b + ee56926 commit 7b9f10b
Show file tree
Hide file tree
Showing 43 changed files with 822 additions and 3,509 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["react", "babel-preset-es2015"]
"presets": ["react", "es2015", "stage-2"]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
build
38 changes: 19 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
Expand All @@ -16,21 +21,16 @@
"react"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
"strict": 0,
"no-console": 0,
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"eqeqeq": ["error", "always"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2

}
}
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
node_modules
*.log
lib/
build/
lib
build
db.json
14 changes: 8 additions & 6 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Developing

## Directory structure
Source files go in /src, temporary development files go in /build, final production bundle goes in /lib.
Source files go in /src, temporary development files go in /build, final production bundle goes in /lib. Development server is located in /server.

## Node environment
NVM is a great library that allows you to switch between different versions/installs of NPM. We are developing on Node 0.7.1.
`npm link` will link Petra to your node_modules, allowing you to run `require("petra")`
[NVM](https://github.com/creationix/nvm) is a great library that allows you to switch between different versions/installs of NPM. We are developing on Node 7.x.

`npm link` will link Petra to your node_modules, allowing you to run import petra as a module from another repository.

## Linters
Stylelint for scss, ESLint for js. Both have packages for a variety of IDEs. At some point, we may add precommit hooks for our linting to pass, but right now our linting is erroneously failing in a few cases.
[Stylelint](https://github.com/stylelint/stylelint) for SASS, [ESLint](https://github.com/eslint/eslint) for Javascript. Both have packages for a variety of IDEs. At some point, we will add precommit hooks for our linting to pass.

## Build scripts:

- `npm run build` - Compiles src code into a distributable bundle in /lib.
- `npm run start` - Starts up webpack-dev-server on localhost:8080
- `npm run lint` - Lints all scss and js files in /src
- `npm run start` - Starts up development server on localhost:3000
- `npm run lint` - Lints all scss and js files
µ
Loading

0 comments on commit 7b9f10b

Please sign in to comment.