This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Commit e7f122b
committed
build: update build process to only bundle .js and .d.ts files
This PR is meant to stop packaging full TypeScript files in the
library. This breaks testing capabilities in Angular, and is
overall unnecessary. Instead, we transpile all files using tsc
into a separate directory, and only publish that directory, with
the root files (index.js and index.d.ts) specified in package.json.
There are no breaking changes in this PR, but if you are building
from source, please make sure to update your dev dependencies.
* add outDir to tsconfig for bundling
* upgrade to angular v5 and use new compiler instead of just tsc
* clean up package.jsom npm scripts
* add exports to index.ts to allow for root import
* move inline builder to separate directory
* add dev dependencies for TypeScript building
* add files and directories to npmignore to allow for root packaging
* move protractor config to root level
* change webpack to use ts-loader
* Fixes #49
BREAKING CHANGE:
Due to the change in how folders are exported, all imports from
`preboot` must come as a root import, e.g.
`import {ServerPrebootModule} from 'preboot';` instead of
`import {ServerPrebootModule} from 'preboot/server';`1 parent 9576ece commit e7f122b
File tree
24 files changed
+5171
-81
lines changed- build
- src
- browser
- server
- test/e2e
24 files changed
+5171
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
This file was deleted.
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments