-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Runn Vermel
committed
Sep 24, 2015
0 parents
commit 57167f8
Showing
28 changed files
with
18,184 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "./bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
.DS_Store | ||
temp | ||
bower_components | ||
.idea | ||
reports | ||
css/noprefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"latedef": true, | ||
"noarg": true, | ||
"sub": true, | ||
"undef": true, | ||
"boss": true, | ||
"eqnull": true, | ||
"node": true, | ||
"browser": true, | ||
"expr":true, | ||
"globals" : { | ||
"it" : false, | ||
"xit" : false, | ||
"describe" : false, | ||
"xdescribe" : false, | ||
"before" : false, | ||
"after" : false, | ||
"beforeEach" : false, | ||
"afterEach" : false, | ||
"expect" : false, | ||
"spyOn" : false, | ||
"alert" : false, | ||
"require" : false, | ||
"requirejs" : false, | ||
"Card" : true, | ||
"iOS" : false, | ||
"$" : true, | ||
"define" : false, | ||
"angular": false, | ||
"Polymer": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
'use strict'; | ||
|
||
|
||
module.exports = function (grunt) { | ||
|
||
var importOnce = require('node-sass-import-once'); | ||
// Project configuration. | ||
grunt.initConfig({ | ||
|
||
clean: { | ||
css: ['css'], | ||
bower: ['bower_components'], | ||
reports: ['reports'] | ||
}, | ||
|
||
sass: { | ||
options: { | ||
importer: importOnce, | ||
importOnce: { | ||
index: true, | ||
bower: true | ||
} | ||
}, | ||
ahaTable: { | ||
files: { | ||
'css/noprefix/aha-table-sketch.css': 'sass/aha-table-sketch.scss', | ||
'css/noprefix/aha-table.css': 'sass/aha-table-predix.scss' | ||
} | ||
}, | ||
pxDataTable: { | ||
files: { | ||
'css/noprefix/px-data-table-sketch.css': 'sass/px-data-table-sketch.scss', | ||
'css/noprefix/px-data-table.css': 'sass/px-data-table-predix.scss' | ||
} | ||
} | ||
}, | ||
|
||
autoprefixer: { | ||
options: { | ||
browsers: ['last 2 version'] | ||
}, | ||
multiple_files: { | ||
expand: true, | ||
flatten: true, | ||
src: 'css/noprefix/*.css', | ||
dest: 'css' | ||
} | ||
}, | ||
|
||
shell: { | ||
options: { | ||
stdout: true, | ||
stderr: true | ||
}, | ||
bower: { | ||
command: 'bower install' | ||
} | ||
}, | ||
|
||
jshint: { | ||
all: [ | ||
'Gruntfile.js', | ||
'js/**/*.js' | ||
], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
}, | ||
|
||
watch: { | ||
sass: { | ||
files: ['sass/**/*.scss'], | ||
tasks: ['sass', 'autoprefixer'], | ||
options: { | ||
interrupt: true, | ||
livereload: true | ||
} | ||
}, | ||
htmljs: { | ||
files: ['*.html', '*.js'], | ||
options: { | ||
interrupt: true, | ||
livereload: true | ||
} | ||
} | ||
}, | ||
|
||
depserve: { | ||
options: { | ||
open: '<%= depserveOpenUrl %>' | ||
} | ||
}, | ||
|
||
webdriver: { | ||
options: { | ||
specFiles: ['test/*spec.js'] | ||
}, | ||
local: { | ||
webdrivers: ['chrome'] | ||
} | ||
}, | ||
|
||
concurrent: { | ||
devmode: { | ||
tasks: ['watch', 'depserve'], | ||
options: { | ||
logConcurrentOutput: true | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-sass'); | ||
grunt.loadNpmTasks('grunt-shell'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-dep-serve'); | ||
grunt.loadNpmTasks('webdriver-support'); | ||
grunt.loadNpmTasks('grunt-autoprefixer'); | ||
grunt.loadNpmTasks('grunt-concurrent'); | ||
|
||
|
||
// Default task. | ||
grunt.registerTask('default', 'Basic build', [ | ||
'sass', | ||
'autoprefixer' | ||
]); | ||
|
||
// First run task. | ||
grunt.registerTask('firstrun', 'Basic first run', function() { | ||
grunt.config.set('depserveOpenUrl', '/index.html'); | ||
grunt.task.run('default'); | ||
grunt.task.run('depserve'); | ||
}); | ||
|
||
grunt.registerTask('devmode', 'Development Mode', [ | ||
'concurrent:devmode' | ||
]); | ||
|
||
// Default task. | ||
grunt.registerTask('test', 'Test', [ | ||
'jshint', | ||
'webdriver' | ||
]); | ||
|
||
grunt.registerTask('release', 'Release', [ | ||
'clean', | ||
'shell:bower', | ||
'default', | ||
'test' | ||
]); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
v0.0.1 | ||
================== | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Px-Data-Table | ||
----------------------------------------------- | ||
|
||
## Overview | ||
|
||
Px-Data-Table is a Predix Experience ('Px') component | ||
|
||
## Getting Started | ||
|
||
Read https://github.com/pages/PX/technical-principles/ | ||
|
||
From the component's directory... | ||
|
||
``` | ||
$ npm install | ||
$ bower install | ||
$ grunt sass | ||
``` | ||
|
||
### API and examples | ||
|
||
From the component's directory | ||
|
||
``` | ||
$ grunt depserve | ||
``` | ||
|
||
Starts a local server. Navigate to the root of that server (e.g. http://localhost:8080/) in a browser to open the API documentation page, with link to the "Demo" / working examples. | ||
|
||
### Options | ||
|
||
Does this component have runtime configuration options? If so, they should be able to be passed as attributes on the element with examples shown below. | ||
|
||
### Function calls | ||
|
||
What is the public API of this component? | ||
|
||
### Extending styles | ||
|
||
Documented CSS extension points? | ||
|
||
### Extending behavior | ||
|
||
See Polymer composition patterns | ||
|
||
GE Coding Style Guide | ||
--------------------- | ||
|
||
[GE JS Developer's Guide](https://github.com/GeneralElectric/javascript) | ||
|
||
|
||
### Known Issues | ||
|
Oops, something went wrong.