-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from petrarchy/graphql-test
Initial implementation of Login and Registration components
- Loading branch information
Showing
43 changed files
with
822 additions
and
3,509 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["react", "babel-preset-es2015"] | ||
"presets": ["react", "es2015", "stage-2"] | ||
} |
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,3 @@ | ||
node_modules | ||
lib | ||
build |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
node_modules | ||
*.log | ||
lib/ | ||
build/ | ||
lib | ||
build | ||
db.json |
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,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 | ||
µ |
Oops, something went wrong.