Skip to content

Commit 8ae8c30

Browse files
committed
initial commit
1 parent 33697e5 commit 8ae8c30

21 files changed

+957
-0
lines changed

Diff for: .bowerrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"analytics": false,
3+
"directory": "vendor"
4+
}

Diff for: .editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

Diff for: .eslintrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": [
3+
"angular",
4+
"dustinspecker/esnext"
5+
],
6+
"rules": {
7+
"angular/ng_controller_name": [2, "/[A-Z].*Ctrl$/"],
8+
"consistent-this": 0
9+
}
10+
}

Diff for: .gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Mac
2+
.DS_Store
3+
4+
# Win
5+
Thumbs.db
6+
ehthumbs.db
7+
8+
#IntelliJ
9+
.idea
10+
11+
#yeoman
12+
# node_modules
13+
node_modules
14+
report
15+
coverage
16+
build
17+
tmp
18+
19+
# Log files
20+
*.log
21+
22+
#bower_components
23+
bower_components
24+
vendor
25+
26+
27+
### Node ###
28+
# Logs
29+
logs
30+
*.log
31+
32+
# Runtime data
33+
pids
34+
*.pid
35+
*.seed

Diff for: .jscsrc

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"disallowDanglingUnderscores": true,
3+
"disallowEmptyBlocks": true,
4+
"disallowKeywords": [
5+
"with"
6+
],
7+
"disallowKeywordsOnNewLine": [
8+
"else"
9+
],
10+
"disallowMixedSpacesAndTabs": true,
11+
"disallowMultipleLineBreaks": true,
12+
"disallowMultipleLineStrings": true,
13+
"disallowQuotedKeysInObjects": true,
14+
"disallowSpaceAfterObjectKeys": true,
15+
"disallowSpaceAfterPrefixUnaryOperators": true,
16+
"disallowSpaceBeforeBinaryOperators": [
17+
","
18+
],
19+
"disallowSpaceBeforePostfixUnaryOperators": true,
20+
"disallowSpacesInsideArrayBrackets": "all",
21+
"disallowSpacesInsideObjectBrackets": "all",
22+
"disallowSpacesInsideParentheses": true,
23+
"disallowTrailingComma": true,
24+
"disallowTrailingWhitespace": true,
25+
"disallowYodaConditions": true,
26+
"maximumLineLength": {
27+
"allowComments": true,
28+
"allowRegex": true,
29+
"allowUrlComments": true,
30+
"value": 120
31+
},
32+
"requireBlocksOnNewline": 1,
33+
"requireCapitalizedConstructors": true,
34+
"requireCamelCaseOrUpperCaseIdentifiers": true,
35+
"requireCurlyBraces": [
36+
"if",
37+
"else",
38+
"for",
39+
"while",
40+
"do",
41+
"try",
42+
"catch"
43+
],
44+
"requireDotNotation": true,
45+
"requireLineFeedAtFileEnd": true,
46+
"requireMultipleVarDecl": "onevar",
47+
"requireOperatorBeforeLineBreak": [
48+
"?",
49+
"=",
50+
"+",
51+
"-",
52+
"/",
53+
"*",
54+
"==",
55+
"===",
56+
"!=",
57+
"!==",
58+
">",
59+
">=",
60+
"<",
61+
"<="
62+
],
63+
"requireParenthesesAroundIIFE": true,
64+
"requireSpaceAfterBinaryOperators": true,
65+
"requireSpaceAfterKeywords": [
66+
"if",
67+
"else",
68+
"for",
69+
"while",
70+
"do",
71+
"switch",
72+
"case",
73+
"return",
74+
"try",
75+
"catch",
76+
"function",
77+
"typeof"
78+
],
79+
"requireSpaceBeforeBinaryOperators": [
80+
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
81+
"&=", "|=", "^=", "+=",
82+
83+
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
84+
"|", "^", "&&", "||", "===", "==", ">=",
85+
"<=", "<", ">", "!=", "!=="
86+
],
87+
"requireSpaceBeforeBlockStatements": true,
88+
"requireSpacesInAnonymousFunctionExpression": {
89+
"beforeOpeningCurlyBrace": true
90+
},
91+
"requireSpacesInConditionalExpression": true,
92+
"requireSpacesInFunctionExpression": {
93+
"beforeOpeningCurlyBrace": true
94+
},
95+
"requireSpacesInNamedFunctionExpression": {
96+
"beforeOpeningCurlyBrace": true
97+
},
98+
"validateIndentation": 2,
99+
"validateQuoteMarks": "'"
100+
}

Diff for: .jshintrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"node": true,
3+
"esnext": true,
4+
"bitwise": true,
5+
"camelcase": true,
6+
"curly": true,
7+
"eqeqeq": true,
8+
"immed": true,
9+
"indent": 2,
10+
"latedef": "nofunc",
11+
"laxcomma": true,
12+
"newcap": true,
13+
"noarg": true,
14+
"quotmark": "single",
15+
"regexp": true,
16+
"undef": true,
17+
"unused": true,
18+
"strict": true,
19+
"trailing": true,
20+
"smarttabs": true,
21+
"white": true,
22+
"globals": {
23+
"angular": false
24+
}
25+
}

Diff for: .yo-rc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"generator-ng-poly": {
3+
"appScript": "es6",
4+
"controllerAs": true,
5+
"directiveTemplateUrl": true,
6+
"e2eTestFramework": "mocha",
7+
"markup": "html",
8+
"ngRoute": false,
9+
"structure": "module-type",
10+
"style": "scss",
11+
"testFramework": "mocha",
12+
"testScript": "es6"
13+
}
14+
}

Diff for: Gulpfile.js

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
'use strict';
2+
3+
var _ = require('lodash')
4+
, buildConfig = require('./build.config')
5+
, config = {}
6+
, gulp = require('gulp')
7+
, gulpFiles = require('require-dir')('./gulp')
8+
, path = require('path')
9+
, $, key;
10+
11+
$ = require('gulp-load-plugins')({
12+
pattern: [
13+
'browser-sync',
14+
'del',
15+
'gulp-*',
16+
'karma',
17+
'main-bower-files',
18+
'multi-glob',
19+
'plato',
20+
'run-sequence',
21+
'streamqueue',
22+
'uglify-save-license',
23+
'wiredep',
24+
'yargs'
25+
]
26+
});
27+
28+
_.merge(config, buildConfig);
29+
30+
config.appFiles = path.join(config.appDir, '**/*');
31+
config.appFontFiles = path.join(config.appDir, 'fonts/**/*');
32+
config.appImageFiles = path.join(config.appDir, 'images/**/*');
33+
config.appMarkupFiles = path.join(config.appDir, '**/*.html');
34+
config.appScriptFiles = path.join(config.appDir, '**/*.es6');
35+
config.appStyleFiles = path.join(config.appDir, '**/*.scss');
36+
37+
config.buildDirectiveTemplateFiles = path.join(config.buildDir, '**/*directive.tpl.html');
38+
config.buildJsFiles = path.join(config.buildJs, '**/*.js');
39+
40+
config.buildTestDirectiveTemplateFiles = path.join(config.buildTestDir, '**/*directive.tpl.html');
41+
config.buildE2eTestsDir = path.join(config.buildTestDir, 'e2e');
42+
config.buildE2eTests = path.join(config.buildE2eTestsDir, '**/*_test.js');
43+
config.buildTestDirectiveTemplatesDir = path.join(config.buildTestDir, 'templates');
44+
config.buildUnitTestsDir = path.join(config.buildTestDir, config.unitTestDir);
45+
config.buildUnitTestFiles = path.join(config.buildUnitTestsDir, '**/*_test.js');
46+
47+
config.e2eFiles = path.join('e2e', '**/*.es6');
48+
config.unitTestFiles = path.join(config.unitTestDir, '**/*_test.es6');
49+
50+
for (key in gulpFiles) {
51+
gulpFiles[key](gulp, $, config);
52+
}
53+
54+
gulp.task('dev', ['build'], function () {
55+
gulp.start('browserSync');
56+
gulp.start('watch');
57+
});
58+
59+
gulp.task('default', ['dev']);

