Use node_modules in examples/polymer-cli dir instead of project root

This commit is contained in:
Léon Rodenburg 2017-11-03 13:37:26 +01:00
parent bc2382c052
commit e2c8b6efd9
8 changed files with 1791 additions and 2601 deletions

View File

@ -66,16 +66,7 @@ export default function() {
},
{
test: /\.html$/,
use: [
{
loader: require.resolve('babel-loader'),
options: { cacheDirectory: '.babel-cache' },
},
{
loader: require.resolve('polymer-webpack-loader'),
options: { processStyleLinks: true },
},
],
use: [require.resolve('babel-loader'), require.resolve('polymer-webpack-loader')],
},
],
},

View File

@ -67,17 +67,7 @@ export default function() {
},
{
test: /\.html$/,
exclude: /node_modules\/(?!(polymer-redux|polymer-webpack-loader)\/).*/,
use: [
{
loader: require.resolve('babel-loader'),
options: { cacheDirectory: '.babel-cache' },
},
{
loader: require.resolve('polymer-webpack-loader'),
options: { processStyleLinks: true },
},
],
use: [require.resolve('babel-loader'), require.resolve('polymer-webpack-loader')],
},
],
},

View File

@ -3,11 +3,11 @@
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"storybook": "start-storybook -p 9001 -c .storybook"
},
"dependencies": {
"@polymer/polymer": "^2.2.0",
"@storybook/polymer": "file:../../packs/storybook-polymer.tgz",
"@webcomponents/webcomponentsjs": "^1.0.17",
"polymer-cli": "1.5.2",
"polymer-webpack-loader": "^2.0.0",
@ -21,7 +21,6 @@
"babel-preset-stage-2": "^6.24.1",
"copy-webpack-plugin": "^4.2.0",
"html-webpack-plugin": "^2.30.1",
"webpack-dev-server": "^2.9.4",
"@storybook/polymer": "^3.3.0-alpha.2"
"webpack-dev-server": "^2.9.4"
}
}

View File

@ -1,4 +1,4 @@
<link rel="import" href="../../../node_modules/@polymer/polymer/polymer-element.html">
<link rel="import" href="../node_modules/@polymer/polymer/polymer-element.html">
<dom-module id="playground-button">
<template>

View File

@ -1,7 +1,7 @@
import { storiesOf } from '@storybook/polymer';
import '../../../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader';
import '../../../../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter';
import '../PlaygroundButton.html';
storiesOf('Welcome', module).add('Welcome', () => '<playground-button></playground-button>');
storiesOf('PlaygroundButton', module).add(
'default mode',
() => '<playground-button></playground-button>'
);

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,6 @@
"examples/angular-cli",
"examples/cra-kitchen-sink",
"examples/vue-kitchen-sink",
"examples/polymer-cli",
"lib/cli/test/run/*"
],
"scripts": {

2613
yarn.lock

File diff suppressed because it is too large Load Diff