Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Runn Vermel committed Sep 24, 2015
0 parents commit 57167f8
Show file tree
Hide file tree
Showing 28 changed files with 18,184 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "./bower_components"
}
18 changes: 18 additions & 0 deletions .editorconfig
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
7 changes: 7 additions & 0 deletions .gitignore
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
35 changes: 35 additions & 0 deletions .jshintrc
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
}
}
154 changes: 154 additions & 0 deletions Gruntfile.js
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'
]);

};
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
v0.0.1
==================
* Initial release
53 changes: 53 additions & 0 deletions README.md
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

Loading

0 comments on commit 57167f8

Please sign in to comment.