Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support CLI multiple projects #2086

Merged
merged 234 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from 219 commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
ec6562c
feat(cli): support multiple projects config
tzachbon Oct 4, 2021
33521c5
fix: remove project path from error message
tzachbon Oct 4, 2021
c50f5de
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Oct 4, 2021
bc48a59
feat: handle override specific request config
tzachbon Oct 4, 2021
f50fb70
fix: module formats default resolutaion
tzachbon Oct 4, 2021
ce1dabd
feat: resolve projects request with asterisk and specified order
tzachbon Oct 6, 2021
e7685b4
types: project type renaming
tzachbon Oct 6, 2021
1d6a63a
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Oct 6, 2021
4973ca0
feat: use packages path as request for the projects config
tzachbon Oct 6, 2021
9893294
feat: handle multiple build ouput with project entry value as object
tzachbon Oct 6, 2021
38b75b2
types: rename project entity type
tzachbon Oct 7, 2021
5fcf130
types: remove non-null assertion operator from previues entry
tzachbon Oct 7, 2021
0d56baf
chore: clean and renaming to variables
tzachbon Oct 7, 2021
bc5b40f
refactor: split config tests
tzachbon Oct 7, 2021
90c588f
refactor: group config projects tests
tzachbon Oct 7, 2021
aefc65d
feat: export resolve project type
tzachbon Oct 7, 2021
1b05c27
types: rename type
tzachbon Oct 7, 2021
e069c56
feat: support presets
tzachbon Oct 7, 2021
6526828
feat: validate projects type
tzachbon Oct 7, 2021
213cd96
refactor: move types to cli root and move build meta data to be the s…
tzachbon Oct 14, 2021
0968835
fix: options overload
tzachbon Oct 14, 2021
9d97949
feat: validate project request
tzachbon Oct 14, 2021
feaf796
fix: change error message
tzachbon Oct 14, 2021
9811758
feat: watch projects
tzachbon Oct 14, 2021
39620f8
fix: asset logging
tzachbon Oct 14, 2021
8bebb15
refactor: clean-up projectsConfig return object
tzachbon Oct 17, 2021
1c5d37f
refactor: adjust depended by comments
tzachbon Oct 17, 2021
aa240f6
fix: build output condition
tzachbon Oct 17, 2021
f56a774
feat: validate preset by type
tzachbon Oct 17, 2021
b1bd42a
fix: handle project entry by order
tzachbon Oct 17, 2021
743650d
fix: test name
tzachbon Oct 17, 2021
a7b7d46
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Oct 19, 2021
2e1447b
feat: handle re-build on derived files
tzachbon Oct 19, 2021
7a79426
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Oct 20, 2021
2d88636
chore(deps): loader-utils@3; add missing dep
AviVahl Oct 20, 2021
3d0b584
Revert "chore(deps): loader-utils@3; add missing dep"
AviVahl Oct 20, 2021
1ae3ee0
refactor: redo webpack types; loader-utils@3 (#2107)
AviVahl Oct 20, 2021
50dd200
chore(deps): [email protected]
AviVahl Oct 20, 2021
fe6eacd
test: fix deep watch flakyness
tzachbon Oct 21, 2021
915b4c5
fix: remove only from watch cli test
tzachbon Oct 21, 2021
e4de7b9
feat: support multiple outputs
tzachbon Oct 21, 2021
5514319
test: watch multiple projects index file
tzachbon Oct 21, 2021
3896351
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Oct 21, 2021
1f422e8
refactor: remove unnecessary export
tzachbon Oct 21, 2021
19c3566
fix: build dependency not from the current scope
tzachbon Oct 24, 2021
19460b5
test: fix flakyness from index watch file test
tzachbon Oct 24, 2021
0eccf46
feat: use simplefied version of outputFiles
tzachbon Oct 24, 2021
6e3f9ee
Revert "feat: use simplefied version of outputFiles"
tzachbon Oct 24, 2021
a4e18ba
feat: handle invalidation from the watcher dependencies and clean-up
tzachbon Oct 25, 2021
972fc77
fix: send only relevant affected files to the process
tzachbon Oct 25, 2021
0378b0f
feat: create resolver cache pre instace
tzachbon Oct 25, 2021
bc737a8
test: fake timeout to check flakyness
tzachbon Oct 25, 2021
aef2a76
feat: remove multiple projects watch mode temporary
tzachbon Oct 25, 2021
8397612
feat: top-level project watcher
tzachbon Oct 25, 2021
7cb6865
feat: add more descriptive logging for the watch service
tzachbon Oct 25, 2021
ea07265
feat: give identifier to each build
tzachbon Oct 26, 2021
6e5d08c
feat: optimize watch cache
tzachbon Oct 27, 2021
ec2eff5
feat: dedicated validation method for options
tzachbon Oct 27, 2021
ecdf641
refactor: remove unused method
tzachbon Oct 27, 2021
b5266c5
refactor: remove array-from from invalidate cache method
tzachbon Oct 28, 2021
b9c0de9
fix: single project identifier name
tzachbon Oct 28, 2021
602332f
fix: circular assets build inside conflicting src and out dirs betwee…
tzachbon Oct 28, 2021
1999f27
feat: logs clean-up
tzachbon Oct 31, 2021
cfd70e2
test: normalize path in the cli output
tzachbon Oct 31, 2021
83d93ba
fix: remove duplicate out and src file invalidation registration
tzachbon Oct 31, 2021
4cb8087
refactor: use dedicate log method in directories handler
tzachbon Oct 31, 2021
fb7c72e
refactor: sperate process project related method to a dedicated file …
tzachbon Oct 31, 2021
5612266
refactor: split processProjects method to new file and name changes
tzachbon Oct 31, 2021
600ae0d
refactor: rename resolve-requests variables and leaving helpful comments
tzachbon Oct 31, 2021
2ee33da
refactor: create output messages file and use it inside the build pro…
tzachbon Oct 31, 2021
7ecd091
refactor: use messages inside directories handler
tzachbon Oct 31, 2021
fe212a2
test: use native sep in cli-watch
tzachbon Nov 1, 2021
b64ad8a
test: fix native sep in circular build test
tzachbon Nov 1, 2021
592a81e
feat: log projects diagnostics properly
tzachbon Nov 1, 2021
e3332a7
refactor: move directory process types
tzachbon Nov 1, 2021
b31d125
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 1, 2021
29f05f1
fix: use topological sort always in default resolve-request
tzachbon Nov 2, 2021
8f0de60
test: fix test fixture
tzachbon Nov 2, 2021
d267133
test: simulate projects with `node_modules`
tzachbon Nov 3, 2021
e366f86
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 3, 2021
7d7d276
fix: js mixin does not trigger build in watch mode
tzachbon Nov 4, 2021
331fd1d
test: import from inner part of package
tzachbon Nov 4, 2021
35fa29a
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 4, 2021
fd46fba
fix: project values type
tzachbon Nov 4, 2021
57d11fe
test: fix test title
tzachbon Nov 4, 2021
f25c127
infra: limit the number of jobs in the test runner (#2140)
tzachbon Nov 4, 2021
5f162f1
chore(deps): bump css-loader from 6.5.0 to 6.5.1 (#2142)
dependabot[bot] Nov 4, 2021
4734cca
chore(deps-dev): bump mini-css-extract-plugin from 2.4.3 to 2.4.4 (#2…
dependabot[bot] Nov 4, 2021
b0fd43b
chore(deps): bump loader-utils from 3.1.0 to 3.1.3 (#2144)
dependabot[bot] Nov 5, 2021
1de12a8
v4.8.0
tomrav Nov 7, 2021
d9a338e
feat(core): export parseStylableImport (#2145)
barak007 Nov 7, 2021
632d147
Merge branch 'master' into tzach/handle-mupltiple-stylable-projects
tzachbon Nov 8, 2021
ac1425d
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 14, 2021
d9929cf
feat: support configuration object
tzachbon Nov 14, 2021
0201893
types: presets types
tzachbon Nov 16, 2021
fadffda
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 16, 2021
d933013
types: fix process projects generic type
tzachbon Nov 16, 2021
3763111
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 21, 2021
c5ee7aa
infra: update lock file with resolve directory context
tzachbon Nov 21, 2021
ec3ab88
fix: merge #2135 pr api changes
tzachbon Nov 21, 2021
80ad33c
fix: handle failed module resolutaion
tzachbon Nov 21, 2021
d39439f
fix: initial diagnostics report on watch mode
tzachbon Nov 21, 2021
0cd79e2
fix: resolve path only when resolved imported is exists
tzachbon Nov 21, 2021
9a4e002
feat: top level file processor cache
tzachbon Nov 22, 2021
82b785d
fix: add linked log in the build process
tzachbon Nov 22, 2021
a1786f2
fix: reorder cli package dependencies
tzachbon Nov 22, 2021
49f3960
test: try realpath on the tempdir
tzachbon Nov 22, 2021
8126c82
typo
tzachbon Nov 22, 2021
bf8cc04
refactor: renames and clean-ups
tzachbon Nov 22, 2021
d227aac
refactor: rename builds-handler file
tzachbon Nov 22, 2021
f26c852
test: move realpath assignment to the watch handler
tzachbon Nov 22, 2021
a7c6e55
chore: clean un-used import
tzachbon Nov 22, 2021
9eeb65e
Revert "test: move realpath assignment to the watch handler"
tzachbon Nov 24, 2021
c88112e
Revert "chore: clean un-used import"
tzachbon Nov 24, 2021
c99316e
chore: small builds handler fixes
tzachbon Nov 24, 2021
815a381
chore(deps-dev): upgrade to latest stable
AviVahl Nov 21, 2021
f65b413
chore(deps-dev): bump @types/react from 17.0.35 to 17.0.36 (#2177)
dependabot[bot] Nov 22, 2021
46b7f4c
chore(deps-dev): bump rollup from 2.60.0 to 2.60.1 (#2176)
dependabot[bot] Nov 22, 2021
b9c49a2
chore(deps-dev): bump jsdom from 18.1.0 to 18.1.1 (#2175)
dependabot[bot] Nov 22, 2021
09c5b6e
chore(deps): bump vscode-languageserver-textdocument from 1.0.2 to 1.…
dependabot[bot] Nov 23, 2021
d2c1f5c
docs: fix broken link (#2180)
GaxZE Nov 24, 2021
ee77748
chore: builds handler clean-ups
tzachbon Nov 24, 2021
c6298d5
feat: use custom clear method
tzachbon Nov 24, 2021
11eb31a
infra: require browser-server only when it necessary in vscode launch…
tzachbon Nov 24, 2021
11f94d4
chore(deps-dev): bump webpack from 5.64.2 to 5.64.3 (#2182)
dependabot[bot] Nov 24, 2021
8c26ca1
chore(deps): [email protected], latest others
AviVahl Nov 25, 2021
fd4a683
chore(deps-dev): bump webpack from 5.64.3 to 5.64.4 (#2185)
dependabot[bot] Nov 26, 2021
29a20e2
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Nov 29, 2021
de9c4a3
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 1, 2021
6f9c0d3
feat: use stylable init cache filter
tzachbon Dec 1, 2021
b36242c
test: assert report diagnostics before watch
tzachbon Dec 5, 2021
c999380
feat: diagnostic manager
tzachbon Dec 5, 2021
23334db
refactor: cli test-kit clean-ups
tzachbon Dec 5, 2021
c5f44dd
chore(deps-dev): upgrade to latest stable
AviVahl Dec 2, 2021
37807c1
chore(deps-dev): bump jsdom from 18.1.1 to 19.0.0 (#2190)
dependabot[bot] Dec 3, 2021
cbf85b6
chore(deps): bump decache from 4.6.0 to 4.6.1 (#2191)
dependabot[bot] Dec 3, 2021
beec15d
use IStylableOptimizer in webpack config (#2181)
barak007 Dec 5, 2021
9edbcb2
fix(jest): export create createTransformer named for interop (#2187)
barak007 Dec 5, 2021
d964654
v4.9.0
tzachbon Dec 5, 2021
38357cb
fix: update package-lock.json
tomrav Dec 5, 2021
1d744dd
refactor: remove unused const in cli test-kit
tzachbon Dec 6, 2021
c420eb6
fix: allow sleep to be 0 in cli test-kit
tzachbon Dec 6, 2021
f0577a7
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 6, 2021
425f549
fix: set diagnostics clean-ups and fix typos
tzachbon Dec 6, 2021
776d1e6
refactor: builds handler clean-ups
tzachbon Dec 9, 2021
d81f19c
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 12, 2021
11f626a
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 13, 2021
9ac5f2f
fix: use st-import feature for diagnostic in cli test
tzachbon Dec 13, 2021
e561a75
test: try SIGINT signal in killing child processes
tzachbon Dec 13, 2021
931c556
refactor: move cli-test-kit to e2e-test-kit
tzachbon Dec 15, 2021
72437fe
refactor(e2e-test-kit): renaming in populateDirectorySync
tzachbon Dec 15, 2021
5e538a2
feat(cli): graceful shutdown
tzachbon Dec 15, 2021
6393adc
test: fix fixture and expected output
tzachbon Dec 16, 2021
821f720
docs(cli): multi-projects and config file
tzachbon Dec 16, 2021
f9ca631
test: log cli watch test output
tzachbon Dec 16, 2021
969b31a
test: add warning stack for testing memory leak
tzachbon Dec 16, 2021
552a402
test: more stack traces
tzachbon Dec 16, 2021
fec9e1f
test: keep only mac test in CI
tzachbon Dec 16, 2021
d74537a
test: console line
tzachbon Dec 16, 2021
21c896b
Revert "test: keep only mac test in CI"
tzachbon Dec 19, 2021
e1dafbf
docs: small text fixes
tzachbon Dec 19, 2021
363c65c
fix: watch-handler refactor and better clean-up on dispose
tzachbon Dec 19, 2021
ff23ce9
fix: dispose only the relevant paths and clear watched directories
tzachbon Dec 19, 2021
8a6294f
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 20, 2021
740c90d
test: remove all memory-leak debugging related logs
tzachbon Dec 20, 2021
e14dc43
fix: update build comments
tzachbon Dec 20, 2021
bf96987
fix: remove unnecessary info logs
tzachbon Dec 20, 2021
f65a604
fix: remove unused import
tzachbon Dec 20, 2021
4e08746
test: use verbose
tzachbon Dec 20, 2021
4a752c1
remove only...
tzachbon Dec 20, 2021
ee204c4
refactor: rename messages to process messages
tzachbon Dec 21, 2021
abc52e4
refactor: build process identifier
tzachbon Dec 21, 2021
de83829
refactor: move src dir and out dir validation test
tzachbon Dec 21, 2021
0ed2d95
Revert "refactor: build process identifier"
tzachbon Dec 21, 2021
edb69e2
fix: graceful error handling in the build process
tzachbon Dec 21, 2021
ae8872e
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 23, 2021
c393701
types: clean-ups
tzachbon Dec 23, 2021
288d983
refactor: rename index generator
tzachbon Dec 24, 2021
4bad20e
fix: remove extension opition
tzachbon Dec 26, 2021
d233d06
test: fix index-generator fixture
tzachbon Dec 26, 2021
1246c69
refactor: add timeout for cli tests to hunt flakiness
barak007 Dec 26, 2021
81c09dd
fix: remove resolve
tzachbon Dec 26, 2021
352ea74
fix: normilize error
tzachbon Dec 26, 2021
1fd6139
refactor: manifest
tzachbon Dec 26, 2021
2776a30
test: fix generator name
tzachbon Dec 26, 2021
3a38776
refactor: directory process clean-ups
tzachbon Dec 26, 2021
8f6d215
test: fix comment
tzachbon Dec 26, 2021
77cbafd
docs: mark option as advanced
tzachbon Dec 27, 2021
4f886cf
types: remove extends from multiple project config interface
tzachbon Dec 27, 2021
20619b8
refactor: delete old comment
tzachbon Dec 27, 2021
4a0bbd3
refactor: use to eql assertion
tzachbon Dec 27, 2021
fda8ac4
refactor: clarify assertions
tzachbon Dec 27, 2021
cc5b0f8
test: add extra step to the rebuild indexes
tzachbon Dec 27, 2021
d82c4dd
test: split watch tests to different files
tzachbon Dec 27, 2021
b20b225
fix: adjust watch logs
tzachbon Dec 27, 2021
ef2ae56
test: remove unused imports
tzachbon Dec 27, 2021
2f25b81
test: use different watch log for the step
tzachbon Dec 27, 2021
7620f11
test: remove only from test
tzachbon Dec 27, 2021
f47c207
test: revert to the old log with comments
tzachbon Dec 27, 2021
701b7f0
fix: do not clear when log is verbose
tzachbon Dec 27, 2021
d91724e
refactor: more CLI logs
tzachbon Dec 27, 2021
f153c1d
test: add circular assets watch test
tzachbon Dec 27, 2021
8363fc1
fix: remove unnecessary listeners to the out directory
tzachbon Dec 27, 2021
cf3549c
feat: dedup diagnostics
tzachbon Dec 29, 2021
c051c59
fix: create index file when srcDir is parent directory of outDir
tzachbon Dec 29, 2021
f0922a2
feat: register multiple source files to a single output
tzachbon Dec 29, 2021
4f5e161
refactor: rename type to build context
tzachbon Dec 29, 2021
805a60b
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 29, 2021
98d259f
refactor: move resolve namespace outside the loop
tzachbon Dec 29, 2021
c8842ae
refactor: renames and extracting the createBuildIdentifier method
tzachbon Dec 29, 2021
eb195e4
refactor: inline BaseEntity type
tzachbon Dec 29, 2021
7c9dd3c
fix: add the request to the duplicate request error
tzachbon Dec 29, 2021
ff34421
docs: add explanation for using outputFiles in the invalidation method
tzachbon Dec 29, 2021
40dd83a
types: move ProcessProjectsOptions to the relevant file
tzachbon Dec 29, 2021
1fd8a63
infra: add cli watch test timeout as env variable to the launch json …
tzachbon Dec 29, 2021
30e8326
refactor: move directory process types
tzachbon Dec 29, 2021
25bdd31
refactor: remove unnecessary variables
tzachbon Dec 29, 2021
bc637c0
test: increase cli timeout to 10 seconds
tzachbon Dec 29, 2021
6bfaef1
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Dec 29, 2021
75dee5e
refactor: rename to buildMessages
tzachbon Dec 29, 2021
e8f7f59
feat: log 0 diagnostics message after watch event
tzachbon Dec 29, 2021
c30692e
feat: auto-ref builds in watch mode
tzachbon Dec 30, 2021
487656f
fix: return only the process generated files
tzachbon Jan 1, 2022
f50e75e
docs: documentaion multiple projects type's generic name
tzachbon Jan 2, 2022
4b0c96c
refactor: rename projectRoot to rootDir in resolve projects context
tzachbon Jan 2, 2022
86ead7d
fix: add build-tools to the ts refernces
tzachbon Jan 2, 2022
ee7cde4
refactor: logger api
tzachbon Jan 2, 2022
37f6798
feat: decouple programmatic API from CLI implementation
tzachbon Jan 2, 2022
1b0bf8d
fix: cli output is not added to the lines array when awaiting for set…
tzachbon Jan 2, 2022
74b7535
docs: readme fixes
tzachbon Jan 3, 2022
1b9a740
Merge remote-tracking branch 'origin/master' into tzach/handle-muplti…
tzachbon Jan 3, 2022
7ec50cd
feat: add callback for SIGINT
tzachbon Jan 3, 2022
78bc0d8
refactor: rename cli processes variable
tzachbon Jan 3, 2022
be57c7d
test: fix watch messages
tzachbon Jan 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"skipFiles": ["<node_internals>/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"env": {
"FILE": "${file}"
"FILE": "${file}",
"CLI_WATCH_TEST_TIMEOUT": "999999"
}
},
{
Expand Down
67 changes: 49 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading