Skip to content

Commit 04c77c6

Browse files
committed
1 parent e6a4620 commit 04c77c6

34 files changed

+12692
-7
lines changed

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
indent_style = space
5+
indent_size = 2
6+
trim_trailing_whitespace = true

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ $RECYCLE.BIN/
1313
package-lock.json
1414
coverage/
1515
.idea
16-
yarn-error.log
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
1719
.size-snapshot.json
1820
__tests__/__image_snapshots__/__diff_output__

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": true,
4+
"trailingComma": "none"
5+
}

.storybook/main.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3+
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
4+
5+
webpackFinal: async (config) => {
6+
config.module.rules.push({
7+
test: /\.glb$/,
8+
use: ['file-loader']
9+
});
10+
11+
return config;
12+
}
13+
};

.storybook/preview.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: '^on[A-Z].*' }
3+
};

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
# react-three-lightmap
1+
# react-three-lightmap
2+
3+
**In-browser lightmap baker for react-three-fiber and ThreeJS.**
4+
5+
[Live editable sandbox](https://codesandbox.io/s/github/pmndrs/react-three-lightmap).
6+
7+
## Local Development
8+
9+
```sh
10+
git clone [email protected]:pmndrs/react-three-lightmap.git
11+
cd react-three-lightmap
12+
yarn
13+
yarn storybook
14+
```
15+
16+
Based on [original experimental implementation](https://github.com/unframework/threejs-lightmap-baker) by [@unframework](https://github.com/unframework).

package.json

+26-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,40 @@
11
{
22
"name": "@react-three/lightmap",
33
"version": "0.0.0",
4-
"description": "",
5-
"main": "index.js",
4+
"description": "In-browser lightmap baker for react-three-fiber and ThreeJS",
5+
"private": true,
6+
"dependencies": {
7+
"@types/react": "^16.9.0",
8+
"@types/react-dom": "^16.9.0",
9+
"potpack": "^1.0.1",
10+
"react": "^17.0.0",
11+
"react-dom": "^17.0.0",
12+
"react-render-prop": "^0.0.1",
13+
"react-three-fiber": "^5.3.1",
14+
"three": "^0.121.0",
15+
"typescript": "^3.9.0"
16+
},
617
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
18+
"storybook": "start-storybook -p 6006 -s public --no-dll",
19+
"build-storybook": "build-storybook -s public --no-dll"
820
},
921
"repository": {
1022
"type": "git",
1123
"url": "git+https://github.com/pmndrs/react-three-lightmap.git"
1224
},
13-
"author": "",
25+
"author": "Nick Matantsev <[email protected]>",
1426
"license": "MIT",
1527
"bugs": {
1628
"url": "https://github.com/pmndrs/react-three-lightmap/issues"
1729
},
18-
"homepage": "https://github.com/pmndrs/react-three-lightmap#readme"
30+
"devDependencies": {
31+
"@babel/core": "^7.12.3",
32+
"@storybook/addon-actions": "^6.0.28",
33+
"@storybook/addon-essentials": "^6.0.28",
34+
"@storybook/addon-links": "^6.0.28",
35+
"@storybook/react": "^6.0.28",
36+
"babel-loader": "^8.2.1",
37+
"prettier": "^2.0.5",
38+
"react-is": "^16.8.0"
39+
}
1940
}

0 commit comments

Comments
 (0)