Skip to content

Commit c47745a

Browse files
committed
Add failing fixture for glsl
1 parent 5d5b0b7 commit c47745a

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

fixtures/glsl/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const fs = require('fs')
2+
3+
console.log(fs.readFileSync(__dirname + '/package.json', 'utf8'))

fixtures/glsl/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "fixture",
3+
"version": "1.0.0",
4+
"scripts": {
5+
"build": "../../node_modules/.bin/webpack"
6+
},
7+
"browserify": {
8+
"transform": [
9+
"brfs",
10+
"glslify"
11+
]
12+
}
13+
}

fixtures/glsl/webpack.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var path = require('path');
2+
3+
module.exports = {
4+
entry: './index.js',
5+
output: {
6+
path: path.join(__dirname, 'dist'),
7+
filename: 'bundle.js'
8+
},
9+
module: {
10+
rules: [
11+
{
12+
test: /.js/,
13+
use: path.join(__dirname, '../../')
14+
}
15+
]
16+
}
17+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
},
2121
"devDependencies": {
2222
"brfs": "^1.4.2",
23+
"glslify": "^6.1.0",
2324
"npm-which": "^2.0.0",
2425
"regl": "^1.3.0",
2526
"standard": "^5.4.1",
2627
"tap-spec": "^4.1.1",
2728
"tape": "^4.4.0",
2829
"through2": "^2.0.0",
29-
"webpack": "^2.2.1"
30+
"webpack": "^3.0.0"
3031
},
3132
"scripts": {
3233
"test": "node test.js | tspec",

0 commit comments

Comments
 (0)