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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-bundler",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
4
4
  "description": "",
5
5
  "main": "lib/bundler.js",
6
6
  "bin": {
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
+ }