Skip to content

Commit ddf266f

Browse files
committed
Add CircleCI config
1 parent 8d2dce8 commit ddf266f

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
lines changed

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
3+
4+
# Sharable configurations
5+
default_config: &default_config
6+
docker:
7+
- image: circleci/node:8.12
8+
working_directory: ~/repo
9+
restore_cache: &restore_cache
10+
keys:
11+
- v1-dependencies-{{ checksum "package.json" }}
12+
- v1-dependencies-
13+
save_cache: &save_cache
14+
paths:
15+
- node_modules
16+
key: v1-dependencies-{{ checksum "package.json" }}
17+
18+
# Jobs
19+
version: 2
20+
jobs:
21+
test:
22+
<<: *default_config
23+
steps:
24+
- checkout
25+
- restore_cache: *restore_cache
26+
- run: yarn
27+
- save_cache: *save_cache
28+
- run: yarn test
29+
build:
30+
<<: *default_config
31+
steps:
32+
- checkout
33+
- restore_cache: *restore_cache
34+
- run: yarn
35+
- save_cache: *save_cache
36+
- run: yarn build
37+
38+
# Workflows
39+
workflows:
40+
version: 2
41+
test_and_build:
42+
jobs:
43+
- test
44+
- build

.npmignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
/.circleci
2+
/.github
13
/.vscode
4+
/lib/**/__tests__
25
/node_modules
36
/src
4-
/lib/**/__tests__
5-
/.github
67
.editorconfig
78
npm-debug.log
89
tsconfig.json

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for [CSS Modules](https://github.com/css-modules/css-modules).
99
<img src="https://raw.githubusercontent.com/mrmckeb/typescript-plugin-css-modules/master/.github/images/example.gif" alt="typescript-plugin-css-modules example" />
1010

1111
This project was inspired by this [`create-react-app` issue](https://github.com/facebook/create-react-app/issues/5677)
12-
and is based on [`css-module-types`](https://github.com/timothykang/css-module-types).
12+
and was based on [`css-module-types`](https://github.com/timothykang/css-module-types).
1313

1414
## Usage
1515

@@ -101,5 +101,3 @@ declare module '*.module.sass' {
101101
export default classes;
102102
}
103103
```
104-
105-
## Contributors

0 commit comments

Comments
 (0)