Show More
@@ -0,0 +1,11 b'' | |||
|
1 | const styleElement = document.createElement('dom-module'); | |
|
2 | import sharedCSS from 'raw-loader!./style-polymer.css'; | |
|
3 | ||
|
4 | styleElement.innerHTML = | |
|
5 | `<template> | |
|
6 | <style> | |
|
7 | ${sharedCSS} | |
|
8 | </style> | |
|
9 | </template>`; | |
|
10 | ||
|
11 | styleElement.register('shared-styles'); |
@@ -17,5 +17,5 b' module.exports = function(grunt) {' | |||
|
17 | 17 | grunt.loadNpmTasks('grunt-contrib-jshint'); |
|
18 | 18 | grunt.loadNpmTasks('grunt-contrib-copy'); |
|
19 | 19 | grunt.loadNpmTasks('grunt-webpack'); |
|
20 |
grunt.registerTask('default', ['less:production', 'less:components', |
|
|
20 | grunt.registerTask('default', ['less:production', 'less:components', 'copy', 'webpack', 'concat:dist']); | |
|
21 | 21 | }; |
@@ -1,8 +1,8 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "dirs": { |
|
3 | 3 | "css": { |
|
4 | "src":"rhodecode/public/css", | |
|
5 | "dest":"rhodecode/public/css" | |
|
4 | "src": "rhodecode/public/css", | |
|
5 | "dest": "rhodecode/public/css" | |
|
6 | 6 | }, |
|
7 | 7 | "js": { |
|
8 | 8 | "src": "rhodecode/public/js/src", |
@@ -13,22 +13,21 b'' | |||
|
13 | 13 | }, |
|
14 | 14 | "copy": { |
|
15 | 15 | "main": { |
|
16 | "expand": true, | |
|
17 | "cwd": "node_modules/@webcomponents", | |
|
18 | "src": "webcomponentsjs/*.*", | |
|
19 | "dest": "<%= dirs.js.dest %>/vendors" | |
|
16 | "files": [ | |
|
17 | { | |
|
18 | "expand": true, | |
|
19 | "cwd": "node_modules/@webcomponents", | |
|
20 | "src": "webcomponentsjs/*.*", | |
|
21 | "dest": "<%= dirs.js.dest %>/vendors" | |
|
22 | }, | |
|
23 | { | |
|
24 | "src": "<%= dirs.css.src %>/style-polymer.css", | |
|
25 | "dest": "<%= dirs.js.dest %>/src/components/style-polymer.css" | |
|
26 | } | |
|
27 | ] | |
|
20 | 28 | } |
|
21 | 29 | }, |
|
22 | 30 | "concat": { |
|
23 | "polymercss": { | |
|
24 | "src": [ | |
|
25 | "<%= dirs.js.src %>/components/root-styles-prefix.html", | |
|
26 | "<%= dirs.css.src %>/style-polymer.css", | |
|
27 | "<%= dirs.js.src %>/components/root-styles-suffix.html" | |
|
28 | ], | |
|
29 | "dest": "<%= dirs.js.dest %>/src/components/root-styles.gen.html", | |
|
30 | "nonull": true | |
|
31 | }, | |
|
32 | 31 | "dist": { |
|
33 | 32 | "src": [ |
|
34 | 33 | "<%= dirs.js.node_modules %>/jquery/dist/jquery.min.js", |
@@ -1,5 +1,5 b'' | |||
|
1 | 1 | import '@polymer/iron-ajax/iron-ajax.js'; |
|
2 |
import './ |
|
|
2 | import './shared-styles.js'; | |
|
3 | 3 | import './channelstream-connection/channelstream-connection.js'; |
|
4 | 4 | import './rhodecode-toast/rhodecode-toast.js'; |
|
5 | 5 | import './rhodecode-toggle/rhodecode-toggle.js'; |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now