Skip to content

Commit 0b4c5f6

Browse files
authored
Merge pull request #47 from ForEvolve/release-1.0.0
Release 1.0.0
2 parents 9216ae5 + 3caf94c commit 0b4c5f6

File tree

97 files changed

+69360
-25092
lines changed

Some content is hidden

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

97 files changed

+69360
-25092
lines changed

.github/workflows/main.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Build and deploy
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
paths:
7+
- 'scss/**'
8+
9+
pull_request:
10+
branches: [main, master]
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os:
18+
- ubuntu-latest
19+
# - macos-latest
20+
# - windows-latest
21+
node_version:
22+
- 14
23+
architecture:
24+
- x64
25+
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Setup node
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: ${{ matrix.node_version }}
33+
architecture: ${{ matrix.architecture }}
34+
35+
- run: npm i
36+
- run: npm run build
37+
- run: npm test
38+
39+
deploy:
40+
runs-on: ubuntu-latest
41+
needs: build-and-test
42+
steps:
43+
- uses: actions/checkout@v2
44+
with:
45+
fetch-depth: 0
46+
47+
- uses: actions/setup-node@v2
48+
with:
49+
node-version: 14
50+
registry-url: https://registry.npmjs.org/
51+
52+
- uses: dotnet/nbgv@master
53+
id: nbgv
54+
with:
55+
stamp: package.json
56+
setCommonVars: true
57+
setAllVars: true
58+
59+
- run: |
60+
echo 'NpmPackageVersion: ${{ steps.nbgv.outputs.NpmPackageVersion }}'
61+
62+
- run: npm install
63+
if: github.event_name == 'push'
64+
65+
- run: npm run build
66+
if: github.event_name == 'push'
67+
68+
- run: npm publish --access=public
69+
env:
70+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
71+
if: github.event_name == 'push'
72+
73+
- uses: actions/create-release@v1
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
with:
77+
tag_name: v${{ steps.nbgv.outputs.NpmPackageVersion }}
78+
release_name: v${{ steps.nbgv.outputs.NpmPackageVersion }} Release
79+
draft: false
80+
prerelease: false
81+
if: github.event_name == 'push'

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
app/
1+
samples/
22
.vscode/
33
set-version-number.ps1
44
.prettierignore

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/app/bin/Debug/netcoreapp2.2/bootstrap-dark.dll",
13+
"program": "${workspaceFolder}/samples/razor-pages/bin/Debug/netcoreapp2.2/bootstrap-dark.dll",
1414
"args": [],
15-
"cwd": "${workspaceFolder}/app",
15+
"cwd": "${workspaceFolder}/samples/razor-pages",
1616
"stopAtEntry": false,
1717
"internalConsoleOptions": "openOnSessionStart",
1818
"launchBrowser": {
@@ -33,7 +33,7 @@
3333
"ASPNETCORE_ENVIRONMENT": "Development"
3434
},
3535
"sourceFileMap": {
36-
"/Views": "${workspaceFolder}/app/Views"
36+
"/Views": "${workspaceFolder}/samples/razor-pages/Views"
3737
}
3838
},
3939
{

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"label": "build",
66
"command": "dotnet",
77
"type": "process",
8-
"args": ["build", "${workspaceFolder}/app/bootstrap-dark.csproj"],
8+
"args": ["build", "${workspaceFolder}/samples/razor-pages/bootstrap-dark.csproj"],
99
"problemMatcher": "$msCompile"
1010
}
1111
]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 The bootstrap-dark theme Authors
3+
Copyright (c) 2018-2021 Carl-Hugo Marcotte
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)