From 3520c377bb898d77b2a31a416c6a49068888d849 Mon Sep 17 00:00:00 2001 From: BenjaVR Date: Tue, 8 Jan 2019 18:56:13 +0100 Subject: [PATCH] Added "typescript-plugin-css-modules" TS plugin --- web/package.json | 3 +- web/src/components/schools/SchoolsPage.tsx | 4 +- web/tsconfig.json | 5 + yarn.lock | 116 ++++++++++++++++++++- 4 files changed, 123 insertions(+), 5 deletions(-) diff --git a/web/package.json b/web/package.json index 10bd5ff..6c4b69c 100644 --- a/web/package.json +++ b/web/package.json @@ -41,6 +41,7 @@ "react-scripts": "2.1.1", "tslint": "5.12.0", "tslint-react": "3.6.0", - "typescript": "3.2.2" + "typescript": "3.2.2", + "typescript-plugin-css-modules": "^1.0.5" } } diff --git a/web/src/components/schools/SchoolsPage.tsx b/web/src/components/schools/SchoolsPage.tsx index e2dd767..d6fe014 100644 --- a/web/src/components/schools/SchoolsPage.tsx +++ b/web/src/components/schools/SchoolsPage.tsx @@ -5,7 +5,7 @@ import { RoutePageComponentProps, routes } from "../../routes"; import { SchoolsService } from "../../services/SchoolsService"; import AuthenticatedLayout from "../layouts/AuthenticatedLayout"; import SchoolFormModal from "./SchoolsFormModal"; -import SchoolList from "./SchoolsTable"; +import SchoolsTable from "./SchoolsTable"; type SchoolsPageProps = RoutePageComponentProps; @@ -56,7 +56,7 @@ export default class SchoolsPage extends React.Component - =1.1.13-1 <1.2.0-0": + version "1.1.14" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" + integrity sha1-fPTFTvZI44EwhMY23SB54WbAgdk= + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + readdirp@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" @@ -11137,6 +11215,13 @@ strip-comments@^1.0.2: babel-extract-comments "^1.0.0" babel-plugin-transform-object-rest-spread "^6.26.0" +strip-css-singleline-comments@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strip-css-singleline-comments/-/strip-css-singleline-comments-1.1.0.tgz#76c7266c8adae8806b54496e352b98b397352a90" + integrity sha1-dscmbIra6IBrVEluNSuYs5c1KpA= + dependencies: + through2 "^1.1.1" + strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" @@ -11195,6 +11280,13 @@ supports-color@^5.1.0, supports-color@^5.3.0, supports-color@^5.4.0, supports-co dependencies: has-flag "^3.0.0" +supports-color@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.0.0.tgz#76cfe742cf1f41bb9b1c29ad03068c05b4c0e40a" + integrity sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg== + dependencies: + has-flag "^3.0.0" + svgo@^1.0.0, svgo@^1.0.5: version "1.1.1" resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.1.1.tgz#12384b03335bcecd85cfa5f4e3375fed671cb985" @@ -11303,6 +11395,14 @@ throat@^4.0.0: resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= +through2@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/through2/-/through2-1.1.1.tgz#0847cbc4449f3405574dbdccd9bb841b83ac3545" + integrity sha1-CEfLxESfNAVXTb3M2buEG4OsNUU= + dependencies: + readable-stream ">=1.1.13-1 <1.2.0-0" + xtend ">=4.0.0 <4.1.0-0" + through2@^2.0.0, through2@^2.0.3: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" @@ -11529,6 +11629,18 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typescript-plugin-css-modules@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/typescript-plugin-css-modules/-/typescript-plugin-css-modules-1.0.5.tgz#18492ad6cc5b3580bd729d8f2440543f4187bbad" + integrity sha512-ruv/j4K8/RunRKrhtbUQgtk2uW9+1TP6+qKtlpO9FkGvusJDwtXssgg7IBcGukBqMcqguJ2R4Uybariezzui6Q== + dependencies: + icss-utils "^4.0.0" + lodash "^4.17.11" + postcss "^7.0.7" + postcss-icss-selectors "^2.0.3" + postcss-nested "^4.1.1" + strip-css-singleline-comments "^1.1.0" + typescript@3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5" @@ -12260,7 +12372,7 @@ xregexp@4.0.0: resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-4.0.0.tgz#e698189de49dd2a18cc5687b05e17c8e43943020" integrity sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg== -xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68=