This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix up template paths and include material icon font
- Loading branch information
0 parents
commit bb4346f
Showing
74 changed files
with
7,448 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,12 @@ | ||
# pow-style | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{ts,html}] | ||
max_line_length = 120 |
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,8 @@ | ||
.DS_Store | ||
.idea | ||
lib/ | ||
ng2-material/**/*.css | ||
ng2-material/**/*.css.map | ||
ng2-material/**/*.js | ||
ng2-material/**/*.js.map | ||
ng2-material/**/*.d.ts |
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,88 @@ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
sourceRoot: 'ng2-material', | ||
clean: [ | ||
"lib/", | ||
"<%- sourceRoot %>/**/*.js", | ||
"<%- sourceRoot %>/**/*.js.map", | ||
"<%- sourceRoot %>/**/*.css", | ||
"<%- sourceRoot %>/**/*.css.map" | ||
], | ||
notify: { | ||
options: {title: 'Material for Angular2'}, | ||
styles: {options: {message: 'Styles Compiled.'}}, | ||
source: {options: {message: 'Source Compiled.'}} | ||
}, | ||
ts: { | ||
source: { | ||
tsconfig: true | ||
} | ||
}, | ||
sass: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%- sourceRoot %>', | ||
dest: '<%- sourceRoot %>', | ||
src: ["<%- sourceRoot %>/all.scss", "<%- sourceRoot %>/**/*.scss"], | ||
ext: '.css' | ||
}] | ||
} | ||
}, | ||
'http-server': { | ||
dev: { | ||
root: 'public', | ||
port: 8282, | ||
host: 'localhost', | ||
ext: 'html', | ||
runInBackground: true, | ||
https: true, | ||
openBrowser: true | ||
} | ||
}, | ||
watch: { | ||
sass: { | ||
files: ['<%- sourceRoot %>/**/*.scss'], | ||
tasks: ['sass', 'notify:styles'] | ||
}, | ||
ts: { | ||
files: ['<%- sourceRoot %>/**/*.ts'], | ||
tasks: ['ts', 'notify:source'] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-http-server'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
grunt.loadNpmTasks('grunt-notify'); | ||
grunt.loadNpmTasks('grunt-ts'); | ||
grunt.registerTask('default', ['ts', 'sass']); | ||
grunt.registerTask('develop-ide', ['default', 'http-server']); | ||
grunt.registerTask('develop', ['develop-ide', 'watch']); | ||
|
||
|
||
grunt.registerTask('dist-bundle', 'Build a single-file javascript output.', function () { | ||
var done = this.async(); | ||
var Builder = require('systemjs-builder'); | ||
var builder = new Builder('./', './config.js'); | ||
builder | ||
.bundle('ng2-material', 'lib/ng2-material/ng2-material.js', { | ||
minify: false, | ||
sourceMaps: true | ||
}) | ||
.then(function () { | ||
return builder.bundle('ng2-material', 'lib/ng2-material/ng2-material.min.js', { | ||
minify: true, | ||
sourceMaps: true | ||
}); | ||
}) | ||
.then(function () { | ||
done(); | ||
}); | ||
}); | ||
|
||
|
||
}; |
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,25 @@ | ||
Material Design for Angular2 | ||
--- | ||
|
||
This project is intended to be a placeholder for material design components in Angular2 until an official | ||
implementation is provided. | ||
|
||
These components are based very heavily on the components and styles defined in the | ||
[Angular Material](https://github.com/angular/material) and [Angular 2](https://github.com/angular/angular) projects. | ||
|
||
|
||
|
||
## License | ||
|
||
### [Angular Material](https://github.com/angular/material) | ||
|
||
- scss and source file reference for angular2 component implementations and services | ||
- layout and typography styles (layout="row",layout-align="center center",...) | ||
|
||
License: [MIT](https://github.com/angular/material/blob/master/LICENSE) | ||
|
||
### [Angular 2.0.0-alpha.48](https://github.com/angular/angular) | ||
|
||
- scss utilities for defining default material theme and theme function | ||
|
||
License: [Apache2](https://github.com/angular/angular/blob/master/LICENSE) |
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,23 @@ | ||
System.config({ | ||
baseUrl: './', | ||
transpiler: 'typescript', | ||
typescriptOptions: { | ||
resolveTypings: true, | ||
emitDecoratorMetadata: true, | ||
sourceMap: true, | ||
inlineSourceMap: false | ||
}, | ||
packages: { | ||
'ng2-material': { | ||
main: './all.ts', | ||
defaultExtension: 'ts' | ||
} | ||
}, | ||
map: { | ||
typescript: './node_modules/typescript/lib/typescript.js' | ||
}, | ||
paths: { | ||
"angular2/*": "./node_modules/angular2/bundles/angular2.dev.js" | ||
}, | ||
defaultJSExtensions: true | ||
}); |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,9 @@ | ||
The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: | ||
|
||
```html | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" | ||
rel="stylesheet"> | ||
``` | ||
|
||
Read more in our full usage guide: | ||
http://google.github.io/material-design-icons/#icon-font-for-the-web |
Oops, something went wrong.