Skip to content

Commit ed39e6e

Browse files
author
Sascha Braun
committed
Initial commit
0 parents  commit ed39e6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2338
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
end_of_line = lf
10+
# editorconfig-tools is unable to ignore longs strings or urls
11+
max_line_length = null

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- **I'm submitting a ...**
2+
[ ] bug report
3+
[ ] feature request
4+
[ ] question about the decisions made in the repository
5+
[ ] question about how to use this project
6+
7+
- **Summary**
8+
9+
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
2+
3+
* **What is the current behavior?** (You can also link to an open issue here)
4+
5+
- **What is the new behavior (if this is a feature change)?**
6+
7+
* **Other information**:

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw*
22+
23+
yarn.lock
24+
package-lock.json

.postcssrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Sascha Braun
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Vue Three.js
2+
3+
/!\ This module is still in development and not usable yet. If you want to help out, you can make a pull request with the appropriate fixes or features.
4+
5+
Contains Vuejs bindings for creating and interacting with Threejs scenes and objects
6+
7+
**Features:**
8+
9+
- Asset manager with preload possibility (not 100% finished yet)
10+
- Scene manager with scene switching / loading
11+
- Reactive meshes, cameras and lights (not 100% finished yet)
12+
- Asynchronous asset and mesh loading
13+
- Custom factory functions to create (asynchronously) geometries, materials and lights
14+
15+
**Todo:**
16+
17+
- Input manager
18+
- Object behaviour components for data manipulation
19+
- Stabilize API and clean up code
20+
- Publish first pre-release on npm
21+
22+
## Usage
23+
24+
Coming once the API has been stabilized

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

jest.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'js',
4+
'jsx',
5+
'json',
6+
'vue',
7+
'ts',
8+
'tsx'
9+
],
10+
transform: {
11+
'^.+\\.vue$': 'vue-jest',
12+
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
13+
'^.+\\.tsx?$': 'ts-jest'
14+
},
15+
moduleNameMapper: {
16+
'^@/(.*)$': '<rootDir>/src/$1'
17+
},
18+
snapshotSerializers: [
19+
'jest-serializer-vue'
20+
],
21+
testMatch: [
22+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
23+
],
24+
testURL: 'http://localhost/'
25+
}

package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "vue-three-composer",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"test:unit": "vue-cli-service test:unit"
10+
},
11+
"dependencies": {
12+
"@types/three": "^0.92.24",
13+
"three": "^0.97.0",
14+
"vue": "^2.5.17",
15+
"vue-class-component": "^6.0.0",
16+
"vue-property-decorator": "^7.0.0",
17+
"vue-router": "^3.0.1",
18+
"vuex": "^3.0.1"
19+
},
20+
"devDependencies": {
21+
"@types/jest": "^23.1.4",
22+
"@vue/cli-plugin-babel": "^3.0.4",
23+
"@vue/cli-plugin-typescript": "^3.0.4",
24+
"@vue/cli-plugin-unit-jest": "^3.0.4",
25+
"@vue/cli-service": "^3.0.4",
26+
"@vue/test-utils": "^1.0.0-beta.20",
27+
"babel-core": "7.0.0-bridge.0",
28+
"lint-staged": "^7.2.2",
29+
"ts-jest": "^23.0.0",
30+
"typescript": "^3.0.0",
31+
"tslint-config-prettier": "^1.15.0",
32+
"vue-template-compiler": "^2.5.17"
33+
},
34+
"browserslist": [
35+
"> 1%",
36+
"last 2 versions",
37+
"not ie <= 8"
38+
],
39+
"gitHooks": {
40+
"pre-commit": "lint-staged"
41+
},
42+
"lint-staged": {
43+
"*.ts": [
44+
"vue-cli-service lint",
45+
"git add"
46+
],
47+
"*.vue": [
48+
"vue-cli-service lint",
49+
"git add"
50+
]
51+
}
52+
}

0 commit comments

Comments
 (0)