259 Commits

Author SHA1 Message Date
Jason Jean
4d6b5ff7af
fix(core): fix reading project config when nx.json doesn't have projects (#6802) 2021-08-20 20:19:02 -06:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04:00
Nrwl CI Machine
5f02a10ac9 feat(core): add an ability to extend nx.json config 2021-08-17 14:44:41 -04:00
Nrwl CI Machine
bc4ec52f53 cleanup(misc): avoid importing rxjs in the core path 2021-08-06 16:29:16 -04:00
Leosvel Pérez Espinosa
3fb591fbd9
fix(misc): read settings in .editorconfig when formatting files in generators (#6616) 2021-08-05 16:02:45 +01:00
Leosvel Pérez Espinosa
5037f2ca6e
feat(core): add devkit tree method to change the permissions of a file (#6598) 2021-08-04 16:49:41 +01:00
Miroslav Jonaš
3aca62af68
cleanup(repo): remove unused ext from file data and fix ext regex matcher (#6550) 2021-08-04 09:45:07 -04:00
Edouard Bozon
5a9303784c
feat(devkit): make nx.json optional (#6398)
* feat(devkit): make nx.json optional (#5678)

Allow project configuration functions to work without nx.json configuration file, this is particulary handy for regular Angular CLI projects.

* docs(devkit): make `NxJsonConfiguration` partial

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-07-29 17:02:07 -04:00
erikagiroux
9f1e530cef
fix(devkit): add font file extensions to binaryExts in generate-files.ts (#6439)
Add font file extensions to the list of extensions that should not be rendered with ejs

ISSUES CLOSED: #5213

Co-authored-by: egiroux <erika.giroux@ubisoft.com>
2021-07-29 15:51:24 -04:00
Jason Jean
89a4ac29b2
cleanup(devkit): rename all variable names of host to tree (#6541) 2021-07-29 15:46:41 -04:00
Leosvel Pérez Espinosa
7d6837ce41
fix(misc): fix moving projects with standalone configuration (#6521) 2021-07-29 14:15:02 -04:00
vsavkin
0e52c43665 feat(core): store file deps and only reanalyze changed files 2021-07-16 20:21:45 -04:00
Jason Jean
769758d9cf
fix(devkit): do not update unknown properties to workspace configuration (#6388) 2021-07-15 23:53:05 +00:00
Craigory V Coppola
6ef8afbfd9
fix(core): wrapped angular schematics should be able to update newly created standalone projects (#6351)
* fix(core): wrapped angular schematics should be able to update newly created standalone projects

Wrapped angular schematics inside of generators should be able to update a newly created standalone
project configuration

ISSUES CLOSED: #6342

* fix(core): angular devkit schematics should normalize project paths before writing

Wrapped angular schematics inside of generators should be able to update a newly created
standalone
project configuration
ISSUES CLOSED: #6342

ISSUES CLOSED: #6353

* fix(core): wrapped angular-devkit schematics should pick up standaloneAsDefault

ISSUES CLOSED: #6354
2021-07-15 10:40:15 -04:00
Craigory V Coppola
84b40c8b85
fix(misc): @nrwl/workspace:rm generator should work with standalone configs (#6348)
* fix(devkit): removeProjectConfiguration should remove path for project.json from workspace.json

When using standalone config files, removing a project's config should also remove its entry in the
workspace file.

* fix(misc): @nrwl/workspace:rm should work with standalone config files

When using standalone config files, removing a project's config should also remove its entry in
the
workspace file.
2021-07-15 10:36:48 -04:00
Huynh Ninh Binh
ec1ab55f80
fix(devkit): module of classname should be capitalized when generated with special characters in a directory (#6283)
ISSUES CLOSED: #6281
2021-07-12 10:51:03 -04:00
Craigory V Coppola
23e21d0995
fix(core): project.json split should be remembered if all projects utilize it (#6180) 2021-07-08 23:35:57 +00:00
Craigory V Coppola
651ba3649c
fix(core): project.json files are not being used with wrapAngularDevkitSchematic (#6276)
ISSUES CLOSED: #6271 #6272
2021-07-08 17:18:18 -04:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -04:00
Kyle Bastien
9be7a101d9
chore(core): add missing dependencies to devkit and jest package.json (#6233) 2021-07-05 16:49:38 -04:00
Colum Ferry
dd51c18d12
feat(angular): init mfe generator (#6209)
Add generator to scaffold Module Federation configuration for a given Angular application
2021-07-02 13:45:36 +01:00
Jason Jean
8ac7519ada feat(core): introduce batch executors 2021-06-28 14:46:53 -04:00
Craigory V Coppola
7c7191a2f9
docs(core): docs for project.json files + associated generator (#6107)
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-06-28 10:20:11 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
Phillip Barta
5e6cf9646b feat(devkit): reexport package manager methods in devkit 2021-06-25 17:07:35 -04:00
Craigory V Coppola
f1911a71f3
feat(core): split nx config to project files (#5880) 2021-06-22 20:30:38 -04:00
Benjamin Cabanes
09fa02112b
docs(core): correctly format function comments for doc generation (#6055) 2021-06-17 18:32:06 +00:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Jonathan Cammisuli
5b2e594b62
feat(core): sort projects in nx.json, workspace.json, and tsconfig.base.json (#5945)
* feat(core): sort projects in nx.json, workspace.json, and tsconfig.base.json

* fix(core): catch errors when trying to format

* chore(core): use existing sort util - rename new sort util to match (will soon be merged)

* fix(core): only sort workspace.projects if they have projects

* fix(core): remove sort from old format-files

* fix(core): noop catches rather and outputting an error message

* chore(core): revert format-files utils
2021-06-11 17:54:29 -04:00
Jason Jean
d8cd8621a2
fix(devkit): include targetDependencies and plugins when updating workspace config (#5898) 2021-06-10 10:37:58 -04:00
Phillip Barta
a2c2d94050
feat(core): first step to common JSON behavior and common fileutils (#5859) 2021-06-09 12:45:16 +02:00
Colum Ferry
fd27615514
chore(angular): ast utils for angular with nx devkit (#5927) 2021-06-09 10:35:09 +01:00
Phillip Barta
6c6e8b36b7 feat(devkit): refactoring for stricter types and better performance 2021-05-27 13:37:29 -04:00
Leosvel Pérez Espinosa
d0afa3dd89
feat(angular): add executor which allows to delegate the build to another target (#5715) 2021-05-20 12:29:46 +01:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Miroslav Jonaš
ff3cc38b0c
feat(linter): optimize lint performance. resolves #5210 (#5576)
* feat(linter): optimize containsFile function

related to #5210

* feat(linter): optimize find project function

related to #5210

* feat(core): cleanup target project locator

* fix(core): fix false positive match on resolvedModule

* chore(core): mark old code for removal

* feat(linter): move npm check before expensive typescript resolution

* feat(linter): improve performance of extension removal

* feat(linter): improve I/O operations

* feat(linter): read ts config only once in project locator

* feat(linter): remove double path normalization from rule

normalization is already part of getSourceFilePath function

* feat(linter): run find source only once

* feat(linter): defer source file path calculation will after whitelist check

* feat(linter): map project graph node files to hash map

* fix(linter): map projectGraph only once per runtime

* feat(linter): introduce mapped project graph type
2021-05-18 16:41:12 +02:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
puku0x
568cf8cf73 feat(devkit): pretty json on generating a project 2021-05-04 15:25:30 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Phillip Barta
c0ce1ce65e
cleanup(core): normalized usage of fs-extra and updated fs-extra to 9.1.0 (#5199)
* cleanup(core): normalized usage of fs-extra and updated fs-extra

* cleanup(misc): use fs over fs-extra when possible

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-04-22 12:52:52 -04:00
Juri Strumpflohner
90b83dab7b
feat(devkit): improve logging of ejs errors (#5422)
ISSUES CLOSED: #5318
2021-04-21 23:09:40 +00:00
Jason Jean
7358420068
feat(core): allow defining target deps (#5376)
feat(core): add an ability for targets to depend on other targets
2021-04-19 20:32:46 -04:00
Phillip Barta
6bd6e1485f
feat(core): added package manager union type (#5378)
cleanup(misc): add package manager union type
2021-04-19 15:24:02 -04:00
vsavkin
ba84a17b6d cleanup(misc): require ejs lazily to speed up load time 2021-04-16 09:25:04 -04:00
Phillip Barta
edf0734657 chore(repo): updated dependency 'strip-json-comments' 2021-04-16 08:44:21 -04:00
Juri
0f08149021 fix(devkit): devkitTreeFromAngularDevkitTree exists function should also work on dirs
ISSUES CLOSED: #5318
2021-04-14 08:35:22 -04:00
Jason Jean
a01ea8ce25
docs(devkit): initial project graph plugin guide (#5281) 2021-04-08 12:38:49 -04:00
Jason Jean
a608748388
feat(core): add plugins for project-graph analysis wip (#5255) 2021-04-07 16:21:52 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00