Skip to content

Commit 5fde74f

Browse files
committed
use types-css-modules
1 parent 6ee956a commit 5fde74f

File tree

4 files changed

+56
-8
lines changed

4 files changed

+56
-8
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"start": "react-scripts-ts start",
1212
"build": "react-scripts-ts build",
1313
"test": "react-scripts-ts test --env=jsdom",
14-
"eject": "react-scripts-ts eject"
14+
"eject": "react-scripts-ts eject",
15+
"css-types": "tcm src"
1516
},
1617
"devDependencies": {
1718
"@types/jest": "^23.3.2",
1819
"@types/node": "^10.11.3",
1920
"@types/react": "^16.4.14",
2021
"@types/react-dom": "^16.0.8",
22+
"typed-css-modules": "^0.3.6",
2123
"typescript": "^3.1.1"
2224
}
2325
}

src/App.css.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const app: string;
2+
export const logo: string;
3+
export const header: string;
4+
export const title: string;
5+
export const intro: string;

src/index.css.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

yarn.lock

+47-7
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ [email protected], chalk@^1.1.3:
15811581
strip-ansi "^3.0.0"
15821582
supports-color "^2.0.0"
15831583

1584-
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1:
1584+
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1:
15851585
version "2.4.1"
15861586
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
15871587
integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==
@@ -1611,7 +1611,7 @@ chokidar@^1.6.0, chokidar@^1.7.0:
16111611
optionalDependencies:
16121612
fsevents "^1.0.0"
16131613

1614-
chokidar@^2.0.0, chokidar@^2.0.2:
1614+
chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.3:
16151615
version "2.0.4"
16161616
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.4.tgz#356ff4e2b0e8e43e322d18a372460bbcf3accd26"
16171617
integrity sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==
@@ -2085,6 +2085,18 @@ [email protected]:
20852085
postcss-value-parser "^3.3.0"
20862086
source-list-map "^2.0.0"
20872087

2088+
css-modules-loader-core@^1.1.0:
2089+
version "1.1.0"
2090+
resolved "https://registry.yarnpkg.com/css-modules-loader-core/-/css-modules-loader-core-1.1.0.tgz#5908668294a1becd261ae0a4ce21b0b551f21d16"
2091+
integrity sha1-WQhmgpShvs0mGuCkziGwtVHyHRY=
2092+
dependencies:
2093+
icss-replace-symbols "1.1.0"
2094+
postcss "6.0.1"
2095+
postcss-modules-extract-imports "1.1.0"
2096+
postcss-modules-local-by-default "1.2.0"
2097+
postcss-modules-scope "1.1.0"
2098+
postcss-modules-values "1.3.0"
2099+
20882100
css-select@^1.1.0:
20892101
version "1.2.0"
20902102
resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858"
@@ -3727,7 +3739,7 @@ [email protected], iconv-lite@^0.4.17, iconv-lite@^0.4.4:
37273739
dependencies:
37283740
safer-buffer ">= 2.1.2 < 3"
37293741

3730-
icss-replace-symbols@^1.1.0:
3742+
icss-replace-symbols@1.1.0, icss-replace-symbols@^1.1.0:
37313743
version "1.1.0"
37323744
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
37333745
integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=
@@ -4168,6 +4180,11 @@ is-symbol@^1.0.2:
41684180
dependencies:
41694181
has-symbols "^1.0.0"
41704182

4183+
is-there@^4.4.2:
4184+
version "4.4.3"
4185+
resolved "https://registry.yarnpkg.com/is-there/-/is-there-4.4.3.tgz#a2c49366c6a487f719dbcad80cbde21248d2c18d"
4186+
integrity sha1-osSTZsakh/cZ28rYDL3iEkjSwY0=
4187+
41714188
is-typedarray@~1.0.0:
41724189
version "1.0.0"
41734190
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
@@ -6198,30 +6215,30 @@ postcss-minify-selectors@^2.0.4:
61986215
postcss "^5.0.14"
61996216
postcss-selector-parser "^2.0.0"
62006217

6201-
postcss-modules-extract-imports@^1.0.0:
6218+
postcss-modules-extract-imports@1.1.0, postcss-modules-extract-imports@^1.0.0:
62026219
version "1.1.0"
62036220
resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb"
62046221
integrity sha1-thTJcgvmgW6u41+zpfqh26agXds=
62056222
dependencies:
62066223
postcss "^6.0.1"
62076224

6208-
postcss-modules-local-by-default@^1.0.1:
6225+
postcss-modules-local-by-default@1.2.0, postcss-modules-local-by-default@^1.0.1:
62096226
version "1.2.0"
62106227
resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069"
62116228
integrity sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk=
62126229
dependencies:
62136230
css-selector-tokenizer "^0.7.0"
62146231
postcss "^6.0.1"
62156232

6216-
postcss-modules-scope@^1.0.0:
6233+
postcss-modules-scope@1.1.0, postcss-modules-scope@^1.0.0:
62176234
version "1.1.0"
62186235
resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90"
62196236
integrity sha1-1upkmUx5+XtipytCb75gVqGUu5A=
62206237
dependencies:
62216238
css-selector-tokenizer "^0.7.0"
62226239
postcss "^6.0.1"
62236240

6224-
postcss-modules-values@^1.1.0:
6241+
postcss-modules-values@1.3.0, postcss-modules-values@^1.1.0:
62256242
version "1.3.0"
62266243
resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20"
62276244
integrity sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA=
@@ -6320,6 +6337,15 @@ postcss-zindex@^2.0.1:
63206337
postcss "^5.0.4"
63216338
uniqs "^2.0.0"
63226339

6340+
6341+
version "6.0.1"
6342+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2"
6343+
integrity sha1-AA29H47vIXqjaLmiEsX8QLKo8/I=
6344+
dependencies:
6345+
chalk "^1.1.3"
6346+
source-map "^0.5.6"
6347+
supports-color "^3.2.3"
6348+
63236349
postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.16:
63246350
version "5.2.18"
63256351
resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5"
@@ -7992,6 +8018,20 @@ type-is@~1.6.15, type-is@~1.6.16:
79928018
media-typer "0.3.0"
79938019
mime-types "~2.1.18"
79948020

8021+
typed-css-modules@^0.3.6:
8022+
version "0.3.6"
8023+
resolved "https://registry.yarnpkg.com/typed-css-modules/-/typed-css-modules-0.3.6.tgz#39d17f7e65f4ee51a769e282f599347a6cf01cd5"
8024+
integrity sha512-D5iq4ibRm4mvV7OboYZviezQ6ohZHcZT0nnZaLcJslScPyEUv084cv+/4TR0JXbASXN3in0rObfdwjXZqVDSfw==
8025+
dependencies:
8026+
camelcase "^4.1.0"
8027+
chalk "^2.1.0"
8028+
chokidar "^2.0.3"
8029+
css-modules-loader-core "^1.1.0"
8030+
glob "^7.1.2"
8031+
is-there "^4.4.2"
8032+
mkdirp "^0.5.1"
8033+
yargs "^8.0.2"
8034+
79958035
typedarray@^0.0.6:
79968036
version "0.0.6"
79978037
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"

0 commit comments

Comments
 (0)