Skip to content

Commit

Permalink
chore: update project config (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Nov 9, 2019
1 parent 7fdfabc commit 0987602
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 20 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: "circleci/node:latest"

working_directory: ~/fisker

steps:
- checkout

- run:
name: Install dependencies
command: yarn

- run:
name: Build dist
command: yarn build

- store_artifacts:
path: ./dist
destination: dist
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ node_modules/**
**/third-party/**

# build file
lib/**
dist/**
**/*.min.*

Expand All @@ -26,4 +25,3 @@ dist/**
coverage/**

# project glob
/lib
16 changes: 12 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: 10.x
node-version: 12.x

- name: Install Dependencies
run: yarn
Expand All @@ -38,8 +38,9 @@ jobs:
# - macos-latest
# - windows-latest
NODE:
# - 12.x
- 10.x
# - 13.x
- 12.x
# - 10.x
# exclude:
# - PLATFORM: macos-latest
# NODE: 12.x
Expand Down Expand Up @@ -68,7 +69,14 @@ jobs:
- name: Run Test
run: yarn test-coverage

- name: Upload Coverage
- name: Upload Coverage Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true

- name: Upload Coverage Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ typings/
.dynamodb/

# project ignore files
/lib
dist/
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ node_modules/**
**/third-party/**

# build file
lib/**
dist/**
**/*.min.*

Expand All @@ -26,4 +25,3 @@ dist/**
coverage/**

# project glob

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "power-cartesian-product",
"description": "powerful cartesian product",
"version": "0.0.4",
"main": "lib/index.js",
"module": "lib/index.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"main": "dist/index.js",
"module": "dist/index.mjs",
"browser": "dist/index.min.js",
"unpkg": "dist/index.min.js",
"jsdelivr": "dist/index.min.js",
"repository": "fisker/power-cartesian-product",
"homepage": "https://github.com/fisker/power-cartesian-product#readme",
"publishConfig": {
Expand Down Expand Up @@ -51,17 +51,18 @@
}
},
"files": [
"lib"
"dist"
],
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "rimraf lib",
"clean": "rimraf dist",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --write",
"format:markdown": "yarn lint:markdown --fix",
"format:prettier": "yarn lint:prettier --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ node -r esm examples/big-combinations.js
## Files

```text
lib/
dist/
├─ index.common.js ( CommonJS )
├─ index.js ( UMD )
├─ index.min.js ( UMD, compressed )
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const builds = {
output: [
// umd build
{
file: 'lib/index.js',
file: 'dist/index.js',
format: 'umd',
name: moduleName,
sourcemap: true,
},
// esm build
{
file: 'lib/index.mjs',
file: 'dist/index.mjs',
format: 'esm',
sourcemap: true,
},
Expand Down

0 comments on commit 0987602

Please sign in to comment.