Skip to content

Commit

Permalink
try to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao committed Oct 30, 2017
0 parents commit 81465b1
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gl-avatar-threejs viewer (editor?)

For avatar 3d community
Empty file added index.js
Empty file.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "gl-avatar-threejs",
"version": "0.0.1",
"description": "threejs viewer supporting gl avatar",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shrekshao/gl-avatar-threejs.git"
},
"author": "shrekshao",
"license": "ISC",
"bugs": {
"url": "https://github.com/shrekshao/gl-avatar-threejs/issues"
},
"homepage": "https://github.com/shrekshao/gl-avatar-threejs#readme",
"dependencies": {
"three": "^0.87.1"
},
"devDependencies": {
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.3"
}
}
Empty file added src/app.js
Empty file.
53 changes: 53 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
// const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
entry: {
app: './index.js'
},
resolve: {
alias: {
// Lib: path.resolve(__dirname, 'demo/lib/'),
// Shaders: path.resolve(__dirname, 'demo/lib/src/shaders')
}
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'build')
},
module: {
rules: [
// {
// test: /\.css$/,
// use: [
// 'style-loader',
// 'css-loader'
// ]
// },
// {
// test: /\.(png|jpg|gif)$/,
// use: [
// 'file-loader'
// ]
// },
// {
// test: /\.(glsl|vs|fs)$/,
// use: [
// 'shader-loader'
// ]
// }
]
},
plugins: [
new HtmlWebpackPlugin({
title: "glAvatar demo"
})
],
devServer: {
// contentBase: path.join(__dirname, "demo"),
contentBase: __dirname,
port: 7000
}
};

0 comments on commit 81465b1

Please sign in to comment.