1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00

Move css to the library.

This commit is contained in:
Bogdan Bodnar 2019-09-26 13:09:37 +02:00
parent 7a14ed1b60
commit e4e28dbce4
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0
6 changed files with 530 additions and 187 deletions

View File

@ -24,4 +24,8 @@ module.exports = {
globals: {
TZ: "utc",
},
transform: {
"^.+\\.js$": "babel-jest",
"^.+\\.css$": "jest-transform-css",
},
};

693
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,12 +16,13 @@
"dependencies": {
"axios": "^0.19.0",
"immutability-helper": "^3.0.0",
"jest-transform-css": "^2.0.0",
"moment": "^2.24.0",
"moment-timezone": "^0.5.25",
"prop-types": "^15.7.2",
"react-datetime": "^2.16.3",
"react-router": "^5.0.1",
"react-uid": "^2.2.0",
"moment": "^2.24.0",
"moment-timezone": "^0.5.25"
"react-uid": "^2.2.0"
},
"peerDependencies": {
"react": "^16.9.0",
@ -42,6 +43,7 @@
"babel-plugin-module-resolver": "^3.2.0",
"babel-plugin-react-transform": "^3.0.0",
"babel-polyfill": "^6.26.0",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.2.0",
"eslint": "^6.1.0",
"eslint-config-airbnb": "^18.0.1",
@ -61,9 +63,8 @@
"webpack": "^4.41.0"
},
"scripts": {
"watch": "babel src --verbose --watch --out-dir dist --ignore '**/__tests__' --source-maps inline",
"build": "rm -rf dist; babel src --out-dir dist --ignore '**/__tests__' --source-maps inline",
"build:watch": "babel src --verbose --watch --out-dir dist --ignore '**/__tests__' --source-maps inline",
"build": "rm -rf dist; babel src --out-dir dist --ignore '**/__tests__' --source-maps inline --copy-files",
"build:watch": "babel src --verbose --watch --out-dir dist --ignore '**/__tests__' --source-maps inline --copy-files",
"prepare": "rm -rf ./dist && npm run build",
"lint": "eslint src",
"test": "jest",

View File

@ -9,6 +9,7 @@ import React from "react";
import PropTypes from "prop-types";
import { Input } from "./Input";
import "./NumberInput.css";
NumberInput.propTypes = {
/** Field label. */

View File

@ -5,9 +5,6 @@
* See /LICENSE for more information.
*/
const path = require("path");
module.exports = {
title: "Foris JS docs",
sections: [
@ -51,9 +48,6 @@ module.exports = {
],
},
},
require: [
path.join(__dirname, "css/custom.css"),
],
webpackConfig: {
module: {
rules: [