app-bundler 0.2.17 → 0.2.21

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.17",
3
+ "version": "0.2.21",
4
4
  "description": "",
5
5
  "main": "lib/bundler.js",
6
6
  "bin": {
@@ -9,10 +9,9 @@
9
9
  "scripts": {
10
10
  "test": "atma test",
11
11
  "watch": "atma run tools/build --watch",
12
- "build": "atma run tools/build && atma run tools/build --cli && npm run cp",
13
- "cp": "copy \"lib\\cli.js\" \"D:\\eth\\0xweb\\node_modules\\app-bundler\\lib\\cli.js\"",
12
+ "build": "atma run tools/build && atma run tools/build --cli",
14
13
  "server": "atma server",
15
- "release": "echo \"Run atma pub -m \"message\"\""
14
+ "release": "atma bump && npm run build && git add -A && git commit -am 'bump' && git push && git push origin master:release"
16
15
  },
17
16
  "repository": {
18
17
  "type": "git",
@@ -37,12 +36,12 @@
37
36
  "alot": "^0.3.0",
38
37
  "appcfg": "^0.4.64",
39
38
  "atma-class": "^1.1.83",
40
- "atma-io": "^1.2.73",
39
+ "atma-io": "^1.3.8",
41
40
  "atma-logger": "^1.0.2",
42
41
  "atma-utils": "^0.1.13",
43
42
  "axios": "^0.21.0",
44
43
  "cheerio": "^0.20.0",
45
- "includejs": "^0.17.6",
44
+ "includejs": "^0.17.14",
46
45
  "maskjs": "^0.72.37",
47
46
  "memd": "^0.3.10",
48
47
  "shellbee": "^0.5.22",
@@ -93,9 +92,10 @@
93
92
  },
94
93
  "devDependencies": {
95
94
  "@types/node": "^8.5.2",
96
- "atma": "^0.15.15",
95
+ "atma": "^0.15.24",
97
96
  "atma-io-middleware-importer": "^1.1.38",
98
- "atma-loader-ts": "^1.2.4",
97
+ "atma-loader-ts": "^1.2.7",
98
+ "atma-utest": "^0.21.36",
99
99
  "selenium-query": "^0.52.59",
100
100
  "tslib": "^1.11.1",
101
101
  "uglify-es": "^3.3.9"
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
+ }