@leverege/build-tools 2.0.5 → 2.0.6

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.
@@ -1,86 +0,0 @@
1
- #!/usr/bin/env node
2
- const commandLineArgs = require( 'command-line-args' )
3
- const commandLineUsage = require( 'command-line-usage' )
4
- const path = require( 'path' )
5
- const Packleator = require( './Packleator' )
6
- const ansiLogo = require( './logo-ansi' )
7
-
8
- const defaultConfig = {
9
- namespaces : [ '@leverege' ],
10
- output : 'lev_dest'
11
- }
12
-
13
- const sections = [
14
- {
15
- content : ansiLogo,
16
- raw : true
17
- },
18
- {
19
- content : 'Bundles private/proprietary npm packages and source code into a tarball for distribution'
20
- },
21
- {
22
- header : 'Options',
23
- optionList : [
24
- {
25
- name : 'output',
26
- alias : 'o',
27
- description : 'The destination folder (optional)',
28
- defaultValue : 'lev_dest'
29
- },
30
- {
31
- name : 'ignore',
32
- alias : 'i',
33
- description : 'List of files or folders to ignore. Uses glob pattern matching (optional)',
34
- multiple : true
35
- },
36
- {
37
- name : 'namespaces',
38
- alias : 'n',
39
- description : 'List of npm namespaces to be considered private/proprietary (optional)',
40
- multiple : true
41
- },
42
- {
43
- name : 'verbose',
44
- alias : 'v',
45
- description : 'Log a little bit louder now'
46
- },
47
- {
48
- name : 'help',
49
- description : 'Print this usage guide.'
50
- }
51
- ]
52
- }
53
- ]
54
-
55
- const usage = commandLineUsage( sections )
56
-
57
- const optionDefinitions = [
58
- { name : 'output', alias : 'o', type : String, defaultValue : defaultConfig.output },
59
- { name : 'ignore', alias : 'i', type : String, multiple : true, defaultValue : [] },
60
- { name : 'namespaces', alias : 'n', type : String, defaultValue : defaultConfig.namespaces },
61
- { name : 'verbose', alias : 'v', type : Boolean, defaultValue : false },
62
- { name : 'help', type : Boolean }
63
- ]
64
-
65
- const args = commandLineArgs( optionDefinitions )
66
-
67
- async function main() {
68
- if ( args.help ) {
69
- console.log( usage )
70
- } else {
71
- const packleator = new Packleator( { ...defaultConfig, args } )
72
-
73
- if ( args.verbose ) {
74
- console.log( packleator.args )
75
- }
76
-
77
- try {
78
- await packleator.getPackageJson()
79
- await packleator.run()
80
- } catch ( ex ) {
81
- console.error( ex.message )
82
- }
83
- }
84
- }
85
-
86
- main()
@@ -1,16 +0,0 @@
1
- module.exports =
2
- ` . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
3
-  . . S% . . . . . . . . . . . . . . . . . . 
4
-  . .:% : . . . .. . . . . . ...... . ... .. . . . .. .. . ..... . .... . .. . ..... . ... . ..... . .. . . ..... . . . . 
5
-  . :88:.. . . .8: . .8. . .. @8X@@@@@@8% @88X . . tX8% 888@@@@@@@@t. t8@@@@@%;% . . @8@@@@@@@8%. .. ;t%88t@. .:X8@@@@@@@88 . . .
6
-  . .. 8888:. . .X8S . . S%  . . :S@;ttttt%. St%8.. . @S;@ XX8S:tttttt@ 8SS;tttS88 X.. ;SX;ttttt% . ..t @8tttX88 t. t@@S:t%%ttSt . . 
7
-  . . @8888;. :t @8;. . @@  . .8SS:;:;:: . 8SS. . . ;8@@. X88@.;:;:;. . X@:;::;.;X8t%. .8SX:;:;:: .% 8::t;:: S S . tSXt.;;:;:. . 
8
-  .  888; .t8 .X:. . XS@ . . :XSt . . . S8SS . :.%X : @@88 . . . @S . . 8888 :XS; . .. @@@8.. .... t%S:.. . . . . 
9
-  . . . ..888StS 8: ... . . @@  .. :X@   t ..%;t@.. ;@.S . X88;.  .8 : X@.: ...t8X.t. :@@ S ..S8.. . %X; tX8;. .  . . . 
10
-  . . t8888X %8t . .. @SX . . :XX ;;;;:t: ..8S@:.X888 .. X88S::;;;.% . @X@%S;%X8X@X . :@t;;;;;:;;. %@ .. ..  %t. t%X8;:;;; 8.. . 
11
-  . . . .:88Xtt88 . . @X  ..... :XSS..:..:.. . @X;: SS . . X88@ ::.:.. . @XX@X@@S@t ... .@@S ::..:.. ;88t ..... SX: tSX; ::.:... . 
12
-  . . :8888% . . @X S8@@8@: :XS8X@X@X@X: . %;8 @%X . . @88:S@X@X@@;. @X . ..8X8; .. :XS8S@X@X@@: t88 t8%S8:;t: t%XSX@@X@X@% . . 
13
-  . . . . . :X8@.: . . 88X8@888SS .8@@8888@888.. ..8S@X8 . . @8@@88888@8; S8 . . .@.8St. .8@888888888...% S%888Xt@t; .;%8888888@@8 . . .
14
-  . 8 :.. .;;:::;::. :;;::::;:;:. .:;. .;:;::;::::. .;: . .:;: :;:::::::::: . ..:t;:: . :%;;:::::::. . 
15
-  . . . . . X% . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . .. . . . 
16
-  . .. . . . . . . . . . . . . . . . . . . . . . . . .`
package/src/test.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "name": "@leverege/packagename",
3
- "main": "lib/index.js"
4
- }