@data-visuals/create 6.2.0 → 6.2.1

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": "@data-visuals/create",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Create graphics and features the Data Visuals way.",
5
5
  "scripts": {
6
6
  "build:docs": "doctoc README.md --github",
@@ -27,7 +27,7 @@
27
27
  "@types/node": "^11.9.4",
28
28
  "ansi-colors": "^3.2.3",
29
29
  "archieml": "^0.4.1",
30
- "assets-webpack-plugin": "^7.0.0",
30
+ "assets-webpack-plugin": "^6.1.2",
31
31
  "autoprefixer": "^9.0.2",
32
32
  "aws-sdk": "^2.372.0",
33
33
  "babel-eslint": "^10.0.1",
package/CHANGELOG.md DELETED
@@ -1,315 +0,0 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
3
-
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
- ## Unreleased
8
- ### Added
9
- ### Changed
10
- ### Removed
11
- ### Fixed
12
-
13
- ## [6.2.0] - 2021-09-09
14
- ### Changed
15
- - `templates/__common__/config/tasks/graphics-meta.js`, `templates/__common__/utils/deployment/update-log-sheet.js` - change `description` to `alttext`
16
- - `templates/graphic/app/index.html`, `templates/graphic/app/static.html`, `templates/graphic/app/templates/base.html` - change `description` to `alttext` in HTML templates
17
- - `templates/graphic/graphics-meta.md` - change `description` to `alttext` in documentation
18
-
19
- ## [6.1.0] - 2021-08-25
20
- ### Changed
21
- - `templates/__common__/utils/deployment/update-log-sheet.js` - swap out log sheet for [new one](https://docs.google.com/spreadsheets/d/1hCP5zGx8dNxk59gI9wBSFY2juJVM8OFCDY45VnNb2nI/edit#gid=965603489) with complete metadata columns
22
-
23
- ## [6.0.0] - 2021-08-12
24
- ### Changed
25
- - `templates/__common__/utils/deployment/update-log-sheet.js` - write more metadata from `manifest.json` to the log sheet
26
- - `templates/__common__/utils/deployment/update-readme.js` - add bullets to links pasted to README
27
- - `templates/graphic/app/index.html`, `templates/graphic/app/static.html` - get alt-text from our [graphic ArchieML template](https://docs.google.com/document/d/1BKQy7bsteC7Od5Jgzt_PX8KRe0pD2Ba1LXEj02uWf4I/edit)
28
-
29
- ## [5.0.1] - 2021-08-05
30
- ## Fixed
31
- - `_common_/app/styles/_functions.scss`, `_common_/app/styles/utilities/_embed.scss` - replace `/` with `math.div` to address Dart Sass warnings #94
32
-
33
- ## [5.0.0] - 2021-08-04
34
- ### Changed
35
- - `package.json`, `package-lock.json` - bump `assets-webpack-plugin`, `googleapis`, `imagemin`, `imagemin-gifsicle`, `imagemin-jpegtran`, `imagemin-optipng` packages (major version bumps for `imagemin-gifsicle`, `imagemin-jpegtran`, `imagemin-optipng` require Node.js v10)
36
-
37
- ## [4.0.2] - 2021-06-04
38
- ### Changed
39
- - `package.json`, `package-lock.json` - bump `np` and `doctoc` packages
40
-
41
- ## [4.0.1] - 2021-06-04
42
- ### Removed
43
- - `templates/feature/app/scripts/kickstart.js` - remove trending bar from our feature pages because it was getting in the way of other designs
44
-
45
- ## [4.0.0] - 2021-05-05
46
- ### Changed
47
- - `templates/__common__/config/scripts/build.js` - add script to update the `lastBuildTime` in `build.js`
48
- - `templates/__common__/config/tasks/graphics-meta.js` - add more keys to manifest.json output; simplify warning logs; ignore graphics with no title
49
- - `templates/__common__/config/utils.js` - add a `logMessage` function for console logging with colors
50
- - `templates/feature/project.config.js` - add `lastBuildTime` field to feature config, change `slug` to `projectName`, add comments to clarify which properties should and should not be changed
51
- - `templates/graphic/project.config.js` - add `lastBuildTime` field to graphic config, change `slug` to `projectName`, add comments to clarify which properties should and should not be changed; update default tag to `subject-politics`
52
- - `bin/data-visuals-create`, `README.md`, `templates/__common__/_package.json`, `templates/__common__/utils/deployment/update-log-sheet.js` - change `slug` to `projectName` to avoid confusion with the slug in our project URL and what we add to the CMS
53
- - `templates/graphic/app/index.html`, `templates/graphic/app/static.html`, `templates/graphic/app/templates/base.html` - add caption for graphic context and assume description is for accessibility
54
- - `templates/graphic/graphics-meta.md` - document the new caption field and rules
55
-
56
- ### Added
57
- - `templates/__common__/config/tasks/last-build-time.js` - add script to parse the config file, update the `lastBuildTime` and write the file back to the filepath
58
-
59
- ## [3.8.0] - 2021-04-20
60
- ### Changed
61
- - `templates/__common__/config/tasks/graphics-meta.js` - Adds a graphic note to the manifest file. Also now logs a warning to the terminal if you don't update the tags in the project config.
62
- - ` templates/graphic/app/index.html`,
63
- `templates/graphic/app/static.html`,
64
- ` templates/graphic/app/templates/base.html` - Adds all the proper template attributes to surface notes to the parsing task
65
- ` templates/graphic/graphics-meta.md` - Documents the new key
66
-
67
- ## [3.7.0] - 2021-03-16
68
- ### Changed
69
- - `templates/graphic/project.config.js` - Adds new key for adding customization to the parsing step. For now the only one there is one to ignore Apple News for specified files. Adds some placeholder tags to tag our graphics also. (Tags will be included in the graphic metadata.)
70
- - `templates/__common__/_package.json` - Adds puppeteer and a new `npm run parse` step. Add `npm run parse` to `npm run build` so the parse step runs automatically on deploy.
71
- - `templates/graphic/README.md` - Adds default Chrome install path, required in the parse step.
72
- - `templates/graphic/app/templates/base.html` - New meta tags on graphics to be used internally.
73
- - `templates/graphic/app/index.html`, `templates/graphic/app/static.html` - Add variables to set for graphic metadata, plus data attributes that allow the parser to pull metadata from existing HTML as a fallback.
74
-
75
- ### Added
76
- - ` templates/__common__/_.npmrc`- This tells puppeteer to skip downloading chrome each time we create a new project. Saves us some storage on our machines.
77
- - `templates/__common__/config/scripts/parse.js ` - Task runner that spins up a local server and kicks off the graphics-meta.js step.
78
- - `templates/__common__/config/tasks/graphics-meta.js `- The base for this whole process. At a high level, this will step through the whole project /dist folder and extract all the relevant metadata info we specify. This is also where we capture screenshots of graphics.
79
-
80
- How we generate graphic metadata is also documented in `templates/graphic/graphics-meta.md`.
81
-
82
- ## [3.6.0] - 2021-01-21
83
- ### Changed
84
- - `templates/feature/app/templates/includes/ldjson.html` - change some of our attributes in our structured data schema
85
-
86
- ## [3.5.0] - 2021-01-12
87
- ### Changed
88
- - `templates/__common__/utils/deployment/update-log-sheet.js` - change ID of the Google sheet to write our projects to
89
-
90
- ## [3.4.0] - 2020-12-22
91
- ### Changed
92
- - `package.json` - bump `np` to v7.0.0
93
- - `templates/feature/app/scripts/utils/ad-loader.js` - set correct ad tags for roofline and footer ads
94
- - `templates/feature/app/styles/main-queso.scss`, `templates/feature/app/styles/main.scss` - add chart and graphic CSS by default
95
- - `templates/feature/app/templates/macros/processors-queso.html`, `templates/feature/app/templates/macros/processors.html` - add option to ad to set it as a roofline or footer ad
96
- - `templates/feature/app/index.html`, `templates/feature/app/index-queso.html` - add footer option to ad to set ad tag
97
-
98
- ## [3.3.0] - 2020-11-19
99
- ### Changed
100
- - `templates/graphic/project.config.js`, `templates/feature/project.config.js` - comment the slug and folder variables (folder variable should be changed when the URL slug is changed)
101
- - `templates/feature/app/index-queso.html` - change `{{ context.title }}` to `{{ context.headline }}`, add HTML to include publish and update dates
102
- - `templates/feature/app/index.html`, `templates/feature/project.config.js`, `templates/graphic/app/index.html`, `templates/graphic/app/static.html` - change `{{ context.title }}` to `{{ context.headline }}`
103
- - `templates/feature/app/templates/components/simple-masthead.html`,
104
- `templates/feature/app/templates/includes/logo.html` - change 10th anniversary logo back to original TT logo
105
- - `templates/__common__/app/styles/_typography-queso.scss` - add t-subheader styling
106
-
107
- ### Added
108
- - `templates/__common__/app/templates/macros/prose-queso.html`, `templates/feature/app/templates/macros/processors-queso.html` - added prose and processors with queso styling
109
-
110
- ### Fixed
111
- - `templates/feature/app/index-queso.html`, `templates/feature/app/index.html` - add widont to headline
112
-
113
- ## [3.2.0] - 2020-09-15
114
- ### Changed
115
- - `templates/__common__/config/tasks/nunjucks.js` - added getAuthor() and getAuthorLink() to extract author name and author link for structured data schema
116
- - `templates/feature/app/templates/includes/ldjson.html` - add new structured data attributes
117
-
118
- ## [3.1.0] - 2020-09-02
119
- ### Added
120
- - `templates/feature/app/styles/components/_navbar.scss` - added masthead title to the nav bar component in the `index-queso.html` template
121
- - `templates/feature/app/templates/components/navbar.html` - added additional styling for the masthead title
122
-
123
- ### Fixed
124
- - `config/tasks/serve.js` - Adds an extra reload to refresh the page. When you first run npm run start there's a blip of no CSS while the CSS cleanup step runs. This will refresh again after that's finished so that console error referring to that missing CSS clears.
125
- - `config/tasks/unused-css.js` - Generalizes the gobbing pattern to capture more types of script files and in any folder. Previously CSS classes referenced in JS files weren't making it to the extra-minified CSS file, which is set up to only include classes used in the project.
126
-
127
- ## [3.0.0] - 2020-08-25
128
- ### Changed
129
- - `templates/feature/project.config.js` - change destination s3 bucket on deploy
130
-
131
- ### Fixed
132
- - `package-lock.json` - bump version of `np` package to resolve security vulnerability
133
-
134
- ## [2.8.1] - 2020-07-20
135
- ### Fixed
136
- - `package-lock.json` - bump lodash from 4.17.15 to 4.17.19
137
-
138
- ## [2.8.0] - 2020-07-20
139
- ### Added
140
- - `/feature/app/index-queso.html` - Starter template for queso CSS framework
141
- - `/feature/app/styles/main-queso.scss` - Starter styles for CSS framework
142
- - `/__common__/app/styles/_typography-queso.scss` - Extra typography styles not accounted for in queso-ui and data viz specific overrides of existing helpers. Appended `-queso` as to not be confused with current _typography.scss
143
- - `/feature/app/styles/components/_navbar.scss` - Overrides for queso navbar
144
- - `feature/app/styles/layout/_container.scss` - Additional container classes
145
- - `/feature/app/templates/components/navbar.html` - Standard navbar component (used on TT)
146
- - `/feature/app/templates/components/share.html` - Standard share component (used on TT)
147
- - `/feature/app/templates/includes/logo.html` - Standard logo include (used on TT)
148
-
149
- ### Changed
150
- - `_package.json` - Added queso dependency
151
- - `_variables.scss` - Added variables required for queso
152
- - `/feature/app/scripts/components/RelatedContent.js` and `/feature/app/scripts/components/Story.js` - Sprinkled in queso helpers (to be compatible in either starter template)
153
- - `/feature/app/styles/components/_ads.scss` - Updated teal to match TT site (it's a random darkened-teal for accessibility)
154
- - `/feature/app/styles/main.scss` - Removed sass-mq because it comes with the queso imports and added just the base queso variables and tools. This doesn't actually add any CSS so it's helpful if you ever want to include queso helpers in this file in your project.
155
- - `/feature/app/templates/base.html` - Added more blocks so that the queso starter template could vary in those parts. Example: Google fonts isn't needed in the queso started so we override that with an empty block.
156
-
157
- ## [2.7.2] - 2020-07-01
158
- ### Added
159
- - `templates/feature/app/scripts/packs/graphic.js` - add useful functions to JS for graphics (functions were already available in feature JS)
160
-
161
- ### Fixed
162
- - `templates/feature/app/templates/includes/ldjson.html` - check for `updated` or `update date` so the tracker shows up in search on updates, add `author` field
163
-
164
- ## [2.7.1] - 2020-07-01
165
- ### Added
166
- - `templates/__common__/app/styles/_typography.scss` - add styling for update date #44
167
-
168
- ### Changed
169
- - `templates/feature/app/index.html` - add HTML to handle update date and pub date #44
170
-
171
- ### Fixed
172
- - `templates/feature/app/scripts/utils/feeds.js` - switch v1 API urls to v2 API urls #6
173
- - `templates/feature/app/scripts/components/Story.js` - switch out properties to match v2 API urls #6
174
-
175
- ## [2.7.0] - 2020-07-01
176
- ### Added
177
- - `templates/__common__/config/tasks/templates.js` - add renderStringWithNunjucks() filter to process data variables pulled in from a Google Doc #46
178
- - `templates/graphic/app/templates/macros/processors.html`, `templates/feature/app/templates/macros/processors.html` - separate processors files for graphics and features, add renderStringWithNunjucks() filter to macros #46
179
-
180
- ### Changed
181
- - `templates/feature/app/index.html` - set featureData variable to store data
182
- - `templates/graphic/app/index.html`, `templates/graphic/app/static.html` - set graphicData variable to store data, render graphic prose with prose macro so we can add data variables
183
-
184
- ### Removed
185
- - `templates/__common__/app/templates/macros/processors.html` - remove common processors file
186
-
187
- ## [2.6.0] - 2020-05-08
188
- ### Added
189
- - `templates/__common__/config/tasks/unused-css.js` - A step that looks at the CSS file linked in any .html file, parses that CSS, and writes new CSS based only on what the HTML needs through the magic of this wonderful tool, [purgecss](https://github.com/FullHuman/purgecss)
190
-
191
- ### Changed
192
- - `templates/__common__/config/scripts/build.js` - This cleanup step will now run right after the HTML of the templates compile and before the file revving step
193
- - `templates/__common__/config/tasks/serve.js` - New watchers added mostly in the build output folder to re-run the CSS cleanup step after the build
194
- - `templates/__common__/_package.json` - Adds purgecss as a dev dependency
195
-
196
- ## [2.5.3] - 2020-04-21
197
- ### Added
198
- - `_variables.scss` - add elections color palette
199
- - `deploy.js` - add reminder to check social media for features and fetch the latest data
200
- - `README.md` - update feature README with more publication reminders
201
-
202
- ## [2.4.3] - 2020-02-11
203
- ### Fixed
204
- - `package.json` - removed `npm run assets:pull` from the `predeploy` command #39
205
-
206
- ## [2.4.2] - 2020-01-15
207
- ### Changed
208
- - `package.json` - pull assets and push to workspace on predeploy, which is run automatically before deploy #31
209
- - `feature/app/styles/components/_related-content.scss`, `feature/app/styles/components/_ads.scss`,
210
- `processors.html` - update appearance of ads
211
- - `graphic/README.md, feature/README.md` - added project launch checklist
212
-
213
- ## [2.4.1]
214
- ### Changed
215
- - `update-log-sheet.js` - change sheet to new 2020 data visuals work sheet
216
-
217
- ## [2.4.0]
218
- ### Added
219
- - `_polls.scss`, `_variables.scss`, `_graphic.scss`, `mixins/_grid.scss` — add styles needed for poll graphics
220
- - `templates.js`, `nunjucks.js` — add helpers needed for poll graphics
221
-
222
- ## [2.3.2] - 2019-11-26
223
- ### Changed
224
- - `graphic/app/scripts/embeds/frames.js` - don't pass debounced function to resize listener, simplify code #29
225
-
226
- ## [2.3.1] - 2019-11-15
227
- ### Fixed
228
- - `deploy.js` - add property to iframe sandbox so user can click to other pages #25
229
- - `project.config.js` - change default archieML doc to be the one we actually use #26
230
- - `update-log-sheet.js` - add year to repo name for `newsapps-dailies` graphics (post reorganization of our dailies)
231
-
232
- ## [2.3.0] - 2019-10-28
233
- ### Changed
234
- - `feature/app/templates/components/simple-masthead.html` - switch out normal logo for 10th anniversary logo
235
-
236
- ## [2.2.1] - 2019-10-22
237
- ### Fixed
238
- - `__common__/utils/deployment/update-log-sheet.js` - handle cases when there are no files specified in the config file
239
-
240
- ## [2.2.0] - 2019-10-17
241
- ### Added
242
- - `__common__/app/templates/macros/processors.html` - add ad macro to processors file #16
243
- - `feature/app/scripts/packs/graphic.js` - add graphic pack for code in a feature with resize() function #22
244
-
245
- ### Changed
246
- - `feature/app/index.html` - import ad from processors file #16
247
- - `feature/app/scripts/packs/main.js` - import new graphic pack
248
- - `graphic/app/scripts/packs/graphic.js` - fixed data path
249
-
250
- ### Removed
251
- - `feature/app/templates/macros/ads.html` - remove special ad macro from feature #16
252
-
253
- ## [2.1.0] - 2019-10-17
254
- ### Changed
255
- - `_common_/utils/deployment/deploy.js` - change deploy function to update log sheet and README #20
256
- - `_common_/utils/fetch/authorize.js`- change SCOPES to include write permissions #20
257
- - `project.config.js` for graphics and features - add `createDate` and `slug` property
258
-
259
- ### Added
260
- - `_common_/utils/deployment/update-log-sheet.js` - add utility file for adding to data visuals log sheet #20
261
- - `_common_/utils/deployment/update-readme.js` - add utility file for adding links to README #20
262
-
263
- ## [2.0.0] - 2019-09-25
264
- ### Added
265
- - `graphic/app/styles/raw-plugin-styles.html` - add styles snippet that goes into the CSS content section of Raw Plugins
266
- - `graphic/app/static.html` - template for non-scripted graphics
267
- - `graphic/app/scripts/static.js` - pack for non-scripted graphics
268
-
269
- ### Changed
270
- - Switched from using Pym to `frames` library #17
271
-
272
- ### Removed
273
- - `graphic/app/scripts/embeds/pym.js`
274
-
275
- ## [1.2.0] - 2019-09-19
276
- ### Fixed
277
- - Fixed security vulnerability introduced by `lodash` #10
278
-
279
- ### Added
280
- - Added `widont` tag to graphic and feature templates #11
281
- - Added a CHANGELOG #13
282
- - Added a subheader example to the feature template #14
283
- - Added a subheader macro #14
284
- - Added styling for a subheader #14
285
-
286
- ## [1.1.1] - 2019-05-08
287
- * Change GA event tags
288
-
289
- ## [1.1.0] - 2019-04-03
290
- - Redundant ternary a828d34
291
- - Better default doc and sheet examples b8abc16
292
- - Merge branch 'master' into develop d82ebed
293
- - Make https serving an option set with an env variable 1310cdb
294
-
295
- https://github.com/texastribune/data-visuals-create/compare/1.0.1...1.1.0
296
-
297
- ## [1.0.1] - 2019-03-20
298
- - Fix bug in doc-to-archieml parser with lists 6717876
299
- - Update Getting started with right path 5d24a29
300
-
301
- https://github.com/texastribune/data-visuals-create/compare/1.0.0...1.0.1
302
-
303
- ## [1.0.0] - 2019-03-05
304
-
305
- ## [1.0.0-alpha] - 2019-02-27
306
-
307
- ## [0.36.0] - 2019-02-19
308
-
309
- ## [0.35.0] - 2019-01-29
310
-
311
- ## [0.34.1] - 2019-01-14
312
-
313
- ## [0.34.0] - 2019-01-11
314
-
315
- ## [0.33.0] - 2018-12-04