You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a generic JavaScript development environment that I build from scratch in ["Building a JavaScript Development Environment" on Pluralsight](https://app.pluralsight.com/library/courses/javascript-development-environment/table-of-contents). This isn't tied to any specific JS framework.
4
4
5
5
## Get Started
6
+
6
7
1.**Install [Node 6](https://nodejs.org)**. Need to run multiple versions of Node? Use [nvm](https://github.com/creationix/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows)
7
8
2.**Clone this repository.** - `git clone https://github.com/coryhouse/javascript-development-environment.git` or [download the zip](https://github.com/coryhouse/javascript-development-environment/archive/master.zip)
8
9
3.**Make sure you're in the directory you just created.** - `cd javascript-development-environment`
@@ -12,39 +13,41 @@ This will run the automated build process, start up a webserver, and open the ap
12
13
6. Having issues? See below.
13
14
14
15
## Having Issues? Try these things first:
16
+
15
17
1. Run `npm install` - If you forget to do this, you'll see this: `babel-node: command not found`.
16
18
2. Make sure you're running the latest version of Node. Or, use [Node 6.9.1](https://nodejs.org/en/download/releases/) if you're having issues on Windows. Node 7 has issues on some Windows machines.
17
19
3. Make sure files with names that begin with a dot (.babelrc, .editorconfig, .eslintrc) are copied to the project directory root. This is easy to overlook if you copy this repository manually.
18
20
4. Don't run the project from a symbolic link. It will cause issues with file watches.
19
21
5. Having linting issues? Delete any .eslintrc that you're storing in your user directory. Also, disable any ESLint plugin / custom rules that you've enabled within your editor. These will conflict with the ESLint rules defined in the course.
20
22
6. Nothing above work? Delete your node_modules folder and re-run npm install.
21
23
22
-
###Development Dependencies
23
-
|**Dependency**|**Use**|
24
-
|----------|-------|
25
-
|babel-cli|Babel Command line interface |
26
-
|babel-core|Babel Core for transpiling the new JavaScript to old |
27
-
|babel-loader|Adds Babel support to Webpack |
28
-
|babel-preset-latest|Babel preset for running all the latest standardized JavaScript features|
29
-
|babel-register|Register Babel to transpile our Mocha tests|
30
-
|cheerio|Supports querying DOM with jQuery like syntax - Useful in testing and build process for HTML manipulation|
31
-
|cross-env|Cross-environment friendly way to handle environment variables|
32
-
|css-loader|Add CSS support to Webpack|
33
-
|eslint|Lints JavaScript |
34
-
|eslint-plugin-import|Advanced linting of ES6 imports|
35
-
|eslint-watch|Add watch functionality to ESLint |
36
-
|eventsource-polyfill|Polyfill to support hot reloading in IE|
37
-
|expect|Assertion library for use with Mocha|
38
-
|express|Serves development and production builds|
39
-
|extract-text-webpack-plugin| Extracts CSS into separate file for production build |
40
-
|file-loader| Adds file loading support to Webpack |
41
-
|jsdom|In-memory DOM for testing|
42
-
|mocha| JavaScript testing library |
43
-
|npm-run-all| Display results of multiple commands on single command line |
44
-
|open|Open app in default browser|
45
-
|rimraf|Delete files |
46
-
|style-loader| Add Style support to Webpack |
47
-
|url-loader| Add url loading support to Webpack |
48
-
|webpack| Bundler with plugin system and integrated development server |
49
-
|webpack-dev-middleware| Adds middleware support to webpack |
50
-
|webpack-hot-middleware| Adds hot reloading to webpack |
0 commit comments