Skip to content

Commit

Permalink
Merge pull request #180 from curveball/update
Browse files Browse the repository at this point in the history
update everything
  • Loading branch information
JuHang Sin authored May 6, 2021
2 parents 62bd944 + 2b58a99 commit 815ea12
Show file tree
Hide file tree
Showing 5 changed files with 4,669 additions and 824 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
Expand All @@ -37,11 +37,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: 'https://npm.pkg.github.com'
scope: '@curveball'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export PATH:=./node_modules/.bin:$(PATH)
SOURCE_FILES:=$(shell find src/ -type f -name '*.ts')

.PHONY:all
Expand All @@ -9,22 +8,22 @@ build: dist/build

.PHONY:test
test:
nyc mocha
node_modules/.bin/nyc node_modules/.bin/mocha

.PHONY:lint
lint:
eslint --quiet 'src/**/*.ts' 'test/**/*.ts'
node_modules/.bin/eslint --quiet 'src/*.ts' 'test/*.ts'

.PHONY:lint-fix
lint-fix: fix

.PHONY:fix
fix:
eslint --quiet 'src/**/*.ts' 'test/**/*.ts' --fix
node_modules/.bin/eslint --quiet 'src/**/*.ts' 'test/**/*.ts' --fix

.PHONY:watch
watch:
tsc --watch
node_modules/.bin/tsc --watch

.PHONY:start
start: build
Expand All @@ -34,6 +33,6 @@ clean:
rm -r dist

dist/build: $(SOURCE_FILES)
tsc
node_modules/.bin/tsc
@# Creating a small file to keep track of the last build time
touch dist/build
Loading

0 comments on commit 815ea12

Please sign in to comment.