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: angular package format #1474

Merged
merged 30 commits into from
May 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
05f3ea6
build: add es2015 bundle
yggg Feb 19, 2019
0276c13
refactor(option): remove forwardRef usages
yggg May 14, 2019
49fafba
feat: add path to es2015 bundle in package.json
yggg Feb 19, 2019
c3b1cd5
feat(packages-smoke): add smoke test for es2015 build
yggg Feb 22, 2019
bd70cd3
fix: rename files to be different than containing directory
yggg May 16, 2019
a7ba9da
fix: move layout component class declaration to the top
yggg May 16, 2019
3591cc6
fix: remove barrel imports
yggg May 17, 2019
c46dbd1
fix: remove barrel imports
yggg May 17, 2019
520cef4
fix: remove barrel imports
yggg May 17, 2019
59e15d1
refactor: remove deprecated plugin
yggg May 19, 2019
b282d09
feat: add gulp run sequence
yggg May 19, 2019
54b8d2a
refactor: rename index to public_api
yggg May 20, 2019
5c1cee1
refactor: remove entry points from package.json
yggg May 20, 2019
73260ec
feat: specify libraries does not introduce side effects
yggg May 20, 2019
0e28d5e
build: add es2015 and flat modules bundles
yggg May 20, 2019
2871040
feat: include schematics in build
yggg May 21, 2019
f0bf561
feat(schematics): test task
yggg May 21, 2019
5423ee3
Merge branch 'master' into feat/ng8-es2015-bundle
yggg May 21, 2019
55e1132
fix: remove cdk mappings from public api
yggg May 21, 2019
4f9ee79
Merge remote-tracking branch 'origin/feat/ng8-es2015-bundle' into fea…
yggg May 21, 2019
78d60a3
fix: add missing overlay exports
yggg May 21, 2019
c9d3b54
style: remove whitespace
yggg May 21, 2019
ded03b1
refactor: use existing build command
yggg May 21, 2019
7d4334c
fix: update paths
yggg May 21, 2019
27c3966
fix: remove barrels from auth package
yggg May 21, 2019
4fabf34
feat: prevent imports from public api
yggg May 21, 2019
f090eb5
fix(test): import by direct paths
yggg May 21, 2019
c15e9b6
refactor: remove commented lines
yggg May 22, 2019
9d0cebd
docs: specify path to config file
yggg May 22, 2019
3ef9057
refactor: remove unnecessary flag
yggg May 22, 2019
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
Prev Previous commit
Next Next commit
feat(schematics): test task
  • Loading branch information
yggg committed May 21, 2019
commit f0bf5610c9e02ea544c0784269d515615a772c0e
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"test:wp": "npm run test -- playground-wp",
"test:watch": "ng test playground-wp --watch",
"test:coverage": "rimraf coverage && ng test playground --code-coverage --watch=false",
"test:schematics": "rimraf ./src/.lib && gulp build-packages-schematics && jasmine ./src/.lib/**/*.spec.js",
"test:schematics": "rimraf ./src/.lib && gulp build-packages-schematics-for-test && jasmine ./src/.lib/**/*.spec.js",
"lint": "ng lint playground --type-check",
"lint:styles": "stylelint ./src/framework/**/*.scss && stylelint ./docs/**/*.scss",
"lint:fix": "npm run lint -- --fix",
Expand Down
8 changes: 8 additions & 0 deletions scripts/gulp/tasks/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ task('build-packages-schematics', (done) => {
);
});

task('build-packages-schematics-for-test', (done) => {
runSequence(
'compile-packages-schematics-for-test',
'copy-packages-schematics-resources-for-test',
done,
);
});

task('build-development-schematics', (done) => {
runSequence(
'compile-development-schematics',
Expand Down
4 changes: 4 additions & 0 deletions scripts/gulp/tasks/build/compile/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ task('compile-packages-schematics', () => {
return tsCompile('tsc', ['-p', 'tsconfig.schematics.publish.json']);
});

task('compile-packages-schematics-for-test', () => {
return tsCompile('tsc', ['-p', 'tsconfig.schematics.json']);
});

task('compile-development-schematics', () => {
return tsCompile('tsc', ['-p', `${DEV_SCHEMATICS_PATH}/tsconfig.json`]);
});
Expand Down
12 changes: 9 additions & 3 deletions scripts/gulp/tasks/build/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ task('copy-packages-resources', () => {

task('copy-packages-schematics-resources', () => {
const paths = JS_PACKAGES.reduce((allPaths: string[], packageName: string) => {
const packagePaths = schematicFilePaths(`${SOURCE_DIR}/${packageName}/schematics`);

return allPaths.concat(packagePaths);
return allPaths.concat(schematicFilePaths(`${SOURCE_DIR}/${packageName}/schematics`));
}, []);

return src(paths, { base: SOURCE_DIR }).pipe(dest(LIB_DIR));
});

task('copy-packages-schematics-resources-for-test', ['copy-packages-schematics-resources'], () => {
return src(
JS_PACKAGES.map(packageName => `${SOURCE_DIR}/${packageName}/package.json`),
{ base: SOURCE_DIR },
)
.pipe(dest(LIB_DIR));
});

task('copy-development-schematics-resources', () => {
return src(schematicFilePaths(DEV_SCHEMATICS_PATH))
.pipe(dest(`${DEV_SCHEMATICS_PATH}/dist`));
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.schematics.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"./src/framework/**/schematics/**/*"
],
"exclude": [
"./src/framework/**/schematics/**/files/**/*"
"./src/framework/**/schematics/**/files/**/*",
"./src/framework/**/schematics/**/*.spec.ts"
]
}