.gitignore 0000664 0000000 0000000 00000000025 15160707014 0013044 0 ustar 00root root 0000000 0000000 /node_modules /build .npmignore 0000664 0000000 0000000 00000000215 15160707014 0013054 0 ustar 00root root 0000000 0000000 /.idea /artifacts /build /Gemfile /_layouts /_site /_includes /test /node_modules *.iml *.ipr *.iws .travis.yml .scrutinizer.yml Gruntfile.js .scrutinizer.yml 0000664 0000000 0000000 00000000616 15160707014 0014244 0 ustar 00root root 0000000 0000000 checks: javascript: true filter: excluded_paths: - node_modules/* build: environment: node: 7 dependencies: before: - npm install grunt-cli -g - npm install - node_modules/protractor/bin/webdriver-manager update tests: override: - command: 'grunt' coverage: file: 'build/coverage/clover.xml' format: 'clover' .travis.yml 0000664 0000000 0000000 00000000575 15160707014 0013177 0 ustar 00root root 0000000 0000000 sudo: required dist: trusty addons: apt: sources: - google-chrome packages: - google-chrome-stable language: node_js node_js: - "7" - "node" before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time to start - npm install grunt-cli -g - npm install - ./node_modules/.bin/webdriver-manager update Gruntfile.js 0000664 0000000 0000000 00000003004 15160707014 0013351 0 ustar 00root root 0000000 0000000 const builder = require('corifeus-builder'); module.exports = (grunt) => { //node_modules\.bin\webdriver-manager update const loader = new builder.Loader(grunt); loader.angular2(builder.config.folder.test.angular2Webpack.root); grunt.config.set('cory-replace', { header: { header: true, replace: ` [](https://travis-ci.org/patrikx3/\${git.repo}) [](https://scrutinizer-ci.com/g/patrikx3/\${git.repo}/?branch=master) [](https://scrutinizer-ci.com/g/patrikx3/\${git.repo}/?branch=master) [](https://trello.com/b/gqKHzZGy/p3x) `, files: [ 'artifacts/**/*.md', '*.md', '!LICENSE.md' ] }, footer: { footer: true, replace: `[by Patrik Laszlo](http://patrikx3.tk)`, files: [ 'artifacts/**/*.md', '*.md', '!LICENSE.md' ] } }) grunt.registerTask('run', builder.config.task.run.angular2); grunt.registerTask('default', builder.config.task.build.angular2); //cori-test:angular2-protractor // cori-test:angular2-karma } LICENSE.md 0000664 0000000 0000000 00000002056 15160707014 0012466 0 ustar 00root root 0000000 0000000 MIT License Copyright (c) 2017 Patrik Laszlo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. README.md 0000664 0000000 0000000 00000003107 15160707014 0012337 0 ustar 00root root 0000000 0000000 [//]: #@corifeus-header [](https://travis-ci.org/patrikx3/ng2-compile-html) [](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/?branch=master) [](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/?branch=master) [](https://trello.com/b/gqKHzZGy/p3x) [//]: #corifeus-header:end # ng2-compile-html Angular 2 Service/Attribute to compile an HTML into a component It is only using ```TypeScript``` right now. It can be built though. ##Install ```bash npm install p3x-ng2-compile-html ``` ## Dev environment end test ```bash git clone https://github.com/patrikx3/ng2-compile-html.git cd ng2-compile-html npm install node_modules/.bin/webdriver-manager update grunt run ``` [http://localhost:8080](http://localhost:8080) ##Usage ###HTML ```html
``` ###TypeScript Check out the example, here [test/angular2/app/Page.ts](test/angular2-webpack/app/Page.ts). ###Info Angular 2 tries to camelCase all attributes, for me it is still HTML, so my selectors always ```kebab-case```. [//]: #@corifeus-footer [by Patrik Laszlo](http://patrikx3.tk) [//]: #@corifeus-footer:end index.ts 0000664 0000000 0000000 00000000027 15160707014 0012535 0 ustar 00root root 0000000 0000000 export * from "./src"; ng2-compile-html.iml 0000664 0000000 0000000 00000001706 15160707014 0014644 0 ustar 00root root 0000000 0000000