@plotdb/srcbuild 0.0.34 → 0.0.35

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/dist/ext/pug.js CHANGED
@@ -109,13 +109,13 @@ pugbuild.prototype = import$(Object.create(base.prototype), {
109
109
  });
110
110
  },
111
111
  'md': function(text, opt){
112
- return marked(text);
112
+ return marked.parse(text);
113
113
  }
114
114
  },
115
115
  json: function(it){
116
116
  return JSON.parse(fs.readFileSync(it));
117
117
  },
118
- md: marked,
118
+ md: marked.parse,
119
119
  yaml: function(it){
120
120
  return jsYaml.load(fs.readFileSync(it));
121
121
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "zbryikt",
3
3
  "name": "@plotdb/srcbuild",
4
- "version": "0.0.34",
4
+ "version": "0.0.35",
5
5
  "description": "",
6
6
  "main": "./dist/main.js",
7
7
  "files": [
@@ -12,6 +12,7 @@
12
12
  "srcbuild-pug": "./dist/pug-cli"
13
13
  },
14
14
  "scripts": {
15
+ "prepare": "mkdir -p ./node_modules/@plotdb/srcbuild/dist; cp dist/lib.pug ./node_modules/@plotdb/srcbuild/dist/",
15
16
  "start": "./node_modules/.bin/lsc watch.ls"
16
17
  },
17
18
  "license": "MIT",
@@ -37,7 +38,7 @@
37
38
  "i18next-http-middleware": "^3.1.0",
38
39
  "js-yaml": "^4.0.0",
39
40
  "livescript": "^1.6.0",
40
- "marked": "^2.0.1",
41
+ "marked": "^4.0.10",
41
42
  "pug": "^3.0.2",
42
43
  "require-reload": "^0.2.2",
43
44
  "stylus": "^0.55.0",
package/CHANGELOG.md DELETED
@@ -1,177 +0,0 @@
1
- # Change Log
2
-
3
- ## v0.0.34
4
-
5
- - support legacy syntax in libLoader for script loading
6
- - fix bug: `libLoader.root` doesn't work properly
7
-
8
-
9
- ## v0.0.33
10
-
11
- - support relative path in bundle.json
12
- - add test case for bundler
13
- - use local script for testing
14
-
15
-
16
- ## v0.0.32
17
-
18
- - bug fix: `defer` in libLoader should be by default true.
19
- - bug fix: stylus extension doesn't provide correct path for dependencies.
20
-
21
-
22
- ## v0.0.31
23
-
24
- - bug fix: the `script` and `css` mixin supports should be done by `postParse` plugin instead of code modification.
25
-
26
-
27
- ## v0.0.30
28
-
29
- - directly support `script` and `css` mixin in pug compiling.
30
-
31
-
32
- ## v0.0.29
33
-
34
- - bug fix: bundle not rebuild when bundle config file updated
35
- - bug fix: bundler exception not caught
36
-
37
-
38
- ## v0.0.28
39
-
40
- - totally remove `compress` option to prevent unwanted side effect of code removal
41
-
42
-
43
- ## v0.0.27
44
-
45
- - dont compress unused in pug lsc filter for our potential use of custom script block design in @plotdb/block
46
-
47
-
48
- ## v0.0.26
49
-
50
- - remove log
51
-
52
-
53
- ## v0.0.25
54
-
55
- - pass `ignored` to adapter to bypass unnecessary files to save time
56
- - by default minimize javascript and css in pug filter.
57
-
58
-
59
- ## v0.0.24
60
-
61
- - set `doctype` to `html` also in `pug-cli` to prevent `t="t"` generation.
62
-
63
-
64
- ## v0.0.23
65
-
66
- - set `doctype` to `html` to prevent `t="t"` generation.
67
-
68
-
69
- ## v0.0.22
70
-
71
- - add `srcbuild-pug` command for building pug with extapi
72
- - fix yaml loading issue by using `load` instead of `safe-load`.
73
-
74
-
75
- ## v0.0.21
76
-
77
- - fix module resolving path bug
78
-
79
-
80
- ## v0.0.20
81
-
82
- - resolve module path from basedir in ext/pug.
83
-
84
-
85
- ## v0.0.19
86
-
87
- - bump stylus version to 0.55.0 for removing deprecated dependencies
88
-
89
-
90
- ## v0.0.18
91
-
92
- - fix bug: lsc builder doesn't build unless glslify is enabled
93
-
94
-
95
- ## v0.0.17
96
-
97
- - support `json` API for reading json file in pug
98
-
99
-
100
- ## v0.0.16
101
-
102
- - fix bug: glslify transformed by browserify should have basedir from src file dir.
103
-
104
-
105
- ## v0.0.15
106
-
107
- - upgrade `path-parse` to fix vulnerability
108
- - support glslify transfomration by option `use-glslify`
109
-
110
-
111
- ## v0.0.14
112
-
113
- - add `i18n.intlbase` and `i18n.langauge` pug api and deprecate `intlbase` pug api.
114
-
115
-
116
- ## v0.0.13
117
-
118
- - fix bug: incorrect parameter passing in view/pug to ext/pug
119
-
120
-
121
- ## v0.0.12
122
-
123
- - add bundling sample code
124
- - fix bundling file path shown in log
125
-
126
-
127
- ## v0.0.11
128
-
129
- - fix bug: `desdir` and `base` not passed to pug in pug view constructor
130
-
131
-
132
- ## v0.0.10
133
-
134
- - fix bug: basedir should be opt.basedir
135
-
136
-
137
- ## v0.0.9
138
-
139
- - support pug view engine for express
140
-
141
-
142
- ## v0.0.8
143
-
144
- - fix bug: trying to get mtime of a non-existed file.
145
- - support options for files to ignore. by default, ignore `.git` folders.
146
-
147
-
148
- ## v0.0.7
149
-
150
- - simplify log
151
-
152
-
153
- ## v0.0.6
154
-
155
- - trap exception during `log-dependencies` and prevent from further building.
156
- - keep old dependency if `log-dependencies` fails.
157
-
158
-
159
- ## v0.0.5
160
-
161
- - support bundling
162
-
163
-
164
- ## v0.0.4
165
-
166
- - fix bug in ext/pug: basedir doesn't exist when initing, causing problem when getting dependencies. use path.resolve(srcdir) instead.
167
-
168
-
169
- ## v0.0.3
170
-
171
- - fix typo
172
-
173
-
174
- ## v0.0.2
175
-
176
- - fix bug: let pug use correct filename and basedir parameter. resolve pug files correctly
177
-