@wp-operations/wp-ops 0.5.3 → 0.5.4

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": "@wp-operations/wp-ops",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "The wp-operations tool. One install gives the platform and wp-ops, wp-app, wp-ide and wp-code.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -10,6 +10,7 @@ import {
10
10
  APP_INDEX,
11
11
  DEPLOY_APPS,
12
12
  DEPLOY_PLATFORM,
13
+ GITATTRIBUTES,
13
14
  GITIGNORE,
14
15
  appStyle,
15
16
  composerWorkflow,
@@ -123,6 +124,7 @@ function writeWorkflows(root, version, created) {
123
124
  writeNew(path.join(dir, 'composer.yml'), composerWorkflow(version), created);
124
125
  writeNew(path.join(dir, 'deploy-apps.yml'), DEPLOY_APPS, created);
125
126
  writeNew(path.join(dir, 'deploy-platform.yml'), DEPLOY_PLATFORM, created);
127
+ writeNew(path.join(root, '.gitattributes'), GITATTRIBUTES, created);
126
128
  }
127
129
 
128
130
  function themeVersion(dir) {
package/src/templates.js CHANGED
@@ -7,6 +7,18 @@ node_modules/
7
7
  Thumbs.db
8
8
  `;
9
9
 
10
+ export const GITATTRIBUTES = `* text=auto eol=lf
11
+ *.png binary
12
+ *.jpg binary
13
+ *.jpeg binary
14
+ *.gif binary
15
+ *.webp binary
16
+ *.ico binary
17
+ *.woff binary
18
+ *.woff2 binary
19
+ *.zip binary
20
+ `;
21
+
10
22
  export function composerWorkflow(version) {
11
23
  return `name: composer
12
24