@atomicsmash/cli 10.0.1 → 11.0.0-beta.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"pull-database.d.ts","sourceRoot":"","sources":["../../src/commands/pull-database.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,kBAAkB,CAAC;AACvC,eAAO,MAAM,QAAQ,oEAC6C,CAAC;AACnE,wBAAsB,OAAO,kBA4I5B"}
1
+ {"version":3,"file":"pull-database.d.ts","sourceRoot":"","sources":["../../src/commands/pull-database.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,kBAAkB,CAAC;AACvC,eAAO,MAAM,QAAQ,oEAC6C,CAAC;AACnE,wBAAsB,OAAO,kBAgJ5B"}
@@ -79,6 +79,10 @@ export async function handler() {
79
79
  .then(async () => {
80
80
  await stopRunningMessage();
81
81
  console.log("Database downloaded.");
82
+ await execute(`wp db check`).catch(async () => {
83
+ await execute(`wp db create`);
84
+ console.log("Local database created.");
85
+ });
82
86
  const stopRunningMessage2 = startRunningMessage("Importing database");
83
87
  await execute(`wp db query < ${tmpFile}`)
84
88
  .then(async () => {
@@ -2,6 +2,7 @@ import type { YargsInstance } from "../cli.js";
2
2
  import type { ArgumentsCamelCase } from "yargs";
3
3
  export declare const command = "svg";
4
4
  export declare const describe = "Generate an SVG sprite from a group of SVGs.";
5
+ export declare const deprecated = "Migrate to using @atomicsmash/compiler, which supports an icons folder in the src folder.";
5
6
  export declare const builder: (yargs: YargsInstance) => import("yargs").Argv<import("yargs").Omit<{}, "in" | "out"> & import("yargs").InferredOptionTypes<{
6
7
  in: {
7
8
  demandOption: true;
@@ -1 +1 @@
1
- {"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/commands/svg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAOhD,eAAO,MAAM,OAAO,QAAQ,CAAC;AAC7B,eAAO,MAAM,QAAQ,iDAAiD,CAAC;AACvE,eAAO,MAAM,OAAO,GAAa,OAAO,aAAa;;;;;;;;;;;;;GAiBpD,CAAC;AAEF,wBAAgB,OAAO,CACtB,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAmErE"}
1
+ {"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/commands/svg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAOhD,eAAO,MAAM,OAAO,QAAQ,CAAC;AAC7B,eAAO,MAAM,QAAQ,iDAAiD,CAAC;AACvE,eAAO,MAAM,UAAU,8FACqE,CAAC;AAC7F,eAAO,MAAM,OAAO,GAAa,OAAO,aAAa;;;;;;;;;;;;;GAiBpD,CAAC;AAEF,wBAAgB,OAAO,CACtB,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAmErE"}
@@ -5,6 +5,7 @@ import SVGSpriter from "svg-sprite";
5
5
  import File from "vinyl";
6
6
  export const command = "svg";
7
7
  export const describe = "Generate an SVG sprite from a group of SVGs.";
8
+ export const deprecated = "Migrate to using @atomicsmash/compiler, which supports an icons folder in the src folder.";
8
9
  export const builder = function (yargs) {
9
10
  return yargs
10
11
  .options({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicsmash/cli",
3
- "version": "10.0.1",
3
+ "version": "11.0.0-beta.2",
4
4
  "description": "A collection of CLI tools by Atomic Smash.",
5
5
  "keywords": [],
6
6
  "homepage": "https://www.atomicsmash.co.uk/",
@@ -40,8 +40,8 @@
40
40
  "lint:types": "tsc -b"
41
41
  },
42
42
  "dependencies": {
43
- "@atomicsmash/date-php": "^2.1.0",
44
- "@atomicsmash/smash-config": "^1.0.1",
43
+ "@atomicsmash/date-php": "^2.2.0-beta.0",
44
+ "@atomicsmash/smash-config": "^1.0.2-beta.0",
45
45
  "@types/vinyl": "^2.0.12",
46
46
  "glob-promise": "^6.0.7",
47
47
  "svg-sprite": "^2.0.4",
@@ -49,11 +49,11 @@
49
49
  "yargs": "^18.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@atomicsmash/blocks-helpers": "^7.2.1",
52
+ "@atomicsmash/blocks-helpers": "^7.2.2-beta.0",
53
53
  "@types/svg-sprite": "^0.0.39"
54
54
  },
55
55
  "peerDependencies": {
56
- "dotenv": "^17.2.3",
56
+ "dotenv": "^17.3.1",
57
57
  "typescript": "~5.9.3"
58
58
  }
59
59
  }