Diff for: README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# schema-form-builder
2+
3+
*Generated with [ng-poly](https://github.com/dustinspecker/generator-ng-poly/tree/v0.11.3) version 0.11.3*
4+
5+
## Setup
6+
1. Install [Node.js](http://nodejs.org/)
7+
- This will also install npm.
8+
1. Run `npm install -g bower gulp yo [email protected]`
9+
- This enables Bower, Gulp, and Yeoman generators to be used from command line.
10+
1. Run `npm install` to install this project's dependencies
11+
1. Run `bower install` to install client-side dependencies
12+
1. Use [generator-ng-poly](https://github.com/dustinspecker/generator-ng-poly) to create additional components
13+
14+
## Gulp tasks
15+
- Run `gulp build` to compile assets
16+
- Run `gulp dev` to run the build task and setup the development environment
17+
- Run `gulp unitTest` to run unit tests via Karma and to create code coverage reports
18+
- Run `gulp webdriverUpdate` to download Selenium server standalone and Chrome driver for e2e testing
19+
- Run `gulp e2eTest` to run e2e tests via Protractor
20+
- **A localhost must be running** - `gulp dev`

Diff for: app/app-module.es6

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(function () {
2+
'use strict';
3+
4+
/* @ngdoc object
5+
* @name schemaFormBuilder
6+
* @description
7+
*
8+
*/
9+
angular
10+
.module('schemaFormBuilder', [
11+
'ui.router',
12+
'ui.bootstrap'
13+
]);
14+
}());

Diff for: app/app-routes.es6

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(function () {
2+
'use strict';
3+
4+
angular
5+
.module('schemaFormBuilder')
6+
.config(config);
7+
8+
function config($urlRouterProvider) {
9+
$urlRouterProvider.otherwise('/home');
10+
}
11+
}());

Diff for: app/index.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang='en' data-ng-app='schemaFormBuilder'>
3+
<head>
4+
<title>schema-form-builder</title>
5+
<meta name='viewport' content='width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes'>
6+
<!-- inject:head:js -->
7+
<!-- endinject -->
8+
<!-- inject:html -->
9+
<!-- endinject -->
10+
<!-- bower:css -->
11+
<!-- endbower -->
12+
<!-- inject:css -->
13+
<!-- endinject -->
14+
</head>
15+
<body>
16+
17+
<div class='navbar navbar-inverse' role='navigation'>
18+
<div class='container'>
19+
<div class='navbar-header'>
20+
<button class='navbar-toggle collapsed' type='button' data-ng-init='navCollapsed = true' data-ng-click='navCollapsed = !navCollapsed'>
21+
<span class='sr-only'>Toggle Navigation</span>
22+
<span class='icon-bar'></span>
23+
<span class='icon-bar'></span>
24+
<span class='icon-bar'></span>
25+
</button>
26+
<a class='navbar-brand' href='#/'>schema-form-builder</a>
27+
</div>
28+
<div class='navbar-collapse collapse' collapse='navCollapsed'>
29+
<ul class='nav navbar-nav'>
30+
<li data-ui-sref-active='active'>
31+
<a data-ui-sref='home'>Home</a>
32+
</li>
33+
</ul>
34+
</div>
35+
</div>
36+
</div>
37+
38+
<div class='container'>
39+
<div data-ui-view>
40+
41+
</div>
42+
</div>
43+
44+
<!-- bower:js -->
45+
<!-- endbower -->
46+
<!-- inject:js -->
47+
<!-- endinject -->
48+
</body>
49+
</html>

Diff for: bower.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "schema-form-builder",
3+
"version": "0.0.0",
4+
"dependencies": {
5+
"angular": "~1.4.*",
6+
"angular-bootstrap": "~0.13.3",
7+
"angular-ui-router": "~0.2.10",
8+
"bootstrap": "~3.2.0",
9+
"font-awesome": "~4.2.0",
10+
"lodash": "~3.9.0"
11+
},
12+
"devDependencies": {
13+
"angular-mocks": "~1.4.*"
14+
},
15+
"overrides": {
16+
"angular": {
17+
"dependencies": {
18+
"jquery": "*"
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)