mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 19:32:14 +00:00
v0.4.2 - Changed to be used only inconjonction with stylus
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
af99c13922
commit
803915999b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,9 @@
|
|||||||
module/
|
module/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
*.mjs
|
||||||
*.js
|
*.js
|
||||||
|
*.d.ts
|
||||||
|
!src/stylus.d.ts
|
||||||
!.storybook/*.js
|
!.storybook/*.js
|
||||||
style.css
|
style.css
|
||||||
yarn-error.log
|
yarn-error.log
|
@ -1,6 +1,6 @@
|
|||||||
.storybook/
|
.storybook/
|
||||||
node_modules/
|
node_modules/
|
||||||
src/
|
*.stories.js
|
||||||
.gitattributes
|
.gitattributes
|
||||||
.gitignore
|
.gitignore
|
||||||
.npmignore
|
.npmignore
|
||||||
|
@ -2,7 +2,7 @@ const path = require("path");
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"stories": [
|
"stories": [
|
||||||
"../src/dzeio/**/*.stories.@(js|jsx|ts|tsx)",
|
"../src/dzeio/**/*.stories.@(ts|tsx)",
|
||||||
],
|
],
|
||||||
"addons": [
|
"addons": [
|
||||||
"@storybook/addon-essentials"
|
"@storybook/addon-essentials"
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^17.0.1",
|
||||||
"react-feather": "^2.0.9",
|
"react-feather": "^2.0.9",
|
||||||
"rollup": "^2.39.0",
|
|
||||||
"rollup-plugin-styles": "^3.14.1",
|
|
||||||
"rollup-plugin-typescript2": "^0.30.0",
|
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"stylus": "^0.54.8",
|
"stylus": "^0.54.8",
|
||||||
"stylus-loader": "^4.3.3",
|
"stylus-loader": "^4.3.3",
|
||||||
@ -38,7 +35,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"storybook": "rm -rf src/dzeio/**/*.js && start-storybook -p 6006",
|
"storybook": "rm -rf src/dzeio/**/*.js && start-storybook -p 6006",
|
||||||
"build-storybook": "build-storybook",
|
|
||||||
"build": "tsc && mv src/index.js src/index.mjs",
|
"build": "tsc && mv src/index.js src/index.mjs",
|
||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
}
|
}
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
import typescript from 'rollup-plugin-typescript2';
|
|
||||||
import styles from 'rollup-plugin-styles'
|
|
||||||
import pkg from './package.json';
|
|
||||||
|
|
||||||
export default [
|
|
||||||
{
|
|
||||||
input: 'src/index.ts',
|
|
||||||
external: ['ms'],
|
|
||||||
plugins: [
|
|
||||||
styles({
|
|
||||||
modules: true,
|
|
||||||
url: false,
|
|
||||||
autoModules: true,
|
|
||||||
mode: 'extract',
|
|
||||||
|
|
||||||
}),
|
|
||||||
typescript({useTsconfigDeclarationDir: true}), // so Rollup can convert TypeScript to JavaScript
|
|
||||||
],
|
|
||||||
output: [
|
|
||||||
{
|
|
||||||
dir: './',
|
|
||||||
format: 'cjs',
|
|
||||||
assetFileNames: 'style.css'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
file: pkg.module,
|
|
||||||
format: 'es',
|
|
||||||
assetFileNames: 'style.css'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
|
@ -3,7 +3,7 @@ import Row from '../Row'
|
|||||||
|
|
||||||
import css from './DebugCols.module.styl'
|
import css from './DebugCols.module.styl'
|
||||||
|
|
||||||
import Col from '.'
|
import Col from '../Col'
|
||||||
|
|
||||||
enum Breakpoint {
|
enum Breakpoint {
|
||||||
MOBILE,
|
MOBILE,
|
||||||
|
@ -52,3 +52,9 @@ $success = $successLight
|
|||||||
$danger = $errorLight
|
$danger = $errorLight
|
||||||
$warning = $warningLight
|
$warning = $warningLight
|
||||||
$darkBackground = $backgroundDark
|
$darkBackground = $backgroundDark
|
||||||
|
|
||||||
|
|
||||||
|
// See https://github.com/stylus/stylus/issues/1872#issuecomment-86553717
|
||||||
|
use('stylusUtils.js')
|
||||||
|
|
||||||
|
@import '../../../../../../theme' if file-exists('../../../../../../theme.styl')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import Box, { BoxBody, BoxHeader, BoxWrapper } from './dzeio/Box'
|
import Box from './dzeio/Box'
|
||||||
import Button from './dzeio/Button'
|
import Button from './dzeio/Button'
|
||||||
import Checkbox from './dzeio/Checkbox'
|
import Checkbox from './dzeio/Checkbox'
|
||||||
import Code from './dzeio/Code'
|
import Code from './dzeio/Code'
|
||||||
@ -22,13 +22,8 @@ import Table from './dzeio/Table'
|
|||||||
import Text from './dzeio/Text'
|
import Text from './dzeio/Text'
|
||||||
import * as Util from './dzeio/Util'
|
import * as Util from './dzeio/Util'
|
||||||
|
|
||||||
import './dzeio/general.styl'
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Box,
|
Box,
|
||||||
BoxBody,
|
|
||||||
BoxHeader,
|
|
||||||
BoxWrapper,
|
|
||||||
Button,
|
Button,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Code,
|
Code,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||||
"declarationDir": "./module",
|
"declarationDir": "src",
|
||||||
// "outDir": "./dist", /* Redirect output structure to the directory. */
|
// "outDir": "./dist", /* Redirect output structure to the directory. */
|
||||||
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||||
// "composite": true, /* Enable project compilation */
|
// "composite": true, /* Enable project compilation */
|
||||||
@ -65,6 +65,6 @@
|
|||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"build",
|
"build",
|
||||||
"*.stories.tsx"
|
"src/**/*.stories.tsx"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user