Skip to content

Commit

Permalink
refactor(@angular-devkit/core): move existing workspace API under exp…
Browse files Browse the repository at this point in the history
…erimental

This API is already experimental.  The move allows for the new stable API to use the "workspace" directory structure and to also better signify that the existing API is in fact experimental and subject to change or removal.
  • Loading branch information
clydin authored and hansl committed Mar 6, 2019
1 parent 309b483 commit 263231e
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/angular_devkit/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ ts_library(
"@npm//@types/jasmine",
],
data = [
"src/workspace/workspace-schema.json",
"src/workspace/test/test-workspace.json"
"src/experimental/workspace/workspace-schema.json",
"src/experimental/workspace/test/test-workspace.json"
],
testonly = True,
# @external_begin
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/_golden-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
export * from './exception/exception';

// Start experimental namespace
export * from './workspace/index';
export * from './experimental/workspace/index';
// End experimental namespace

// Start json namespace
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import * as jobs from './experimental/jobs/index';
import * as workspace from './workspace/index';
import * as workspace from './experimental/workspace/index';

export {
jobs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ import { existsSync } from 'fs';
import * as path from 'path';
import { Observable, of, throwError } from 'rxjs';
import { concatMap, first, map, tap } from 'rxjs/operators';
import { BaseException } from '../exception';
import { BaseException } from '../../exception';
import {
JsonObject,
JsonParseMode,
parseJson,
schema,
} from '../json';
} from '../../json';
import {
Path,
basename,
dirname,
isAbsolute,
join,
normalize,
relative, resolve, virtualFs,
} from '../virtual-fs';
relative,
resolve,
virtualFs,
} from '../../virtual-fs';
import { WorkspaceProject, WorkspaceSchema, WorkspaceTool } from './workspace-schema';


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
// tslint:disable:no-big-function

import { tap } from 'rxjs/operators';
import { schema } from '..';
import { NodeJsSyncHost } from '../../node';
import { AdditionalPropertiesValidatorError } from '../json/schema/interface';
import { dirname, join, normalize } from '../virtual-fs';
import { schema } from '../..';
import { NodeJsSyncHost } from '../../../node';
import { AdditionalPropertiesValidatorError } from '../../json/schema/interface';
import { dirname, join, normalize } from '../../virtual-fs';
import {
ProjectNotFoundException,
Workspace,
Expand Down

0 comments on commit 263231e

Please sign in to comment.