@nitro/exporter 11.0.6 → 11.0.7
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 +3 -3
- package/readme.md +67 -68
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitro/exporter",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.7",
|
|
4
4
|
"description": "An exporting package for nitro. Generate static packages with ease.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"exporter"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nitro/app": ">=11.0.
|
|
32
|
-
"@nitro/gulp": ">=11.0.
|
|
31
|
+
"@nitro/app": ">=11.0.7",
|
|
32
|
+
"@nitro/gulp": ">=11.0.7"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"array-unique": "0.3.2",
|
package/readme.md
CHANGED
|
@@ -50,7 +50,7 @@ Renaming is used with native `gulp.src(...).pipe(gulp.dest(...))`.
|
|
|
50
50
|
|
|
51
51
|
example:
|
|
52
52
|
|
|
53
|
-
```
|
|
53
|
+
```js
|
|
54
54
|
[
|
|
55
55
|
{
|
|
56
56
|
src: 'export/assets/**',
|
|
@@ -69,7 +69,7 @@ Defines string replacements. Takes an array of objects with `glob` and `replace`
|
|
|
69
69
|
|
|
70
70
|
example:
|
|
71
71
|
|
|
72
|
-
```
|
|
72
|
+
```js
|
|
73
73
|
[
|
|
74
74
|
{
|
|
75
75
|
glob: ['export/*.html', 'export/css/*.css'],
|
|
@@ -113,79 +113,78 @@ example: `false`
|
|
|
113
113
|
|
|
114
114
|
## Example Exporter Config
|
|
115
115
|
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
]
|
|
116
|
+
```js
|
|
117
|
+
{
|
|
118
|
+
dest: 'export',
|
|
119
|
+
i18n: [],
|
|
120
|
+
publics: true,
|
|
121
|
+
renames: [
|
|
122
|
+
{
|
|
123
|
+
src: 'export/assets/**',
|
|
124
|
+
base: 'export/assets',
|
|
125
|
+
dest: 'export/',
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
'replacements': [
|
|
129
|
+
{
|
|
130
|
+
glob: ['export/*.html'],
|
|
131
|
+
replace: [
|
|
132
|
+
{
|
|
133
|
+
from: '/assets/',
|
|
134
|
+
to: '',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
from: '/content/',
|
|
138
|
+
to: 'content/',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
from: ' href="/?([a-z0-9-]+)"',
|
|
142
|
+
to: ' href="$1.html"',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
glob: ['export/css/*.css'],
|
|
148
|
+
replace: [
|
|
149
|
+
{
|
|
150
|
+
from: '/assets/',
|
|
151
|
+
to: '../',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
from: '/content/',
|
|
155
|
+
to: '../content/',
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
glob: ['export/js/*.js'],
|
|
161
|
+
replace: [
|
|
162
|
+
{
|
|
163
|
+
from: '/assets/',
|
|
164
|
+
to: '',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
from: '/api',
|
|
168
|
+
to: 'api'
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
views: true,
|
|
174
|
+
minifyHtml: false,
|
|
175
|
+
zip: false,
|
|
176
|
+
}
|
|
177
|
+
|
|
179
178
|
```
|
|
180
179
|
|
|
181
180
|
## Multiple Exporter configurations
|
|
182
181
|
|
|
183
|
-
You can define multiple exporter configuration objects, by setting the `exporter` to an array.
|
|
182
|
+
You can define multiple exporter configuration objects, by setting the `exporter` node to an array.
|
|
184
183
|
|
|
185
184
|
### Example
|
|
186
185
|
|
|
187
|
-
```
|
|
188
|
-
|
|
186
|
+
```js
|
|
187
|
+
[
|
|
189
188
|
{
|
|
190
189
|
dest: 'export',
|
|
191
190
|
i18n: [],
|