diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4898e03 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,20 @@ +version: 2.1 +jobs: + build: + docker: + - image: circleci/node:10 + steps: + - checkout + - run: + name: install-dep + command: npm i + - save_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} + paths: + - ./node_modules + - run: + name: lint + command: npm run lint + - run: + name: test + command: npm t diff --git a/README.md b/README.md index fc3ecef..c56bef8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ -# restc +

+ restc +

-[中文文档](https://elemefe.github.io/restc/intro/) +

+ CircleCI (all branches) +

+ +

+ 中文文档 +

## Introduction diff --git a/package.json b/package.json index 876b77c..6115f7e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "index.d.ts" ], "scripts": { - "lint": "eslint --fix .", + "lint": "eslint .", + "lint-fix": "eslint --fix .", "test": "ava" }, "faas": {