added watching for shader files
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
... | @@ -12,9 +12,9 @@ | ... | @@ -12,9 +12,9 @@ |
}, | }, | ||
"scripts": { | "scripts": { | ||
"lint": "tslint src/**/*.ts", | "lint": "tslint src/**/*.ts", | ||
"build": "tsc", | "build": "cpx \"src/**/*.{vert,frag,glsl}\" build/node_modules/ && tsc", | ||
"postbuild": "copyfiles --up 1 src/mol-gl/shader/*.vert src/mol-gl/shader/*.frag src/mol-gl/shader/*.glsl build/node_modules/", | |||
"watch": "tsc -watch", | "watch": "tsc -watch", | ||
"watch-shader": "cpx \"src/**/*.{vert,frag,glsl}\" build/node_modules/ --watch", | |||
"test": "jest", | "test": "jest", | ||
"script": "node build/node_modules/script.js", | "script": "node build/node_modules/script.js", | ||
"app-render-test": "webpack build/node_modules/apps/render-test/index.js --mode development -o web/render-test/index.js", | "app-render-test": "webpack build/node_modules/apps/render-test/index.js --mode development -o web/render-test/index.js", | ||
... | @@ -62,6 +62,8 @@ | ... | @@ -62,6 +62,8 @@ |
"@types/react-dom": "^16.0.4", | "@types/react-dom": "^16.0.4", | ||
"benchmark": "^2.1.4", | "benchmark": "^2.1.4", | ||
"copyfiles": "^2.0.0", | "copyfiles": "^2.0.0", | ||
"cpx": "^1.5.0", | |||
"extra-watch-webpack-plugin": "^1.0.1", | |||
"glslify-import": "^3.1.0", | "glslify-import": "^3.1.0", | ||
"glslify-loader": "^1.0.2", | "glslify-loader": "^1.0.2", | ||
"jest": "^22.4.2", | "jest": "^22.4.2", | ||
... | ... |
Please register or sign in to comment