@travetto/pack 3.0.0-rc.2 → 3.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/__index__.ts +1 -0
- package/package.json +16 -11
- package/support/bin/config.ts +81 -0
- package/support/bin/docker-operation.ts +96 -0
- package/support/bin/operation.ts +273 -0
- package/support/bin/rollup-esm-dynamic-import.ts +55 -0
- package/support/bin/rollup.ts +36 -0
- package/support/bin/shell.ts +53 -0
- package/support/bin/types.ts +70 -0
- package/support/bin/util.ts +63 -0
- package/support/cli.pack.ts +14 -0
- package/support/cli.pack_docker.ts +48 -0
- package/support/cli.pack_zip.ts +24 -0
- package/support/pack.base.ts +150 -0
- package/support/pack.dockerfile.ts +9 -0
- package/bin/cli-pack.ts +0 -10
- package/bin/cli-pack_assemble.ts +0 -21
- package/bin/cli-pack_docker-export.ts +0 -54
- package/bin/cli-pack_docker.ts +0 -29
- package/bin/cli-pack_zip.ts +0 -19
- package/bin/lib/assemble.ts +0 -151
- package/bin/lib/dependencies.ts +0 -103
- package/bin/lib/types.ts +0 -19
- package/bin/lib/util.ts +0 -175
- package/bin/operation/assemble.ts +0 -75
- package/bin/operation/docker.ts +0 -96
- package/bin/operation/pack.ts +0 -69
- package/bin/operation/zip.ts +0 -51
- package/bin/pack-base.ts +0 -100
- package/index.d.ts +0 -5
- package/support/pack.config.ts +0 -66
package/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { AllConfig, AllConfigPartial } from './bin/operation/pack';
|
|
2
|
-
export { CommonConfig } from './bin/lib/types';
|
|
3
|
-
export { AssembleConfig } from './bin/operation/assemble';
|
|
4
|
-
export { ZipConfig } from './bin/operation/zip';
|
|
5
|
-
export { DockerConfig } from './bin/operation/docker';
|
package/support/pack.config.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { AllConfigPartial } from '../bin/operation/pack';
|
|
2
|
-
|
|
3
|
-
const mod = (f: string): string => `node_modules/${f}`;
|
|
4
|
-
|
|
5
|
-
export const config: AllConfigPartial = {
|
|
6
|
-
name: 'default',
|
|
7
|
-
assemble: {
|
|
8
|
-
active: true,
|
|
9
|
-
cacheDir: 'cache',
|
|
10
|
-
keepSource: true,
|
|
11
|
-
readonly: true,
|
|
12
|
-
env: {
|
|
13
|
-
TRV_DYNAMIC: '0'
|
|
14
|
-
},
|
|
15
|
-
add: [
|
|
16
|
-
{ [mod('@travetto/cli/bin/trv.js')]: mod('.bin/trv') },
|
|
17
|
-
{ [mod('lodash/lodash.min.js')]: mod('lodash/lodash.js') },
|
|
18
|
-
],
|
|
19
|
-
excludeCompile: [
|
|
20
|
-
mod('@travetto/*/doc/'),
|
|
21
|
-
mod('@travetto/*/e2e/'),
|
|
22
|
-
mod('@travetto/*/test/'),
|
|
23
|
-
],
|
|
24
|
-
exclude: [
|
|
25
|
-
'bower.json',
|
|
26
|
-
'LICENSE',
|
|
27
|
-
'LICENCE',
|
|
28
|
-
'*.map',
|
|
29
|
-
'*.md',
|
|
30
|
-
'*.lock',
|
|
31
|
-
'*.html',
|
|
32
|
-
'*.mjs',
|
|
33
|
-
mod('**/*.ts'),
|
|
34
|
-
'*.d.ts',
|
|
35
|
-
'*.tsbuildinfo',
|
|
36
|
-
'*.java',
|
|
37
|
-
'*.markdown',
|
|
38
|
-
'.eslintrc',
|
|
39
|
-
'.npmignore',
|
|
40
|
-
'.*.yml',
|
|
41
|
-
'cache/compiler.*.log',
|
|
42
|
-
mod('faker'),
|
|
43
|
-
mod('lodash/lodash.min.js'),
|
|
44
|
-
mod('source-map-support/node_modules/source-map'),
|
|
45
|
-
mod('source-map-support/browser-source-map-support.js'),
|
|
46
|
-
mod('bson/browser_build/'),
|
|
47
|
-
mod('**/tsconfig.json'),
|
|
48
|
-
mod('**/tsconfig.*.json'),
|
|
49
|
-
mod('@travetto/*/doc.ts'),
|
|
50
|
-
mod('typescript/'),
|
|
51
|
-
mod('@types/'),
|
|
52
|
-
`^./${mod('@travetto/**/*.ts')}`,
|
|
53
|
-
`^./${mod('@travetto/boot/tsconfig.trv.json')}`,
|
|
54
|
-
'^./resources/',
|
|
55
|
-
'^./src/',
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
zip: {
|
|
59
|
-
active: false,
|
|
60
|
-
output: 'output.zip'
|
|
61
|
-
},
|
|
62
|
-
docker: {
|
|
63
|
-
active: false,
|
|
64
|
-
image: 'node:16-alpine'
|
|
65
|
-
}
|
|
66
|
-
};
|