@travetto/pack 3.3.5 → 3.4.0-rc.0
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 +8 -8
- package/package.json +8 -8
- package/support/bin/operation.ts +1 -1
- package/support/pack.base.ts +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Options:
|
|
|
34
34
|
-o, --output <string> Output location
|
|
35
35
|
--main-scripts, --no-main-scripts Create entry scripts (default: true)
|
|
36
36
|
-f, --main-name <string> Main name for build artifact
|
|
37
|
-
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.
|
|
37
|
+
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
|
|
38
38
|
--minify, --no-minify Minify output (default: true)
|
|
39
39
|
-sm, --sourcemap Bundle source maps (default: false)
|
|
40
40
|
-is, --include-sources Include source with source maps (default: false)
|
|
@@ -96,7 +96,7 @@ Options:
|
|
|
96
96
|
-o, --output <string> Output location (default: "travetto_pack.zip")
|
|
97
97
|
--main-scripts, --no-main-scripts Create entry scripts (default: true)
|
|
98
98
|
-f, --main-name <string> Main name for build artifact
|
|
99
|
-
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.
|
|
99
|
+
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
|
|
100
100
|
--minify, --no-minify Minify output (default: true)
|
|
101
101
|
-sm, --sourcemap Bundle source maps (default: false)
|
|
102
102
|
-is, --include-sources Include source with source maps (default: false)
|
|
@@ -121,7 +121,7 @@ Options:
|
|
|
121
121
|
-o, --output <string> Output location
|
|
122
122
|
--main-scripts, --no-main-scripts Create entry scripts (default: true)
|
|
123
123
|
-f, --main-name <string> Main name for build artifact
|
|
124
|
-
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.
|
|
124
|
+
-e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
|
|
125
125
|
--minify, --no-minify Minify output (default: true)
|
|
126
126
|
-sm, --sourcemap Bundle source maps (default: false)
|
|
127
127
|
-is, --include-sources Include source with source maps (default: false)
|
|
@@ -156,7 +156,7 @@ $ trv pack:docker -x /dev/stdout run:rest
|
|
|
156
156
|
|
|
157
157
|
#!/bin/sh
|
|
158
158
|
export DIST=/tmp/<temp-folder>
|
|
159
|
-
export TRV_OUT=<workspace-root>/.
|
|
159
|
+
export TRV_OUT=<workspace-root>/.trv/output
|
|
160
160
|
export ROOT=<workspace-root>/related/todo-app
|
|
161
161
|
export MOD=@travetto/todo-app
|
|
162
162
|
|
|
@@ -209,13 +209,13 @@ cp -r -p $ROOT/resources $DIST/resources
|
|
|
209
209
|
|
|
210
210
|
echo "Writing Manifest manifest.json"
|
|
211
211
|
|
|
212
|
-
TRV_MODULE=$MOD npx
|
|
212
|
+
TRV_MODULE=$MOD npx trvc manifest $DIST/manifest.json prod
|
|
213
213
|
|
|
214
|
-
# Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.
|
|
214
|
+
# Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.trv
|
|
215
215
|
|
|
216
|
-
echo "Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.
|
|
216
|
+
echo "Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.trv"
|
|
217
217
|
|
|
218
|
-
export BUNDLE_ENTRY=node_modules/@travetto/cli/support/entry.
|
|
218
|
+
export BUNDLE_ENTRY=node_modules/@travetto/cli/support/entry.trv.js
|
|
219
219
|
export BUNDLE_MAIN_FILE=todo-app.js
|
|
220
220
|
export BUNDLE_COMPRESS=true
|
|
221
221
|
export BUNDLE_SOURCEMAP=false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/pack",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-rc.0",
|
|
4
4
|
"description": "Code packing utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"travetto",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"directory": "module/pack"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
28
|
-
"@rollup/plugin-json": "^6.0.
|
|
29
|
-
"@rollup/plugin-node-resolve": "^15.2.
|
|
30
|
-
"@rollup/plugin-terser": "^0.4.
|
|
31
|
-
"@travetto/base": "^3.
|
|
32
|
-
"rollup": "^
|
|
27
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
28
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
30
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
31
|
+
"@travetto/base": "^3.4.0-rc.0",
|
|
32
|
+
"rollup": "^4.1.5",
|
|
33
33
|
"rollup-plugin-sourcemaps": "^0.6.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/cli": "^3.
|
|
36
|
+
"@travetto/cli": "^3.4.0-rc.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/cli": {
|
package/support/bin/operation.ts
CHANGED
|
@@ -202,7 +202,7 @@ export class PackOperation {
|
|
|
202
202
|
*/
|
|
203
203
|
static async * writeManifest(cfg: CommonPackConfig): AsyncIterable<string[]> {
|
|
204
204
|
const out = path.resolve(cfg.workspace, 'manifest.json');
|
|
205
|
-
const cmd = ['npx', '
|
|
205
|
+
const cmd = ['npx', 'trvc', 'manifest', out, 'prod'];
|
|
206
206
|
const env = { TRV_MODULE: cfg.module };
|
|
207
207
|
|
|
208
208
|
yield* PackOperation.title(cfg, cliTpl`${{ title: 'Writing Manifest' }} ${{ path: 'manifest.json' }}`);
|
package/support/pack.base.ts
CHANGED
|
@@ -40,7 +40,7 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
40
40
|
|
|
41
41
|
@CliFlag({ desc: 'Entry point', short: 'e' })
|
|
42
42
|
@Required(false)
|
|
43
|
-
entryPoint: string = '@travetto/cli/support/entry.
|
|
43
|
+
entryPoint: string = '@travetto/cli/support/entry.trv';
|
|
44
44
|
|
|
45
45
|
@CliFlag({ desc: 'Minify output' })
|
|
46
46
|
minify = true;
|