@mobilabs/es6lib 1.1.1 → 1.2.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/LICENSE.md +1 -1
- package/_dist/LICENSE.md +1 -1
- package/_dist/lib/es6lib.js +4 -4
- package/_dist/lib/es6lib.min.js +3 -3
- package/_dist/lib/es6lib.min.mjs +3 -3
- package/_dist/lib/es6lib.mjs +4 -4
- package/package.json +7 -8
- package/tasks/_build.template.js +22 -22
- package/tasks/build.js.dev.js +22 -22
- package/tasks/build.js.prod.js +20 -20
- package/tasks/build.skeleton.prod.js +16 -16
- package/tasks/dep.private.js +18 -18
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (https://www.mobilabs.fr)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/_dist/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (https://www.mobilabs.fr)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/_dist/lib/es6lib.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
@@ -312,14 +312,14 @@
|
|
|
312
312
|
const obj = Object.create(methods);
|
|
313
313
|
obj._library = {
|
|
314
314
|
name: 'ES6lib',
|
|
315
|
-
version: '1.
|
|
315
|
+
version: '1.2.0',
|
|
316
316
|
};
|
|
317
317
|
return obj;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
321
321
|
ES6lib.NAME = 'ES6lib';
|
|
322
|
-
ES6lib.VERSION = '1.
|
|
322
|
+
ES6lib.VERSION = '1.2.0';
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
// -- Private Static Methods -----------------------------------------------
|
package/_dist/lib/es6lib.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
10
10
|
* ************************************************************************** */
|
|
11
|
-
!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}(this,(t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.
|
|
11
|
+
!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}(this,(t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.2.0"},t},e.NAME="ES6lib",e.VERSION="1.2.0",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));
|
package/_dist/lib/es6lib.min.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
10
10
|
* ************************************************************************** */
|
|
11
|
-
const $__ES6GLOB={};!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}($__ES6GLOB,(t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.
|
|
11
|
+
const $__ES6GLOB={};!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}($__ES6GLOB,(t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.2.0"},t},e.NAME="ES6lib",e.VERSION="1.2.0",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));export default $__ES6GLOB.ES6lib;
|
package/_dist/lib/es6lib.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
@@ -313,14 +313,14 @@ const $__ES6GLOB = {};
|
|
|
313
313
|
const obj = Object.create(methods);
|
|
314
314
|
obj._library = {
|
|
315
315
|
name: 'ES6lib',
|
|
316
|
-
version: '1.
|
|
316
|
+
version: '1.2.0',
|
|
317
317
|
};
|
|
318
318
|
return obj;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
322
322
|
ES6lib.NAME = 'ES6lib';
|
|
323
|
-
ES6lib.VERSION = '1.
|
|
323
|
+
ES6lib.VERSION = '1.2.0';
|
|
324
324
|
|
|
325
325
|
|
|
326
326
|
// -- Private Static Methods -----------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilabs/es6lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A template for writing pure ES6 Javascript libraries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"minified": "_dist/lib/es6lib.min.js",
|
|
@@ -75,22 +75,21 @@
|
|
|
75
75
|
},
|
|
76
76
|
"homepage": "https://github.com/jclo/es6lib",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"nopt": "^7.
|
|
78
|
+
"nopt": "^7.2.0",
|
|
79
79
|
"shelljs": "^0.8.5"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"chai": "^4.
|
|
82
|
+
"chai": "^4.4.0",
|
|
83
83
|
"coveralls": "^3.1.1",
|
|
84
84
|
"cross-env": "^7.0.3",
|
|
85
|
-
"eslint": "^8.
|
|
85
|
+
"eslint": "^8.56.0",
|
|
86
86
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
87
|
-
"eslint-plugin-import": "^2.
|
|
88
|
-
"http-server": "^14.1.1",
|
|
87
|
+
"eslint-plugin-import": "^2.29.1",
|
|
89
88
|
"husky": "^8.0.3",
|
|
90
89
|
"mocha": "^10.2.0",
|
|
91
|
-
"nodemon": "^
|
|
90
|
+
"nodemon": "^3.0.2",
|
|
92
91
|
"nyc": "^15.1.0",
|
|
93
|
-
"terser": "^5.
|
|
92
|
+
"terser": "^5.26.0"
|
|
94
93
|
},
|
|
95
94
|
"publishConfig": {
|
|
96
95
|
"access": "public"
|
package/tasks/_build.template.js
CHANGED
|
@@ -39,16 +39,16 @@ const config = require('./config')
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// -- Local Constants
|
|
42
|
-
const VERSION
|
|
43
|
-
, opts
|
|
42
|
+
const VERSION = '0.0.0-alpha.0'
|
|
43
|
+
, opts = {
|
|
44
44
|
help: [Boolean, false],
|
|
45
45
|
version: [String, null],
|
|
46
46
|
}
|
|
47
|
-
, shortOpts
|
|
47
|
+
, shortOpts = {
|
|
48
48
|
h: ['--help'],
|
|
49
49
|
v: ['--version', VERSION],
|
|
50
50
|
}
|
|
51
|
-
, parsed
|
|
51
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
52
52
|
, destination = config.libdir
|
|
53
53
|
;
|
|
54
54
|
|
|
@@ -63,20 +63,20 @@ const VERSION = '0.0.0-alpha.0'
|
|
|
63
63
|
*
|
|
64
64
|
* @function ()
|
|
65
65
|
* @private
|
|
66
|
-
* @param {}
|
|
67
|
-
* @returns {}
|
|
66
|
+
* @param {} -,
|
|
67
|
+
* @returns {} -,
|
|
68
68
|
* @since 0.0.0
|
|
69
69
|
*/
|
|
70
70
|
function _help() {
|
|
71
71
|
const message = ['',
|
|
72
72
|
'Usage: command [options]',
|
|
73
73
|
'',
|
|
74
|
-
'
|
|
74
|
+
' creates something from something',
|
|
75
75
|
'',
|
|
76
76
|
'Options:',
|
|
77
77
|
'',
|
|
78
|
-
'-h, --help
|
|
79
|
-
'-v, --version
|
|
78
|
+
'-h, --help output usage information',
|
|
79
|
+
'-v, --version output the version number',
|
|
80
80
|
'',
|
|
81
81
|
].join('\n');
|
|
82
82
|
|
|
@@ -88,8 +88,8 @@ function _help() {
|
|
|
88
88
|
*
|
|
89
89
|
* @function ()
|
|
90
90
|
* @private
|
|
91
|
-
* @param {}
|
|
92
|
-
* @returns {Object}
|
|
91
|
+
* @param {} -,
|
|
92
|
+
* @returns {Object} returns a promise,
|
|
93
93
|
* @since 0.0.0
|
|
94
94
|
*/
|
|
95
95
|
function _clean() {
|
|
@@ -116,8 +116,8 @@ function _clean() {
|
|
|
116
116
|
*
|
|
117
117
|
* @function (arg1)
|
|
118
118
|
* @private
|
|
119
|
-
* @param {Function}
|
|
120
|
-
* @returns {}
|
|
119
|
+
* @param {Function} the function to call at the completion,
|
|
120
|
+
* @returns {} -,
|
|
121
121
|
* @since 0.0.0
|
|
122
122
|
*/
|
|
123
123
|
function _doparallel1(done) {
|
|
@@ -138,8 +138,8 @@ function _doparallel1(done) {
|
|
|
138
138
|
*
|
|
139
139
|
* @function (arg1)
|
|
140
140
|
* @private
|
|
141
|
-
* @param {Function}
|
|
142
|
-
* @returns {}
|
|
141
|
+
* @param {Function} the function to call at the completion,
|
|
142
|
+
* @returns {} -,
|
|
143
143
|
* @since 0.0.0
|
|
144
144
|
*/
|
|
145
145
|
function _doparallel2(done) {
|
|
@@ -160,8 +160,8 @@ function _doparallel2(done) {
|
|
|
160
160
|
*
|
|
161
161
|
* @function (arg1)
|
|
162
162
|
* @private
|
|
163
|
-
* @param {Function}
|
|
164
|
-
* @returns {}
|
|
163
|
+
* @param {Function} the function to call at the completion,
|
|
164
|
+
* @returns {} -,
|
|
165
165
|
* @since 0.0.0
|
|
166
166
|
*/
|
|
167
167
|
function _delgeneric(done) {
|
|
@@ -199,9 +199,9 @@ function _delgeneric(done) {
|
|
|
199
199
|
* Executes the script.
|
|
200
200
|
*
|
|
201
201
|
* @function ()
|
|
202
|
-
* @
|
|
203
|
-
* @param {}
|
|
204
|
-
* @returns {}
|
|
202
|
+
* @public
|
|
203
|
+
* @param {} -,
|
|
204
|
+
* @returns {} -,
|
|
205
205
|
* @since 0.0.0
|
|
206
206
|
*/
|
|
207
207
|
async function run() {
|
|
@@ -218,7 +218,7 @@ async function run() {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
const d1 = new Date();
|
|
221
|
-
process.stdout.write('Starting \'\x1b[36mbuild:
|
|
221
|
+
process.stdout.write('Starting \'\x1b[36mbuild:xxx:yyy\x1b[89m\x1b[0m\'...\n');
|
|
222
222
|
|
|
223
223
|
let pending = PENDING;
|
|
224
224
|
/**
|
|
@@ -229,7 +229,7 @@ async function run() {
|
|
|
229
229
|
if (!pending) {
|
|
230
230
|
_delgeneric(() => {
|
|
231
231
|
const d2 = new Date() - d1;
|
|
232
|
-
process.stdout.write(`Finished '\x1b[36mbuild:
|
|
232
|
+
process.stdout.write(`Finished '\x1b[36mbuild:xxx:yyy\x1b[89m\x1b[0m' after \x1b[35m${d2} ms\x1b[89m\x1b[0m\n`);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
}
|
package/tasks/build.js.dev.js
CHANGED
|
@@ -43,16 +43,16 @@ const pack = require('../package.json')
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
// -- Local Constants
|
|
46
|
-
const VERSION
|
|
47
|
-
, opts
|
|
46
|
+
const VERSION = '0.0.0-alpha.0'
|
|
47
|
+
, opts = {
|
|
48
48
|
help: [Boolean, false],
|
|
49
49
|
version: [String, null],
|
|
50
50
|
}
|
|
51
|
-
, shortOpts
|
|
51
|
+
, shortOpts = {
|
|
52
52
|
h: ['--help'],
|
|
53
53
|
v: ['--version', VERSION],
|
|
54
54
|
}
|
|
55
|
-
, parsed
|
|
55
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
56
56
|
, destination = config.libdir
|
|
57
57
|
, { ES6GLOB } = config
|
|
58
58
|
, source = config.src
|
|
@@ -75,20 +75,20 @@ const VERSION = '0.0.0-alpha.0'
|
|
|
75
75
|
*
|
|
76
76
|
* @function ()
|
|
77
77
|
* @private
|
|
78
|
-
* @param {}
|
|
79
|
-
* @returns {}
|
|
78
|
+
* @param {} -,
|
|
79
|
+
* @returns {} -,
|
|
80
80
|
* @since 0.0.0
|
|
81
81
|
*/
|
|
82
82
|
function _help() {
|
|
83
83
|
const message = ['',
|
|
84
84
|
'Usage: command [options]',
|
|
85
85
|
'',
|
|
86
|
-
'
|
|
86
|
+
' creates the js bundle from ./public/src/main.js',
|
|
87
87
|
'',
|
|
88
88
|
'Options:',
|
|
89
89
|
'',
|
|
90
|
-
'-h, --help
|
|
91
|
-
'-v, --version
|
|
90
|
+
'-h, --help output usage information',
|
|
91
|
+
'-v, --version output the version number',
|
|
92
92
|
'',
|
|
93
93
|
].join('\n');
|
|
94
94
|
|
|
@@ -100,8 +100,8 @@ function _help() {
|
|
|
100
100
|
*
|
|
101
101
|
* @function ()
|
|
102
102
|
* @private
|
|
103
|
-
* @param {}
|
|
104
|
-
* @returns {}
|
|
103
|
+
* @param {} -,
|
|
104
|
+
* @returns {} -,
|
|
105
105
|
* @since 0.0.0
|
|
106
106
|
*/
|
|
107
107
|
function _clean() {
|
|
@@ -120,8 +120,8 @@ function _clean() {
|
|
|
120
120
|
*
|
|
121
121
|
* @function ()
|
|
122
122
|
* @private
|
|
123
|
-
* @param {}
|
|
124
|
-
* @returns {}
|
|
123
|
+
* @param {} -,
|
|
124
|
+
* @returns {} -,
|
|
125
125
|
* @since 0.0.0
|
|
126
126
|
*/
|
|
127
127
|
function _docore() {
|
|
@@ -158,8 +158,8 @@ function _docore() {
|
|
|
158
158
|
*
|
|
159
159
|
* @function ()
|
|
160
160
|
* @private
|
|
161
|
-
* @param {}
|
|
162
|
-
* @returns {}
|
|
161
|
+
* @param {} -,
|
|
162
|
+
* @returns {} -,
|
|
163
163
|
* @since 0.0.0
|
|
164
164
|
*/
|
|
165
165
|
function _doumdlib() {
|
|
@@ -191,8 +191,8 @@ function _doumdlib() {
|
|
|
191
191
|
*
|
|
192
192
|
* @function ()
|
|
193
193
|
* @private
|
|
194
|
-
* @param {}
|
|
195
|
-
* @returns {}
|
|
194
|
+
* @param {} -,
|
|
195
|
+
* @returns {} -,
|
|
196
196
|
* @since 0.0.0
|
|
197
197
|
*/
|
|
198
198
|
function _domodule() {
|
|
@@ -227,8 +227,8 @@ function _domodule() {
|
|
|
227
227
|
*
|
|
228
228
|
* @function ()
|
|
229
229
|
* @private
|
|
230
|
-
* @param {}
|
|
231
|
-
* @returns {}
|
|
230
|
+
* @param {} -,
|
|
231
|
+
* @returns {} -,
|
|
232
232
|
* @since 0.0.0
|
|
233
233
|
*/
|
|
234
234
|
function _delcore() {
|
|
@@ -247,9 +247,9 @@ function _delcore() {
|
|
|
247
247
|
* Executes the script.
|
|
248
248
|
*
|
|
249
249
|
* @function ()
|
|
250
|
-
* @
|
|
251
|
-
* @param {}
|
|
252
|
-
* @returns {}
|
|
250
|
+
* @public
|
|
251
|
+
* @param {} -,
|
|
252
|
+
* @returns {} -,
|
|
253
253
|
* @since 0.0.0
|
|
254
254
|
*/
|
|
255
255
|
function run() {
|
package/tasks/build.js.prod.js
CHANGED
|
@@ -44,16 +44,16 @@ const config = require('./config')
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
// -- Local Constants
|
|
47
|
-
const VERSION
|
|
48
|
-
, opts
|
|
47
|
+
const VERSION = '0.0.0-alpha.0'
|
|
48
|
+
, opts = {
|
|
49
49
|
help: [Boolean, false],
|
|
50
50
|
version: [String, null],
|
|
51
51
|
}
|
|
52
|
-
, shortOpts
|
|
52
|
+
, shortOpts = {
|
|
53
53
|
h: ['--help'],
|
|
54
54
|
v: ['--version', VERSION],
|
|
55
55
|
}
|
|
56
|
-
, parsed
|
|
56
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
57
57
|
, { dist } = config
|
|
58
58
|
, { libdir } = config
|
|
59
59
|
, { name } = config
|
|
@@ -71,20 +71,20 @@ const VERSION = '0.0.0-alpha.0'
|
|
|
71
71
|
*
|
|
72
72
|
* @function ()
|
|
73
73
|
* @private
|
|
74
|
-
* @param {}
|
|
75
|
-
* @returns {}
|
|
74
|
+
* @param {} -,
|
|
75
|
+
* @returns {} -,
|
|
76
76
|
* @since 0.0.0
|
|
77
77
|
*/
|
|
78
78
|
function _help() {
|
|
79
79
|
const message = ['',
|
|
80
80
|
'Usage: command [options]',
|
|
81
81
|
'',
|
|
82
|
-
'
|
|
82
|
+
' creates the js production files',
|
|
83
83
|
'',
|
|
84
84
|
'Options:',
|
|
85
85
|
'',
|
|
86
|
-
'-h, --help
|
|
87
|
-
'-v, --version
|
|
86
|
+
'-h, --help output usage information',
|
|
87
|
+
'-v, --version output the version number',
|
|
88
88
|
'',
|
|
89
89
|
].join('\n');
|
|
90
90
|
|
|
@@ -124,8 +124,8 @@ function _clean() {
|
|
|
124
124
|
*
|
|
125
125
|
* @function (arg1)
|
|
126
126
|
* @private
|
|
127
|
-
* @param {Function}
|
|
128
|
-
* @returns {}
|
|
127
|
+
* @param {Function} the function to call at the completion,
|
|
128
|
+
* @returns {} -,
|
|
129
129
|
* @since 0.0.0
|
|
130
130
|
*/
|
|
131
131
|
function _copydev(done) {
|
|
@@ -152,8 +152,8 @@ function _copydev(done) {
|
|
|
152
152
|
*
|
|
153
153
|
* @function (arg1)
|
|
154
154
|
* @private
|
|
155
|
-
* @param {Function}
|
|
156
|
-
* @returns {}
|
|
155
|
+
* @param {Function} the function to call at the completion,
|
|
156
|
+
* @returns {} -,
|
|
157
157
|
* @since 0.0.0
|
|
158
158
|
*/
|
|
159
159
|
function _copydevm(done) {
|
|
@@ -180,8 +180,8 @@ function _copydevm(done) {
|
|
|
180
180
|
*
|
|
181
181
|
* @function (arg1)
|
|
182
182
|
* @private
|
|
183
|
-
* @param {Function}
|
|
184
|
-
* @returns {}
|
|
183
|
+
* @param {Function} the function to call at the completion,
|
|
184
|
+
* @returns {} -,
|
|
185
185
|
* @since 0.0.0
|
|
186
186
|
*/
|
|
187
187
|
function _makeminified(done) {
|
|
@@ -212,8 +212,8 @@ function _makeminified(done) {
|
|
|
212
212
|
*
|
|
213
213
|
* @function (arg1)
|
|
214
214
|
* @private
|
|
215
|
-
* @param {Function}
|
|
216
|
-
* @returns {}
|
|
215
|
+
* @param {Function} the function to call at the completion,
|
|
216
|
+
* @returns {} -,
|
|
217
217
|
* @since 0.0.0
|
|
218
218
|
*/
|
|
219
219
|
function _makeminifiedm(done) {
|
|
@@ -246,9 +246,9 @@ function _makeminifiedm(done) {
|
|
|
246
246
|
* Executes the script.
|
|
247
247
|
*
|
|
248
248
|
* @function ()
|
|
249
|
-
* @
|
|
250
|
-
* @param {}
|
|
251
|
-
* @returns {}
|
|
249
|
+
* @public
|
|
250
|
+
* @param {} -,
|
|
251
|
+
* @returns {} -,
|
|
252
252
|
* @since 0.0.0
|
|
253
253
|
*/
|
|
254
254
|
async function run() {
|
|
@@ -41,16 +41,16 @@ const config = require('./config')
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
// -- Local Constants
|
|
44
|
-
const VERSION
|
|
45
|
-
, opts
|
|
44
|
+
const VERSION = '0.0.0-alpha.0'
|
|
45
|
+
, opts = {
|
|
46
46
|
help: [Boolean, false],
|
|
47
47
|
version: [String, null],
|
|
48
48
|
}
|
|
49
|
-
, shortOpts
|
|
49
|
+
, shortOpts = {
|
|
50
50
|
h: ['--help'],
|
|
51
51
|
v: ['--version', VERSION],
|
|
52
52
|
}
|
|
53
|
-
, parsed
|
|
53
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
54
54
|
, { dist } = config
|
|
55
55
|
, { webfiles } = config
|
|
56
56
|
;
|
|
@@ -66,20 +66,20 @@ const VERSION = '0.0.0-alpha.0'
|
|
|
66
66
|
*
|
|
67
67
|
* @function ()
|
|
68
68
|
* @private
|
|
69
|
-
* @param {}
|
|
70
|
-
* @returns {}
|
|
69
|
+
* @param {} -,
|
|
70
|
+
* @returns {} -,
|
|
71
71
|
* @since 0.0.0
|
|
72
72
|
*/
|
|
73
73
|
function _help() {
|
|
74
74
|
const message = ['',
|
|
75
75
|
'Usage: command [options]',
|
|
76
76
|
'',
|
|
77
|
-
'
|
|
77
|
+
' creates the production folder and copies the files defined in config.js',
|
|
78
78
|
'',
|
|
79
79
|
'Options:',
|
|
80
80
|
'',
|
|
81
|
-
'-h, --help
|
|
82
|
-
'-v, --version
|
|
81
|
+
'-h, --help output usage information',
|
|
82
|
+
'-v, --version output the version number',
|
|
83
83
|
'',
|
|
84
84
|
].join('\n');
|
|
85
85
|
|
|
@@ -91,8 +91,8 @@ function _help() {
|
|
|
91
91
|
*
|
|
92
92
|
* @function ()
|
|
93
93
|
* @private
|
|
94
|
-
* @param {}
|
|
95
|
-
* @returns {Object}
|
|
94
|
+
* @param {} -,
|
|
95
|
+
* @returns {Object} returns a promise,
|
|
96
96
|
* @since 0.0.0
|
|
97
97
|
*/
|
|
98
98
|
function _clean() {
|
|
@@ -115,8 +115,8 @@ function _clean() {
|
|
|
115
115
|
*
|
|
116
116
|
* @function (arg1)
|
|
117
117
|
* @private
|
|
118
|
-
* @param {Function}
|
|
119
|
-
* @returns {}
|
|
118
|
+
* @param {Function} the function to call at the completion,
|
|
119
|
+
* @returns {} -,
|
|
120
120
|
* @since 0.0.0
|
|
121
121
|
*/
|
|
122
122
|
function _doskeleton(done) {
|
|
@@ -153,9 +153,9 @@ function _doskeleton(done) {
|
|
|
153
153
|
* Executes the script.
|
|
154
154
|
*
|
|
155
155
|
* @function ()
|
|
156
|
-
* @
|
|
157
|
-
* @param {}
|
|
158
|
-
* @returns {}
|
|
156
|
+
* @public
|
|
157
|
+
* @param {} -,
|
|
158
|
+
* @returns {} -,
|
|
159
159
|
* @since 0.0.0
|
|
160
160
|
*/
|
|
161
161
|
async function run() {
|
package/tasks/dep.private.js
CHANGED
|
@@ -42,16 +42,16 @@ const config = require('./config')
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
// -- Local Constants
|
|
45
|
-
const VERSION
|
|
46
|
-
, opts
|
|
45
|
+
const VERSION = '0.0.0-alpha.0'
|
|
46
|
+
, opts = {
|
|
47
47
|
help: [Boolean, false],
|
|
48
48
|
version: [String, null],
|
|
49
49
|
}
|
|
50
|
-
, shortOpts
|
|
50
|
+
, shortOpts = {
|
|
51
51
|
h: ['--help'],
|
|
52
52
|
v: ['--version', VERSION],
|
|
53
53
|
}
|
|
54
|
-
, parsed
|
|
54
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
55
55
|
, tmppriv = './private_repo/tmp'
|
|
56
56
|
, { name } = config
|
|
57
57
|
, { index } = config
|
|
@@ -69,20 +69,20 @@ const VERSION = '0.0.0-alpha.0'
|
|
|
69
69
|
*
|
|
70
70
|
* @function ()
|
|
71
71
|
* @private
|
|
72
|
-
* @param {}
|
|
73
|
-
* @returns {}
|
|
72
|
+
* @param {} -,
|
|
73
|
+
* @returns {} -,
|
|
74
74
|
* @since 0.0.0
|
|
75
75
|
*/
|
|
76
76
|
function _help() {
|
|
77
77
|
const message = ['',
|
|
78
78
|
'Usage: command [options]',
|
|
79
79
|
'',
|
|
80
|
-
'
|
|
80
|
+
' creates a private npm package to be used locally',
|
|
81
81
|
'',
|
|
82
82
|
'Options:',
|
|
83
83
|
'',
|
|
84
|
-
'-h, --help
|
|
85
|
-
'-v, --version
|
|
84
|
+
'-h, --help output usage information',
|
|
85
|
+
'-v, --version output the version number',
|
|
86
86
|
'',
|
|
87
87
|
].join('\n');
|
|
88
88
|
|
|
@@ -94,8 +94,8 @@ function _help() {
|
|
|
94
94
|
*
|
|
95
95
|
* @function ()
|
|
96
96
|
* @private
|
|
97
|
-
* @param {}
|
|
98
|
-
* @returns {Object}
|
|
97
|
+
* @param {} -,
|
|
98
|
+
* @returns {Object} returns a promise,
|
|
99
99
|
* @since 0.0.0
|
|
100
100
|
*/
|
|
101
101
|
function _clean() {
|
|
@@ -122,8 +122,8 @@ function _clean() {
|
|
|
122
122
|
*
|
|
123
123
|
* @function (arg1)
|
|
124
124
|
* @private
|
|
125
|
-
* @param {Function}
|
|
126
|
-
* @returns {}
|
|
125
|
+
* @param {Function} the function to call at the completion,
|
|
126
|
+
* @returns {} -,
|
|
127
127
|
* @since 0.0.0
|
|
128
128
|
*/
|
|
129
129
|
function _copyindex(done) {
|
|
@@ -149,8 +149,8 @@ function _copyindex(done) {
|
|
|
149
149
|
*
|
|
150
150
|
* @function (arg1)
|
|
151
151
|
* @private
|
|
152
|
-
* @param {Function}
|
|
153
|
-
* @returns {}
|
|
152
|
+
* @param {Function} the function to call at the completion,
|
|
153
|
+
* @returns {} -,
|
|
154
154
|
* @since 0.0.0
|
|
155
155
|
*/
|
|
156
156
|
function _copypackagejson(done) {
|
|
@@ -186,9 +186,9 @@ function _copypackagejson(done) {
|
|
|
186
186
|
* Executes the script.
|
|
187
187
|
*
|
|
188
188
|
* @function ()
|
|
189
|
-
* @
|
|
190
|
-
* @param {}
|
|
191
|
-
* @returns {}
|
|
189
|
+
* @public
|
|
190
|
+
* @param {} -,
|
|
191
|
+
* @returns {} -,
|
|
192
192
|
* @since 0.0.0
|
|
193
193
|
*/
|
|
194
194
|
async function run() {
|