Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 59dd5c6

Browse files
authored
Update packages and switch to npm (#36)
1 parent 4dc3118 commit 59dd5c6

File tree

12 files changed

+15554
-5555
lines changed

12 files changed

+15554
-5555
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,23 @@ jobs:
88
timeout-minutes: 20
99
strategy:
1010
matrix:
11-
node: [10, 12, 13]
11+
node: [10, 12, 14, 16]
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
14+
- uses: actions/setup-node@v2
1515
with:
1616
node-version: ${{ matrix.node }}
17-
- name: Get yarn cache
18-
id: yarn-cache
19-
run: echo "::set-output name=dir::$(yarn cache dir)"
20-
- name: Cache node modules
21-
uses: actions/cache@v1
22-
with:
23-
path: node_modules
24-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
25-
restore-keys: |
26-
${{ runner.os }}-node-
17+
cache: 'npm'
2718
- name: Install
28-
run: yarn --prefer-offline --frozen-lockfile --no-progress --non-interactive
19+
run: npm ci
20+
- name: Format check
21+
run: npm run format:check
2922
- name: Lint
30-
run: yarn lint
23+
run: npm run lint
3124
- name: Build
32-
run: yarn build
25+
run: npm run build
3326
- name: Test
34-
run: yarn test --coverage
27+
run: npm test --coverage
3528
- name: Upload coverage
3629
uses: codecov/codecov-action@v1
3730
with:

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run pre-commit

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Changelog
1+
# awsx changelog
2+
3+
## 1.1.3 (October 16, 2021)
4+
5+
- Switch to npm
6+
- Update dependencies
27

38
## 1.1.2 (May 19, 2021)
49

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ If you'd like to contribute to awsx we recommend that you first [open an issue](
8888

8989
1. Fork this repo
9090
1. Clone the forked repo
91-
1. Install dependencies: `yarn`
91+
1. Install dependencies: `npm install`
9292

9393
### Development
9494

95-
#### `yarn start`
95+
#### `npm start`
9696

9797
### Building
9898

99-
#### `yarn build`
99+
#### `npm run build`
100100

101-
To clean the build directory run `yarn clean`
101+
To clean the build directory run `npm run clean`
102102

103103
### Testing
104104

105-
#### `yarn test`
105+
#### `npm run test`
106106

107107
## Publishing
108108

jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ module.exports = {
44
'!<rootDir>/src/types/**/*',
55
'!<rootDir>/node_modules/',
66
'!<rootDir>/build/',
7-
'!<rootDir>/*.js'
7+
'!<rootDir>/*.js',
88
],
99
globals: {
1010
'ts-jest': {
11-
tsConfig: '<rootDir>/test/tsconfig.json'
12-
}
11+
tsconfig: '<rootDir>/test/tsconfig.json',
12+
},
1313
},
1414
preset: 'ts-jest',
1515
testEnvironment: 'node',
16-
testPathIgnorePatterns: ['<rootDir>/build/']
16+
testPathIgnorePatterns: ['<rootDir>/build/'],
1717
};

0 commit comments

Comments
 (0)