File tree 4 files changed +13
-8
lines changed
4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ " latest"
4
+ ]
5
+ }
Original file line number Diff line number Diff line change 1
- var express = require ( 'express' ) ;
2
- var path = require ( 'path' ) ;
3
- var open = require ( 'open' ) ;
1
+ import express from 'express' ;
2
+ import path from 'path' ;
3
+ import open from 'open' ;
4
4
5
- var port = 3000 ;
5
+ const port = 3000 ;
6
6
7
- var app = express ( ) ;
7
+ const app = express ( ) ;
8
8
9
9
app . get ( '/' , function ( req , res ) {
10
10
res . sendFile ( path . join ( __dirname , '../src/index.html' ) ) ;
Original file line number Diff line number Diff line change 1
- var chalk = require ( 'chalk' ) ;
1
+ import chalk from 'chalk' ;
2
2
3
3
console . log ( chalk . green ( 'Starting app in dev mode...' ) ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " JavaScript development environment Pluralsight course by Cory House" ,
5
5
"scripts" : {
6
- "prestart" : " node buildScripts/startMessage.js" ,
6
+ "prestart" : " babel- node buildScripts/startMessage.js" ,
7
7
"start" : " npm-run-all --parallel security-check open:src" ,
8
- "open:src" : " node buildScripts/srcServer.js" ,
8
+ "open:src" : " babel- node buildScripts/srcServer.js" ,
9
9
"security-check" : " nsp check" ,
10
10
"localtunnel" : " lt --port 3000" ,
11
11
"share" : " npm-rull-all --parallel open:src localtunnel"
You can’t perform that action at this time.
0 commit comments