Skip to content

Commit 8539ee9

Browse files
authored
Commit just one file instead of node_modules (#15)
1 parent 1cb7bfa commit 8539ee9

File tree

683 files changed

+1596
-142778
lines changed

Some content is hidden

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

683 files changed

+1596
-142778
lines changed

.gitattributes

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# Set default behavior to automatically normalize line endings.
33
###############################################################################
44
* text=auto
5-
6-
# Do not normalize line endings for the checked in packages we never touch.
7-
node_modules/** -text
5+
*.js text
6+
*.ts text
87

98
# Ensure bash shell scripts use LF line endings
109
*.sh eol=lf
@@ -23,7 +22,7 @@ node_modules/** -text
2322
#
2423
# Merging from the command prompt will add diff markers to the files if there
2524
# are conflicts (Merging from VS is not affected by the settings below, in VS
26-
# the diff markers are never inserted). Diff markers may cause the following
25+
# the diff markers are never inserted). Diff markers may cause the following
2726
# file extensions to fail to load in VS. An alternative would be to treat
2827
# these files as binary and thus will always conflict and require user
2928
# intervention with every merge. To do so, just uncomment the entries below
@@ -52,9 +51,9 @@ node_modules/** -text
5251

5352
###############################################################################
5453
# diff behavior for common document formats
55-
#
54+
#
5655
# Convert binary document formats to text before diffing them. This feature
57-
# is only available from the command line. Turn it on by uncommenting the
56+
# is only available from the command line. Turn it on by uncommenting the
5857
# entries below.
5958
###############################################################################
6059
#*.doc diff=astextplain

.github/workflows/checkin.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@ jobs:
1010
check_diff:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v2
1414

1515
- name: yarn
1616
run: yarn
1717

18-
- name: "yarn run build"
18+
- name: yarn run build
1919
run: yarn run build
2020

21-
# - name: "yarn run test"
22-
# run: yarn run test
23-
24-
- name: "check for uncommitted changes"
25-
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
21+
- name: check for uncommitted changes
22+
# Ensure no changes.
2623
run: |
27-
git diff --exit-code --stat -- . ':!node_modules' \
24+
git add -u . # compare after applying git EOL normalization
25+
git diff --cached --exit-code --stat \
2826
|| (echo "##[error] found changed files after build. please 'yarn run build'" \
2927
"and check in all changes" \
28+
&& git diff --cached \
3029
&& exit 1)
3130
test:
3231
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
!node_modules/
1+
node_modules/
22
__tests__/runner/*
3-
nbgv.json
3+
nbgv.json
4+
lib/main.js

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ inputs:
2222
required: false
2323
runs:
2424
using: node12
25-
main: lib/main.js
25+
main: dist/index.js

0 commit comments

Comments
 (0)