-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (25 loc) · 1.18 KB
/
Copy pathindex.html
File metadata and controls
28 lines (25 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<title>Drones</title>
<script src="node_modules/traceur/bin/traceur.js"></script>
<script src="node_modules/es6-module-loader/dist/es6-module-loader-dev.js"></script>
</head>
<body>
<script>
System.import('src/app2.js');//working with a module. I was using the app.js for the tutorial up untill I got to this point where I had to put the classes into thier own module
//on the tutorial module 4: Organzing classes into files
</script>
</body>
</html>
<!-- there is no package.json file. Let's add our node packages. Shift + Control + c to bring up command prompt, but I am just going to do it the terminal below-->
<!-- npm init -->
<!-- type "drones" for name -->
<!-- keep pressing enter to accept the defaults -->
<!-- type y to accept -->
<!-- now there is a package.json -->
<!-- add some npm packages -->
<!-- npm install -save es6-module-loader traceur --> <!-- traceur is a transpiler-->
<!-- npm intall -save-dev lite-server --> <!-- dev environment-->
<!-- everything should be installed. Take a look at package.json and make sure everything is there -->
<!-- add app.js -->