Skip to content

Commit

Permalink
v0.1.0 (#12)
Browse files Browse the repository at this point in the history
* use rollup instead of tsc
* introduce test
* add github action
and some minor fixes
  • Loading branch information
sottar authored Feb 27, 2020
1 parent f15f6fa commit cde435a
Show file tree
Hide file tree
Showing 12 changed files with 4,592 additions and 358 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["webpack.*", "node_modules/"],
"ignorePatterns": ["webpack.*", "node_modules/", "src/__tests__/**"],
"rules": {}
}
25 changes: 25 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run build --if-present
- run: npm test
env:
CI: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
npm + yarn => nyarm

Can you answer npm or yarn in your project?
We can use just nyarm.
You can use just nyarm for all your project.

## install

Expand Down
2 changes: 1 addition & 1 deletion bin/nyarm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node

require('../lib/nyarm');
require('../lib/index');
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
moduleNameMapper: {
'^@/(.+)': '<rootDir>/src/$1',
},
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
};
Loading

0 comments on commit cde435a

Please sign in to comment.