Skip to content

Commit 5bc42be

Browse files
committed
Publish NuGet
1 parent 94c8898 commit 5bc42be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2892
-960
lines changed

.github/workflows/npmpublish.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm test
17+
18+
publish-pacakges:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
23+
# checkout the repo
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
registry-url: https://registry.npmjs.org/
29+
- run: npm ci
30+
- run: npm run build
31+
32+
# extract tag name
33+
- id: branch_name
34+
name: Get branch name
35+
run: |
36+
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
37+
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
38+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
39+
# update version
40+
- id: update_version
41+
name: Update version
42+
run: |
43+
echo $SOURCE_NAME
44+
echo $SOURCE_BRANCH
45+
echo $SOURCE_TAG
46+
npm --no-git-tag-version version $SOURCE_TAG
47+
env:
48+
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
49+
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
50+
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
51+
52+
# publish to NPMJS
53+
- uses: actions/setup-node@v1
54+
with:
55+
registry-url: https://registry.npmjs.org/
56+
scope: '@validide'
57+
- run: |
58+
npm config set @validide:registry https://registry.npmjs.org/
59+
npm publish --access public
60+
env:
61+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
62+
# publish to GitHub Pacakge Registry
63+
- uses: actions/setup-node@v1
64+
with:
65+
registry-url: https://npm.pkg.github.com/
66+
scope: '@validide'
67+
- run: |
68+
npm config set @validide:registry https://npm.pkg.github.com/
69+
npm publish --access public
70+
env:
71+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v1
10+
with:
11+
node-version: 12
12+
- run: npm ci
13+
- run: npm test
14+
15+
# - uses: coverallsapp/github-action@master
16+
# with:
17+
# github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
# path-to-lcov: "./coverage/lcov.info"

.mocharc.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://mochajs.org/#command-line-usage
2+
# https://github.com/mochajs/mocha/tree/master/example/config
3+
4+
extension:
5+
- ts
6+
recursive: true
7+
require:
8+
- ts-node/register # replace with ts-node/register/transpile-only if you have custom types
9+
- source-map-support/register
10+
bail: false
11+
color: true
12+
full-trace: false
13+
reporter: spec
14+
spec: tests/**/*.ts

.nycrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": "@istanbuljs/nyc-config-typescript",
3+
"all": true,
4+
"extension": [
5+
".ts",
6+
".tsx"
7+
],
8+
"exclude": [
9+
"**/*.d.ts",
10+
"tests/**/*.*",
11+
"dist/**/*.*",
12+
"scripts/**/*.*",
13+
"coverage/**/*.*",
14+
".build/**/*.*",
15+
"docs/**/*.*",
16+
"rollup.config.js"
17+
],
18+
"reporter": [
19+
"text",
20+
"lcov",
21+
"html"
22+
],
23+
"branches": 5,
24+
"lines": 5,
25+
"functions": 5,
26+
"statements": 5,
27+
"check-coverage": true
28+
}

.vscode/settings.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ IE 10 and above
4848

4949
**[Demo](https://validide.github.io/resizable-table-columns/dist/samples/index.html)**
5050

51+
**[Bootstrap Demo](https://validide.github.io/resizable-table-columns/dist/samples/bootstrap.html)**
52+

dist/css/resizable-table-columns.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
border-collapse: collapse;
1313
white-space: nowrap;
1414
margin: 0;
15+
width: auto;
1516
}
1617

1718
.rtc-wrapper table.rtc-table thead, .rtc-wrapper table.rtc-table tbody, .rtc-wrapper table.rtc-table tfoot {

dist/css/resizable-table-columns.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/bundle/resizable-table-columns.bundle.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)