Skip to content

Commit 0328025

Browse files
committed
Merge branch 'master' of github.com:stackgl/shader-school
2 parents bb90d43 + c53c176 commit 0328025

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"pack": "rm -rf answers; rm -rf node_modules && npm install && npm dedupe && node prepack && find . -type file | grep -v workshop.tar.gz | grep -v .git | tar -cvzf ./workshop.tar.gz -T - && node postpack",
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"start": "mkdir answers; cd answers && NODE_ENV=development node .."
10+
"start": "node start.js"
1111
},
1212
"authors": [
1313
"Hugh Kennedy <[email protected]> (http://hughsk.io/)",

start.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
process.env.NODE_ENV = 'development'
2+
3+
var mkdirp = require('mkdirp')
4+
var path = require('path')
5+
var answers = path.resolve(__dirname, 'answers')
6+
7+
// mkdir answers; cd answers && NODE_ENV=development node ..
8+
mkdirp.sync(answers)
9+
process.chdir(answers)
10+
require('./')

0 commit comments

Comments
 (0)