Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 5b9668d

Browse files
committed
feat(re-styled,styles): testing
1 parent 4a05e3a commit 5b9668d

File tree

3 files changed

+67
-3
lines changed

3 files changed

+67
-3
lines changed

packages/re-styled/src/components/heading/styled-heading.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import styled from 'styled-components';
22
import { getVariant } from 'utils';
3-
import { tints } from '@elementor/styles';
4-
5-
window.console.log( '*** Rot', tints );
63

74
const Heading = styled.h1`
85
${ ( props ) => getVariant( props.variant, {} ) }

packages/styles/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,24 @@
2525
},
2626
"scripts": {
2727
"test": "echo \"Error: run tests from root\" && exit 1"
28+
},
29+
"devDependencies": {
30+
"@babel/core": "^7.2.2",
31+
"@babel/preset-env": "^7.3.1",
32+
"@babel/preset-react": "^7.0.0",
33+
"@elementor/styles": "^0.29.0",
34+
"babel-loader": "^8.0.5",
35+
"prop-types": "^15.7.2",
36+
"react": "^16.7.0",
37+
"react-dom": "^16.7.0",
38+
"styled-components": "^5.3.0",
39+
"webpack": "^4.29.0",
40+
"webpack-cli": "^3.2.1"
41+
},
42+
"peerDependencies": {
43+
"prop-types": ">=15.7.2",
44+
"react": ">=16.7.0",
45+
"react-dom": ">=16.7.0",
46+
"styled-components": ">=5.3.0"
2847
}
2948
}

packages/styles/webpack.config.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
const webpack = require( 'webpack' );
2+
const path = require( 'path' );
3+
4+
module.exports = {
5+
mode: 'production',
6+
entry: './src/index.js',
7+
resolve: {
8+
alias: {},
9+
},
10+
output: {
11+
filename: 'index.js',
12+
library: '@elementor/styles',
13+
libraryTarget: 'umd',
14+
path: path.resolve( __dirname, 'lib' ),
15+
umdNamedDefine: true
16+
},
17+
module: {
18+
rules: [
19+
{
20+
test: /\.(js|jsx)$/,
21+
exclude: /node_modules/,
22+
use: [
23+
{
24+
loader: 'babel-loader',
25+
options: {
26+
presets: [ [ '@babel/preset-env', { "useBuiltIns": "usage", "corejs": 3 } ], '@babel/preset-react' ],
27+
},
28+
},
29+
],
30+
},
31+
],
32+
},
33+
externals: {
34+
// Don't bundle react or react-dom
35+
react: {
36+
commonjs: "react",
37+
commonjs2: "react",
38+
amd: "React",
39+
root: "React"
40+
},
41+
"react-dom": {
42+
commonjs: "react-dom",
43+
commonjs2: "react-dom",
44+
amd: "ReactDOM",
45+
root: "ReactDOM"
46+
}
47+
}
48+
};

0 commit comments

Comments
 (0)