Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Use module extension #580

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
env: {
production: {
plugins: [
['transform-rename-import', { 'original': './index.scss', 'replacement': './index.css' }]
['transform-rename-import', { 'original': './index.module.scss', 'replacement': './index.module.css' }]
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-footer/FooterNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {PureComponent, Fragment} from 'react';
import PropTypes from 'prop-types';
import IconPlus from '@kununu/kununu-icons/dist/Plus';

import styles from './index.scss';
import styles from './index.module.scss';

export default class FooterNav extends PureComponent {
state = {
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import HeartIcon from '@kununu/kununu-icons/dist/HeartOutline';
import Logo from '@kununu/kununu-logo';

import FooterNav from './FooterNav';
import styles from './index.scss';
import styles from './index.module.scss';
import TuvIcon from './Tuv';

export default function Footer ({
Expand Down
12 changes: 6 additions & 6 deletions packages/kununu-footer/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"name": "@kununu/kununu-footer",
"version": "2.5.5",
"version": "3.0.0-beta.2",
"description": "kununu Footer",
"main": "dist",
"author": "kununu",
"license": "ISC",
"dependencies": {
"@kununu/kununu-icons": "1.6.1",
"@kununu/kununu-logo": "1.2.2",
"@kununu/kununu-logo": "2.0.0-beta.0",
"@kununu/kununu-theme-v2": "2.0.2",
"node-sass-module-importer": "0.1.0",
"nukleus": "14.1.12"
"nukleus": "kununu/nukleus#e9c3026a207b04c7686d48dfdefefe7af4cf0658"
},
"peerDependencies": {
"@kununu/kununu-icons": "1.6.1",
"@kununu/kununu-logo": "1.2.2",
"nukleus": "14.1.12",
"@kununu/kununu-logo": "2.0.0-beta.0",
"nukleus": "kununu/nukleus#e9c3026a207b04c7686d48dfdefefe7af4cf0658",
"prop-types": ">=15.6.0",
"react": ">=16.0.0"
},
"scripts": {
"prepare": "npm run dist",
"babel": "babel $(find ./ -name '*.jsx' ! -name '*.test.jsx' ! -ipath '*node_modules*') --out-dir ./dist --root-mode upward",
"sass": "node-sass ./index.scss --output ./dist --importer node_modules/node-sass-module-importer",
"sass": "node-sass ./index.module.scss --output ./dist --importer node_modules/node-sass-module-importer",
"clean": "rimraf ./dist",
"dist": "npm run clean && cross-env NODE_ENV=production npm run babel && npm run sass"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import Logo from '@kununu/kununu-logo';

import styles from './index.scss';
import styles from './index.module.scss';

export default function Header ({
children,
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-header/HeaderNav.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import styles from './index.scss';
import styles from './index.module.scss';

export default function HeaderNav ({
children,
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-header/HeaderNavItem.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import styles from './index.scss';
import styles from './index.module.scss';

export default function HeaderNavItem ({
children,
Expand Down
8 changes: 4 additions & 4 deletions packages/kununu-header/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "@kununu/kununu-header",
"version": "1.3.0",
"version": "2.0.0-beta.1",
"description": "kununu Header",
"main": "dist",
"author": "kununu",
"license": "ISC",
"dependencies": {
"@kununu/kununu-logo": "1.2.2",
"@kununu/kununu-logo": "2.0.0-beta.0",
"@kununu/kununu-theme-v2": "2.0.2",
"node-sass-module-importer": "0.1.0"
},
"peerDependencies": {
"@kununu/kununu-logo": "1.2.2",
"@kununu/kununu-logo": "2.0.0-beta.0",
"@kununu/kununu-theme-v2": "2.0.2",
"prop-types": ">=15.6.0",
"react": ">=16.0.0"
},
"scripts": {
"prepare": "npm run dist",
"babel": "babel $(find ./ -name '*.jsx' ! -name '*.spec.jsx' ! -ipath '*node_modules*') --out-dir ./dist --root-mode upward",
"sass": "node-sass ./index.scss --output ./dist --importer node_modules/node-sass-module-importer",
"sass": "node-sass ./index.module.scss --output ./dist --importer node_modules/node-sass-module-importer",
"clean": "rimraf ./dist",
"dist": "npm run clean && cross-env NODE_ENV=production npm run babel && npm run sass"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-logo/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import styles from './index.scss';
import styles from './index.module.scss';

const Logo = ({
link,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/kununu-logo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kununu/kununu-logo",
"version": "1.2.2",
"version": "2.0.0-beta.0",
"description": "kununu logo",
"main": "dist",
"author": "kununu",
Expand All @@ -17,7 +17,7 @@
"scripts": {
"prepare": "npm run dist",
"babel": "babel ./index.jsx --out-dir ./dist --root-mode upward",
"sass": "node-sass ./index.scss --output ./dist --importer node_modules/node-sass-module-importer",
"sass": "node-sass ./index.module.scss --output ./dist --importer node_modules/node-sass-module-importer",
"clean": "rimraf ./dist",
"dist": "npm run clean && cross-env NODE_ENV=production npm run babel && npm run sass"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-overlay/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import styles from './index.scss';
import styles from './index.module.scss';

const Overlay = ({iconSize}) => (
<div className={styles.overlay}>
Expand Down
4 changes: 2 additions & 2 deletions packages/kununu-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kununu/kununu-overlay",
"version": "1.2.1",
"version": "2.0.0-beta.0",
"description": "kununu page loading spinner",
"main": "dist",
"author": "kununu",
Expand All @@ -16,7 +16,7 @@
"scripts": {
"prepare": "npm run dist",
"babel": "babel ./index.jsx --out-dir ./dist --root-mode upward",
"sass": "node-sass ./index.scss --output ./dist --importer node_modules/node-sass-module-importer",
"sass": "node-sass ./index.module.scss --output ./dist --importer node_modules/node-sass-module-importer",
"clean": "rimraf ./dist",
"dist": "npm run clean && cross-env NODE_ENV=production npm run babel && npm run sass"
}
Expand Down