Skip to content

Commit 2b88a8b

Browse files
authored
Merge pull request #243 from sass/merge-main
Merge main into feature.color-4
2 parents 7937793 + 275a1a2 commit 2b88a8b

Some content is hidden

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

52 files changed

+1742
-1106
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
build/
22
dist/
33
language/
4-
embedded-protocol/
54
lib/src/vendor/
65
**/*.js

.github/workflows/ci.yml

Lines changed: 22 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defaults:
55

66
env:
77
PROTOC_VERSION: 3.x
8-
DEFAULT_NODE_VERSION: 15.x # If changing this, also change jobs.tests.strategy.matrix.node_version
8+
DEFAULT_NODE_VERSION: 18.x # If changing this, also change jobs.tests.strategy.matrix.node_version
99

1010
on:
1111
push:
@@ -24,24 +24,15 @@ jobs:
2424
with:
2525
node-version: ${{ env.DEFAULT_NODE_VERSION }}
2626
check-latest: true
27-
- uses: arduino/setup-protoc@v1
28-
with:
29-
version: ${{ env.PROTOC_VERSION }}
30-
repo-token: '${{ github.token }}'
31-
32-
- name: Check out the embedded protocol
33-
uses: sass/clone-linked-repo@v1
34-
with: {repo: sass/embedded-protocol, default-ref: null}
3527

36-
- name: Check out the JS API definition
28+
- name: Check out the language repo
3729
uses: sass/clone-linked-repo@v1
3830
with: {repo: sass/sass, path: language}
3931

4032
- run: npm install
4133
- name: npm run init
4234
run: |
43-
if [[ -d embedded-protocol ]]; then args=--protocol-path=embedded-protocol; fi
44-
npm run init -- --skip-compiler --api-path=language $args
35+
npm run init -- --skip-compiler --language-path=language $args
4536
4637
- run: npm run check
4738

@@ -52,7 +43,7 @@ jobs:
5243
strategy:
5344
matrix:
5445
os: [ubuntu, macos, windows]
55-
node-version: [15.x, 14.x, 12.x] # If changing this, also change env.DEFAULT_NODE_VERSION
46+
node-version: [18.x, 16.x, 14.x] # If changing this, also change env.DEFAULT_NODE_VERSION
5647
fail-fast: false
5748

5849
steps:
@@ -61,44 +52,26 @@ jobs:
6152
with:
6253
node-version: ${{ matrix.node-version }}
6354
check-latest: true
64-
- uses: frenck/action-setup-yq@v1
65-
with: {version: v4.30.5} # frenck/action-setup-yq#35
66-
- uses: arduino/setup-protoc@v1
67-
with:
68-
version: ${{ env.PROTOC_VERSION }}
69-
repo-token: '${{ github.token }}'
7055
- uses: dart-lang/setup-dart@v1
7156
with: {sdk: stable}
7257
- run: dart --version
7358

74-
- name: Check out the embedded protocol
75-
uses: sass/clone-linked-repo@v1
76-
with: {repo: sass/embedded-protocol, default-ref: null}
77-
7859
- name: Check out Dart Sass
7960
uses: sass/clone-linked-repo@v1
8061
with: {repo: sass/dart-sass}
8162

82-
- name: Check out the embedded compiler
83-
uses: sass/clone-linked-repo@v1
84-
with: {repo: sass/dart-sass-embedded}
85-
86-
- name: Link the embedded compiler to Dart Sass
87-
run: |
88-
yq -i '.dependency_overrides.sass = {"path": "../dart-sass"}' \
89-
dart-sass-embedded/pubspec.yaml
90-
91-
- name: Check out the JS API definition
63+
- name: Check out the language repo
9264
uses: sass/clone-linked-repo@v1
9365
with: {repo: sass/sass, path: language}
9466

9567
- run: npm install
9668
- name: npm run init
9769
run: |
98-
if [[ -d embedded-protocol ]]; then args=--protocol-path=embedded-protocol; fi
99-
npm run init -- --compiler-path=dart-sass-embedded --api-path=language $args
70+
npm run init -- --compiler-path=dart-sass --language-path=language $args
10071
10172
- run: npm run test
73+
- run: npm run compile
74+
- run: node test/after-compile-test.mjs
10275

10376
# The versions should be kept up-to-date with the latest LTS Node releases.
10477
# They next need to be rotated October 2021. See
@@ -111,53 +84,33 @@ jobs:
11184
fail-fast: false
11285
matrix:
11386
os: [ubuntu, windows, macos]
114-
node_version: [16]
87+
node_version: [18]
11588
include:
11689
# Include LTS versions on Ubuntu
11790
- os: ubuntu
118-
node_version: 14
91+
node_version: 16
11992
- os: ubuntu
120-
node_version: 12
93+
node_version: 14
12194

12295
steps:
12396
- uses: actions/checkout@v2
12497
- uses: dart-lang/setup-dart@v1
12598
with: {sdk: stable}
12699
- uses: actions/setup-node@v2
127100
with: {node-version: "${{ matrix.node_version }}"}
128-
- uses: frenck/action-setup-yq@v1
129-
with: {version: v4.30.5} # frenck/action-setup-yq#35
130-
- uses: arduino/setup-protoc@v1
131-
with:
132-
version: ${{ env.PROTOC_VERSION }}
133-
repo-token: '${{ github.token }}'
134-
135-
- name: Check out the embedded protocol
136-
uses: sass/clone-linked-repo@v1
137-
with: {repo: sass/embedded-protocol, default-ref: null}
138101

139102
- name: Check out Dart Sass
140103
uses: sass/clone-linked-repo@v1
141104
with: {repo: sass/dart-sass}
142105

143-
- name: Check out the embedded compiler
144-
uses: sass/clone-linked-repo@v1
145-
with: {repo: sass/dart-sass-embedded}
146-
147-
- name: Link the embedded compiler to Dart Sass
148-
run: |
149-
yq -i '.dependency_overrides.sass = {"path": "../dart-sass"}' \
150-
dart-sass-embedded/pubspec.yaml
151-
152-
- name: Check out the JS API definition
106+
- name: Check out the language repo
153107
uses: sass/clone-linked-repo@v1
154108
with: {repo: sass/sass, path: language}
155109

156110
- run: npm install
157111
- name: npm run init
158112
run: |
159-
if [[ -d embedded-protocol ]]; then args=--protocol-path=embedded-protocol; fi
160-
npm run init -- --compiler-path=dart-sass-embedded --api-path=language $args
113+
npm run init -- --compiler-path=dart-sass --language-path=language $args
161114
162115
- name: Check out sass-spec
163116
uses: sass/clone-linked-repo@v1
@@ -170,7 +123,15 @@ jobs:
170123
- name: Compile
171124
run: |
172125
npm run compile
173-
ln -s {`pwd`/,dist/}lib/src/vendor/dart-sass-embedded
126+
if [[ "$RUNNER_OS" == "Windows" ]]; then
127+
# Avoid copying the entire Dart Sass build directory on Windows,
128+
# since it may contain symlinks that cp will choke on.
129+
mkdir -p dist/lib/src/vendor/dart-sass/
130+
cp {`pwd`/,dist/}lib/src/vendor/dart-sass/sass.bat
131+
cp {`pwd`/,dist/}lib/src/vendor/dart-sass/sass.snapshot
132+
else
133+
ln -s {`pwd`/,dist/}lib/src/vendor/dart-sass
134+
fi
174135
175136
- name: Run tests
176137
run: npm run js-api-spec -- --sassPackage .. --sassSassRepo ../language

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ node_modules
66
npm-debug.log*
77
package-lock.json
88
test/sandbox
9-
npm/*/dart-sass-embedded/
9+
npm/*/dart-sass/
1010

1111
# Editors
1212
.idea

0 commit comments

Comments
 (0)