Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"rules": {
"quotes": [
2,
"single"
],
"linebreak-style": [
2,
"unix"
],
"semi": [
2,
"always"
]
},
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended"
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage

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

# node-waf configuration
.lock-wscript

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

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
4 changes: 2 additions & 2 deletions gendy_constuctor_demo.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="js/nexusUI.js"></script>
<script src="node_modules/nexusui/dist/nexusUI.min.js"></script>
<script src="gendy.js"></script>
<link rel="stylesheet" href="style.css">
</head>
Expand Down Expand Up @@ -170,4 +170,4 @@ <h3>More?</h3>
}

</script>
</html>
</html>
22 changes: 22 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var gulp = require('gulp'),
eslint = require('gulp-eslint'),
webserver = require('gulp-webserver');

gulp.task('lint', function () {
return gulp.src(['**/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('webserver', function() {
gulp.src('./')
.pipe(webserver({
livereload: true,
directoryListing: false,
fallback: 'index.html',
open: true
}));
});

gulp.task('default', ['lint', 'webserver']);
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="nexusUI/dist/nexusUI.js"></script>
<script src="js/nexusUI.js"></script>
<script src="node_modules/nexusui/dist/nexusUI.min.js"></script>
</head>
<style type="text/css">
#canvas{
Expand Down Expand Up @@ -379,4 +378,4 @@ <h1>


</script>
</html>
</html>
Loading