JavaScript
The following README
articulates how to setup your development environment for client-side and server-side development with JavaScript
for AppDev
-related projects.
Client-Side
For client-side development, we will be using ES6
syntax with Flow
type-checking our code. In addition, we will have
a linter run through Atom
.
Before we start, the following devDependencies
are required:
For convenience:
NOTE: All ES6
-related transpiling-, Babel
, and Webpack
-related things should be configured by someone who knows what they're doing. If you are having issues, seek the leads' help.
... and restart Atom
Point
Nuclide
to use the project's localFlow
bin
directory. Go toNuclide
's options page inAtom
, find theNuclide-flow
settings, and check the following box:
Ensure your
.babelrc
looks something like this:
Install
ESLint Atom Plugin
Clone this repo and
npm install
in thejs
directory to setup your globalESLint
config.Point your
ESLint Atom Plugin
to the directory containing this repo in the following way:
Server-Side
Essentially the same as above, but with a slightly different Webpack
config. Ask leads for help if this is not setup already.
Libraries
To setup our core js
modules:
Then, you'll be able to run npm link appdev
in all AppDev
JS
projects to have access to the library. Be sure to also add the library to the [libs]
section of your .flowconfig
Last updated