@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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/readme.md +67 -68
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitro/exporter",
3
- "version": "11.0.6",
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.6",
32
- "@nitro/gulp": ">=11.0.6"
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
- "exporter": [
118
- {
119
- "dest": "export",
120
- "i18n": [],
121
- "publics": true,
122
- "renames": [
123
- {
124
- "src": "export/assets/**",
125
- "base": "export/assets",
126
- "dest": "export/"
127
- }
128
- ],
129
- "replacements": [
130
- {
131
- glob: ['export/*.html'],
132
- replace: [
133
- {
134
- from: '/assets/',
135
- to: '',
136
- },
137
- {
138
- from: '/content/',
139
- to: 'content/',
140
- },
141
- {
142
- from: ' href="/?([a-z0-9-]+)"',
143
- to: ' href="$1.html"',
144
- },
145
- ],
146
- },
147
- {
148
- glob: ['export/css/*.css'],
149
- replace: [
150
- {
151
- from: '/assets/',
152
- to: '../',
153
- },
154
- {
155
- from: '/content/',
156
- to: '../content/',
157
- },
158
- ],
159
- },
160
- {
161
- "glob": ["export/js/*.js"],
162
- "replace": [
163
- {
164
- from: '/assets/',
165
- to: '',
166
- },
167
- {
168
- "from": "/api",
169
- "to": "api"
170
- }
171
- ]
172
- },
173
- ],
174
- "views": true,
175
- "minifyHtml": false,
176
- "zip": false,
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
- exporter: [
186
+ ```js
187
+ [
189
188
  {
190
189
  dest: 'export',
191
190
  i18n: [],