Skip to content

Commit

Permalink
auto-converted by polymer-modulizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Jun 23, 2018
1 parent c24973b commit 4a2a589
Show file tree
Hide file tree
Showing 18 changed files with 380 additions and 462 deletions.
24 changes: 6 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,15 @@ node_js: '9'
addons:
firefox: latest
chrome: stable
before_script:
- npm install -g polymer-cli
- polymer install --variants
- >-
npm run update-types && git diff --exit-code || (echo -e
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
update-types".' && false)
- >-
npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m
Project is not formatted. Please run "npm run format".' && false)
before_script: npm install -g polymer-cli
script:
- xvfb-run polymer test
- >-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default';
fi
- xvfb-run polymer test --module-resolution=node --npm
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test --module-resolution=node --npm -s ''default''; fi'
env:
global:
- secure: >-
JCnBdRT/TTcvh837MlGUp2QmuC7doU2+2gXbWX1Mj5IL69flJhXVE61vwP+gy+t8EYw41pSNSKxjzt9G5542FB7hqvCDfYrA2E40MvMvzLXZSRqsqKYCKgl4BKDNP7YtRI92oqUQpi4vP3LDkGc+Foyv63fC3N3xgNa9H/d3ADo=
- secure: >-
Iwso7hbLgBF+5bGC7ZNWNQVnEZ0DVNPSnxAEPUiHDBOdnbUWUFvpSaCU5lfQbriYAok+29F6gUKE6IMPLP6tT/J/hWJQoCoa+zWHUPeijgKGevr6qDsvrsQnFnJcWr9g2UhOSi8di2Ys0O2V9EbgUgVy90zJbi+83n1xDp4vYBc=
- secure: JCnBdRT/TTcvh837MlGUp2QmuC7doU2+2gXbWX1Mj5IL69flJhXVE61vwP+gy+t8EYw41pSNSKxjzt9G5542FB7hqvCDfYrA2E40MvMvzLXZSRqsqKYCKgl4BKDNP7YtRI92oqUQpi4vP3LDkGc+Foyv63fC3N3xgNa9H/d3ADo=
- secure: Iwso7hbLgBF+5bGC7ZNWNQVnEZ0DVNPSnxAEPUiHDBOdnbUWUFvpSaCU5lfQbriYAok+29F6gUKE6IMPLP6tT/J/hWJQoCoa+zWHUPeijgKGevr6qDsvrsQnFnJcWr9g2UhOSi8di2Ys0O2V9EbgUgVy90zJbi+83n1xDp4vYBc=
cache:
directories:
- node_modules

57 changes: 0 additions & 57 deletions bower.json

This file was deleted.

6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../paper-styles/demo-pages.html">
<link rel="import" href="prism-demo.html">
<script src="../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module" src="../../paper-styles/demo-pages.js"></script>
<script type="module" src="./prism-demo.js"></script>
</head>
<body>
<div class="vertical-section-container centered">
Expand Down
54 changes: 0 additions & 54 deletions demo/prism-demo.html

This file was deleted.

48 changes: 48 additions & 0 deletions demo/prism-demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';

import '../prism-highlighter.js';
import '../prism-theme-default.js';
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
Polymer({
_template: html`
<style include="prism-theme-default">
pre {
padding: 0;
margin: 0;
}
</style>
<prism-highlighter></prism-highlighter>
<pre id="output"></pre>
`,

is: 'prism-demo',

properties: {
code: {type: String, observer: '_render'},

lang: {type: String}
},

attached: function() {
this._render();
},

_render: function() {
this.$.output.innerHTML = this.highlight(this.code, this.lang);
},

highlight: function(code, lang) {
return this.fire('syntax-highlight', {code: code, lang: lang}).detail.code;
}
});
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<title>prism-element</title>

<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../iron-component-page/iron-component-page.html">
<script src="../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module" src="../iron-component-page/iron-component-page.js"></script>

</head>
<body>
Expand Down
40 changes: 40 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"files": {
"prism-highlighter.html": {
"convertedUrl": "prism-highlighter.js",
"exports": {}
},
"prism-import.html": {
"convertedUrl": "prism-import.js",
"exports": {}
},
"prism-theme-default.html": {
"convertedUrl": "prism-theme-default.js",
"exports": {}
},
"index.html": {
"convertedUrl": "index.html",
"exports": {}
},
"demo/index.html": {
"convertedUrl": "demo/index.html",
"exports": {}
},
"demo/prism-demo.html": {
"convertedUrl": "demo/prism-demo.js",
"exports": {}
},
"test/index.html": {
"convertedUrl": "test/index.html",
"exports": {}
},
"test/prism-element.html": {
"convertedUrl": "test/prism-element.html",
"exports": {}
},
"test/simple-container.html": {
"convertedUrl": "test/simple-container.js",
"exports": {}
}
}
}
30 changes: 27 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
{
"name": "@polymer/prism-element",
"private": true,
"description": "Prism.js import and syntax highlighting",
"keywords": [
"web-components",
"polymer",
"prism",
"molecule"
],
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/prism-element.git"
},
"homepage": "https://github.com/PolymerElements/prism-highlighter",
"name": "@polymer/prism-element",
"license": "BSD-3-Clause",
"devDependencies": {
"@polymer/gen-typescript-declarations": "^1.2.2",
"bower": "^1.8.0",
"webmat": "^0.2.0"
"webmat": "^0.2.0",
"@polymer/iron-component-page": "^3.0.0-pre.20",
"@polymer/paper-styles": "^3.0.0-pre.20",
"@webcomponents/webcomponentsjs": "^2.0.0",
"@polymer/test-fixture": "^3.0.0-pre.20",
"wct-browser-legacy": "^1.0.1"
},
"scripts": {
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir .",
"format": "webmat && npm run update-types"
},
"version": "3.0.0-pre.20",
"resolutions": {
"inherits": "2.0.3",
"samsam": "1.1.3",
"supports-color": "3.1.2",
"type-detect": "1.0.0",
"@webcomponents/webcomponentsjs": "2.0.0-beta.2"
},
"author": "The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)",
"dependencies": {
"prismjs": "^1.11.0",
"@polymer/polymer": "^3.0.0"
}
}
68 changes: 0 additions & 68 deletions prism-highlighter.d.ts

This file was deleted.

Loading

0 comments on commit 4a2a589

Please sign in to comment.