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

Commit

Permalink
Update packages and switch to npm (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu authored Oct 16, 2021
1 parent 4dc3118 commit 59dd5c6
Show file tree
Hide file tree
Showing 12 changed files with 15,554 additions and 5,555 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,23 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
node: [10, 12, 13]
node: [10, 12, 14, 16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'npm'
- name: Install
run: yarn --prefer-offline --frozen-lockfile --no-progress --non-interactive
run: npm ci
- name: Format check
run: npm run format:check
- name: Lint
run: yarn lint
run: npm run lint
- name: Build
run: yarn build
run: npm run build
- name: Test
run: yarn test --coverage
run: npm test --coverage
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
# awsx changelog

## 1.1.3 (October 16, 2021)

- Switch to npm
- Update dependencies

## 1.1.2 (May 19, 2021)

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ If you'd like to contribute to awsx we recommend that you first [open an issue](

1. Fork this repo
1. Clone the forked repo
1. Install dependencies: `yarn`
1. Install dependencies: `npm install`

### Development

#### `yarn start`
#### `npm start`

### Building

#### `yarn build`
#### `npm run build`

To clean the build directory run `yarn clean`
To clean the build directory run `npm run clean`

### Testing

#### `yarn test`
#### `npm run test`

## Publishing

Expand Down
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = {
'!<rootDir>/src/types/**/*',
'!<rootDir>/node_modules/',
'!<rootDir>/build/',
'!<rootDir>/*.js'
'!<rootDir>/*.js',
],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/test/tsconfig.json'
}
tsconfig: '<rootDir>/test/tsconfig.json',
},
},
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/build/']
testPathIgnorePatterns: ['<rootDir>/build/'],
};
Loading

0 comments on commit 59dd5c6

Please sign in to comment.