Configure index.html & wzrd
This commit is contained in:
parent
9f835820dc
commit
b62a53e3ec
2 changed files with 49 additions and 51 deletions
|
@ -8,12 +8,7 @@
|
||||||
<link href="index.css" rel="stylesheet" />
|
<link href="index.css" rel="stylesheet" />
|
||||||
|
|
||||||
<!-- Libraries -->
|
<!-- Libraries -->
|
||||||
<script src="Vector.js"></script>
|
<script src="Starlight.js" charset="utf-8"></script>
|
||||||
<script src="Random.js"></script>
|
|
||||||
|
|
||||||
<!-- Local Code -->
|
|
||||||
<script src="Starlight-Renderer.js"></script>
|
|
||||||
<script src="Star.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas id="canvas-main"></canvas>
|
<canvas id="canvas-main"></canvas>
|
||||||
|
|
11
package.json
11
package.json
|
@ -3,11 +3,15 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "A cool starry night scene. Made for Christmas (actually new year) 2016.",
|
"description": "A cool starry night scene. Made for Christmas (actually new year) 2016.",
|
||||||
"main": "Starlight-Renderer.js",
|
"main": "Starlight-Renderer.js",
|
||||||
|
"config": {
|
||||||
|
"browserify_bundle": "Starlight.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"env": "env",
|
"env": "env",
|
||||||
"test": "echo (There aren't any tests yet!)",
|
"test": "echo (There aren't any tests yet!)",
|
||||||
"build": "browserify $npm_package_main -t rollupify -o Starlight.js",
|
"start": "wzrd $npm_package_main:$npm_package_config_browserify_bundle",
|
||||||
|
"build": "browserify $npm_package_main -t rollupify -o $npm_package_config_browserify_bundle",
|
||||||
|
"build.dev": "browserify $npm_package_main -t rollupify -o $npm_package_config_browserify_bundle --debug",
|
||||||
"postinstall": "npm run build",
|
"postinstall": "npm run build",
|
||||||
"prestart": "npm run build"
|
"prestart": "npm run build"
|
||||||
},
|
},
|
||||||
|
@ -29,8 +33,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rollupify": "^0.3.7"
|
"rollupify": "^0.3.7"
|
||||||
},
|
},
|
||||||
|
|
||||||
"browserify": {
|
"browserify": {
|
||||||
"transform": ["rollupify"]
|
"transform": [ "rollupify" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue