app-bundler 0.2.22 → 0.2.24
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/.circleci/config.yml +37 -37
- package/.editorconfig +8 -8
- package/README.md +33 -33
- package/lib/bundler.js +7630 -7674
- package/lib/cli.js +7764 -7808
- package/package.json +1 -1
- package/todo.txt +2 -2
- package/tools/build.js +58 -58
- package/tools/bundler.js +7075 -7075
- package/tsconfig-build.json +23 -23
- package/tsconfig.json +24 -24
- package/types/color.d.ts +2 -2
- package/typings.json +6 -6
package/package.json
CHANGED
package/todo.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
1. export var embedScript;
|
|
2
|
-
2. path prefixes like '@core/src'
|
|
1
|
+
1. export var embedScript;
|
|
2
|
+
2. path prefixes like '@core/src'
|
|
3
3
|
3. export { xhr_get } from './xhr_node'
|
package/tools/build.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
const Bundler = require('./bundler');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const io = global.io;
|
|
5
|
-
const lib = process.argv.some(x => /cli/.test(x)) ? 'cli' : 'api';
|
|
6
|
-
|
|
7
|
-
build();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function build () {
|
|
11
|
-
const file = lib === 'api' ? '/src/api.ts' : '/src/cli.ts'
|
|
12
|
-
const options = {
|
|
13
|
-
type: 'js',
|
|
14
|
-
outputMain: lib === 'api' ? './lib/bundler.js' : './lib/cli.js',
|
|
15
|
-
middlewares: {
|
|
16
|
-
'ts': ['atma-io-middleware-importer:read', 'atma-loader-ts:read'],
|
|
17
|
-
'js': ['atma-io-middleware-importer:read']
|
|
18
|
-
},
|
|
19
|
-
defaultExtensions: {
|
|
20
|
-
"js": "ts"
|
|
21
|
-
},
|
|
22
|
-
package: {
|
|
23
|
-
"module": "commonjs",
|
|
24
|
-
"moduleName": "bundler",
|
|
25
|
-
"moduleWrapper": "script",
|
|
26
|
-
"commonjs": {
|
|
27
|
-
"output": "simplified"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
dynamicDependencies: [
|
|
31
|
-
"assert",
|
|
32
|
-
"alot",
|
|
33
|
-
"maskjs",
|
|
34
|
-
"atma-io",
|
|
35
|
-
"atma-class",
|
|
36
|
-
"atma-logger",
|
|
37
|
-
"appcfg",
|
|
38
|
-
"cheerio",
|
|
39
|
-
"includejs",
|
|
40
|
-
"uglify-js",
|
|
41
|
-
"atma-utils",
|
|
42
|
-
"^memd$",
|
|
43
|
-
"^axios$",
|
|
44
|
-
],
|
|
45
|
-
watch: process.argv.some(x => /watch/.test(x))
|
|
46
|
-
};
|
|
47
|
-
return Bundler
|
|
48
|
-
.clearCache()
|
|
49
|
-
.process(file, options)
|
|
50
|
-
.fail(error => {
|
|
51
|
-
console.error('Failed: ', error);
|
|
52
|
-
process.exit(1);
|
|
53
|
-
})
|
|
54
|
-
.done(x => {
|
|
55
|
-
|
|
56
|
-
logger.log(lib, `Done`.green)
|
|
57
|
-
});
|
|
58
|
-
}
|
|
1
|
+
const Bundler = require('./bundler');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const io = global.io;
|
|
5
|
+
const lib = process.argv.some(x => /cli/.test(x)) ? 'cli' : 'api';
|
|
6
|
+
|
|
7
|
+
build();
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
function build () {
|
|
11
|
+
const file = lib === 'api' ? '/src/api.ts' : '/src/cli.ts'
|
|
12
|
+
const options = {
|
|
13
|
+
type: 'js',
|
|
14
|
+
outputMain: lib === 'api' ? './lib/bundler.js' : './lib/cli.js',
|
|
15
|
+
middlewares: {
|
|
16
|
+
'ts': ['atma-io-middleware-importer:read', 'atma-loader-ts:read'],
|
|
17
|
+
'js': ['atma-io-middleware-importer:read']
|
|
18
|
+
},
|
|
19
|
+
defaultExtensions: {
|
|
20
|
+
"js": "ts"
|
|
21
|
+
},
|
|
22
|
+
package: {
|
|
23
|
+
"module": "commonjs",
|
|
24
|
+
"moduleName": "bundler",
|
|
25
|
+
"moduleWrapper": "script",
|
|
26
|
+
"commonjs": {
|
|
27
|
+
"output": "simplified"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
dynamicDependencies: [
|
|
31
|
+
"assert",
|
|
32
|
+
"alot",
|
|
33
|
+
"maskjs",
|
|
34
|
+
"atma-io",
|
|
35
|
+
"atma-class",
|
|
36
|
+
"atma-logger",
|
|
37
|
+
"appcfg",
|
|
38
|
+
"cheerio",
|
|
39
|
+
"includejs",
|
|
40
|
+
"uglify-js",
|
|
41
|
+
"atma-utils",
|
|
42
|
+
"^memd$",
|
|
43
|
+
"^axios$",
|
|
44
|
+
],
|
|
45
|
+
watch: process.argv.some(x => /watch/.test(x))
|
|
46
|
+
};
|
|
47
|
+
return Bundler
|
|
48
|
+
.clearCache()
|
|
49
|
+
.process(file, options)
|
|
50
|
+
.fail(error => {
|
|
51
|
+
console.error('Failed: ', error);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
})
|
|
54
|
+
.done(x => {
|
|
55
|
+
|
|
56
|
+
logger.log(lib, `Done`.green)
|
|
57
|
+
});
|
|
58
|
+
}
|