create-appsemble 0.20.11 → 0.20.14

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.18.23/config/assets/logo.svg) Appsemble Create
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.14/config/assets/logo.svg) Appsemble Create
2
2
 
3
3
  > Bootstrap an Appsemble block
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/create-appsemble)](https://www.npmjs.com/package/create-appsemble)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.18.23/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.18.23)
7
- [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.18.23/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.14/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.14)
7
+ [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.20.14/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
8
8
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
9
9
 
10
10
  ## Usage
@@ -31,5 +31,5 @@ npm init appsemble block
31
31
 
32
32
  ## License
33
33
 
34
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.18.23/LICENSE.md) ©
34
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.14/LICENSE.md) ©
35
35
  [Appsemble](https://appsemble.com)
package/commands/block.js CHANGED
@@ -1,20 +1,13 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.handler = exports.builder = exports.description = exports.command = void 0;
7
- const promises_1 = require("fs/promises");
8
- const path_1 = require("path");
9
- const node_utils_1 = require("@appsemble/node-utils");
10
- const fs_extra_1 = require("fs-extra");
11
- const inquirer_1 = __importDefault(require("inquirer"));
12
- const package_json_1 = __importDefault(require("../package.json"));
13
- const templateDir = (0, path_1.resolve)(__dirname, '../templates');
14
- exports.command = 'block';
15
- exports.description = 'Bootstrap a new Appsemble block.';
16
- async function builder(yargs) {
17
- const choices = await (0, promises_1.readdir)(templateDir);
1
+ import { cp, readdir } from 'fs/promises';
2
+ import { join } from 'path';
3
+ import { logger, readData, writeData } from '@appsemble/node-utils';
4
+ import inquirer from 'inquirer';
5
+ import pkg from '../package.json' assert { type: 'json' };
6
+ const templateDir = new URL('../templates/', import.meta.url);
7
+ export const command = 'block';
8
+ export const description = 'Bootstrap a new Appsemble block.';
9
+ export async function builder(yargs) {
10
+ const choices = await readdir(templateDir);
18
11
  return yargs
19
12
  .option('organization', {
20
13
  describe: 'The ID the block should be created for.',
@@ -27,10 +20,9 @@ async function builder(yargs) {
27
20
  choices,
28
21
  });
29
22
  }
30
- exports.builder = builder;
31
- async function handler(args) {
32
- const choices = await (0, promises_1.readdir)(templateDir);
33
- const answers = await inquirer_1.default.prompt([
23
+ export async function handler(args) {
24
+ const choices = await readdir(templateDir);
25
+ const answers = await inquirer.prompt([
34
26
  !args.organization && {
35
27
  name: 'organization',
36
28
  message: 'For which organization is the block?',
@@ -46,19 +38,23 @@ async function handler(args) {
46
38
  const organization = answers.organization || args.organization;
47
39
  const name = answers.name || args.name;
48
40
  const template = answers.template || args.template;
49
- const { version } = package_json_1.default;
50
- const outputPath = (0, path_1.join)(process.cwd(), 'blocks', name);
51
- const inputPath = (0, path_1.join)(templateDir, template);
52
- const pkgPath = (0, path_1.join)(inputPath, 'package.json');
53
- const [inputPkg] = await (0, node_utils_1.readData)(pkgPath);
41
+ const { version } = pkg;
42
+ const outputPath = join(process.cwd(), 'blocks', name);
43
+ const inputPath = new URL(`${template}/`, templateDir);
44
+ const pkgPath = new URL('package.json', inputPath);
45
+ const [inputPkg] = await readData(pkgPath);
54
46
  const outputPkg = {
55
47
  name: `@${organization}/${name}`,
56
48
  version,
57
49
  ...inputPkg,
58
50
  };
59
- await (0, fs_extra_1.copy)(inputPath, outputPath, { filter: (src) => src !== pkgPath });
60
- await (0, node_utils_1.writeData)((0, path_1.join)(outputPath, 'package.json'), outputPkg);
61
- node_utils_1.logger.info(`Successfully created @${organization}/${name}/${version} at ${outputPath}`);
51
+ await cp(inputPath, outputPath, {
52
+ errorOnExist: true,
53
+ filter: (src) => !src.endsWith('package.json'),
54
+ force: false,
55
+ recursive: true,
56
+ });
57
+ await writeData(join(outputPath, 'package.json'), outputPkg);
58
+ logger.info(`Successfully created @${organization}/${name}/${version} at ${outputPath}`);
62
59
  }
63
- exports.handler = handler;
64
60
  //# sourceMappingURL=block.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.js","sourceRoot":"","sources":["block.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAsC;AACtC,+BAAqC;AAErC,sDAAoE;AACpE,uCAAgC;AAChC,wDAAgC;AAIhC,mEAAkC;AAElC,MAAM,WAAW,GAAG,IAAA,cAAO,EAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAE1C,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,WAAW,GAAG,kCAAkC,CAAC;AAQvD,KAAK,UAAU,OAAO,CAAC,KAAW;IACvC,MAAM,OAAO,GAAG,MAAM,IAAA,kBAAO,EAAC,WAAW,CAAC,CAAC;IAE3C,OAAO,KAAK;SACT,MAAM,CAAC,cAAc,EAAE;QACtB,QAAQ,EAAE,yCAAyC;KACpD,CAAC;SACD,MAAM,CAAC,MAAM,EAAE;QACd,QAAQ,EAAE,uBAAuB;KAClC,CAAC;SACD,MAAM,CAAC,UAAU,EAAE;QAClB,QAAQ,EAAE,sBAAsB;QAChC,OAAO;KACR,CAAC,CAAC;AACP,CAAC;AAdD,0BAcC;AAEM,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Y,IAAI,IAAI,EAAE;QAChC,OAAO;QACP,GAAG,QAAQ;KACZ,CAAC;IACF,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE;QAC9B,YAAY,EAAE,IAAI;QAClB,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC;QAC9C,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,EAAE,SAAS,CAAC,CAAC;IAC7D,MAAM,CAAC,IAAI,CAAC,yBAAyB,YAAY,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,EAAE,CAAC,CAAC;AAC3F,CAAC"}
package/commands/block.ts CHANGED
@@ -1,15 +1,14 @@
1
- import { readdir } from 'fs/promises';
2
- import { join, resolve } from 'path';
1
+ import { cp, readdir } from 'fs/promises';
2
+ import { join } from 'path';
3
3
 
4
4
  import { logger, readData, writeData } from '@appsemble/node-utils';
5
- import { copy } from 'fs-extra';
6
5
  import inquirer from 'inquirer';
7
6
  import { PackageJson } from 'type-fest';
8
7
  import { Argv } from 'yargs';
9
8
 
10
- import pkg from '../package.json';
9
+ import pkg from '../package.json' assert { type: 'json' };
11
10
 
12
- const templateDir = resolve(__dirname, '../templates');
11
+ const templateDir = new URL('../templates/', import.meta.url);
13
12
 
14
13
  export const command = 'block';
15
14
  export const description = 'Bootstrap a new Appsemble block.';
@@ -60,15 +59,20 @@ export async function handler(args: BlockArgs): Promise<void> {
60
59
 
61
60
  const { version } = pkg;
62
61
  const outputPath = join(process.cwd(), 'blocks', name);
63
- const inputPath = join(templateDir, template);
64
- const pkgPath = join(inputPath, 'package.json');
62
+ const inputPath = new URL(`${template}/`, templateDir);
63
+ const pkgPath = new URL('package.json', inputPath);
65
64
  const [inputPkg] = await readData<PackageJson>(pkgPath);
66
65
  const outputPkg = {
67
66
  name: `@${organization}/${name}`,
68
67
  version,
69
68
  ...inputPkg,
70
69
  };
71
- await copy(inputPath, outputPath, { filter: (src) => src !== pkgPath });
70
+ await cp(inputPath, outputPath, {
71
+ errorOnExist: true,
72
+ filter: (src) => !src.endsWith('package.json'),
73
+ force: false,
74
+ recursive: true,
75
+ });
72
76
  await writeData(join(outputPath, 'package.json'), outputPkg);
73
77
  logger.info(`Successfully created @${organization}/${name}/${version} at ${outputPath}`);
74
78
  }
package/index.js CHANGED
@@ -1,36 +1,10 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || function (mod) {
20
- if (mod && mod.__esModule) return mod;
21
- var result = {};
22
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
- __setModuleDefault(result, mod);
24
- return result;
25
- };
26
- var __importDefault = (this && this.__importDefault) || function (mod) {
27
- return (mod && mod.__esModule) ? mod : { "default": mod };
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- const node_utils_1 = require("@appsemble/node-utils");
31
- const yargs_1 = __importDefault(require("yargs"));
32
- const block = __importStar(require("./commands/block"));
33
- yargs_1.default
2
+ import { configureLogger, handleError } from '@appsemble/node-utils';
3
+ import yargs from 'yargs';
4
+ import * as block from './commands/block.js';
5
+ import pkg from './package.json' assert { type: 'json' };
6
+ yargs()
7
+ .version(pkg.version)
34
8
  .option('verbose', {
35
9
  alias: 'v',
36
10
  describe: 'Increase verbosity',
@@ -41,10 +15,10 @@ yargs_1.default
41
15
  describe: 'Decrease verbosity',
42
16
  type: 'count',
43
17
  })
44
- .middleware([node_utils_1.configureLogger])
18
+ .middleware([configureLogger])
45
19
  .command(block)
46
20
  .demandCommand(1)
47
- .fail(node_utils_1.handleError)
21
+ .fail(handleError)
48
22
  .help()
49
23
  .completion()
50
24
  .parse(process.argv.slice(2));
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAqE;AACrE,kDAA0B;AAE1B,wDAA0C;AAE1C,eAAK;KACF,MAAM,CAAC,SAAS,EAAE;IACjB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,OAAO;CACd,CAAC;KACD,MAAM,CAAC,OAAO,EAAE;IACf,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,OAAO;CACd,CAAC;KACD,UAAU,CAAC,CAAC,4BAAe,CAAC,CAAC;KAC7B,OAAO,CAAC,KAAK,CAAC;KACd,aAAa,CAAC,CAAC,CAAC;KAChB,IAAI,CAAC,wBAAW,CAAC;KACjB,IAAI,EAAE;KACN,UAAU,EAAE;KACZ,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAC7C,OAAO,GAAG,MAAM,gBAAgB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAEzD,KAAK,EAAE;KACJ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,SAAS,EAAE;IACjB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,OAAO;CACd,CAAC;KACD,MAAM,CAAC,OAAO,EAAE;IACf,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,OAAO;CACd,CAAC;KACD,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC;KAC7B,OAAO,CAAC,KAAiC,CAAC;KAC1C,aAAa,CAAC,CAAC,CAAC;KAChB,IAAI,CAAC,WAAW,CAAC;KACjB,IAAI,EAAE;KACN,UAAU,EAAE;KACZ,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
package/index.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { configureLogger, handleError } from '@appsemble/node-utils';
3
- import yargs from 'yargs';
3
+ import yargs, { CommandModule } from 'yargs';
4
4
 
5
- import * as block from './commands/block';
5
+ import * as block from './commands/block.js';
6
+ import pkg from './package.json' assert { type: 'json' };
6
7
 
7
- yargs
8
+ yargs()
9
+ .version(pkg.version)
8
10
  .option('verbose', {
9
11
  alias: 'v',
10
12
  describe: 'Increase verbosity',
@@ -16,7 +18,7 @@ yargs
16
18
  type: 'count',
17
19
  })
18
20
  .middleware([configureLogger])
19
- .command(block)
21
+ .command(block as unknown as CommandModule)
20
22
  .demandCommand(1)
21
23
  .fail(handleError)
22
24
  .help()
package/jest.config.js CHANGED
@@ -1 +1,3 @@
1
- module.exports = require('../../config/jest/config')(__dirname);
1
+ import { createJestConfig } from '../../config/jest/config.js';
2
+
3
+ export default createJestConfig(import.meta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-appsemble",
3
- "version": "0.20.11",
3
+ "version": "0.20.14",
4
4
  "description": "Bootstrap an Appsemble project",
5
5
  "keywords": [
6
6
  "app",
@@ -20,7 +20,8 @@
20
20
  },
21
21
  "license": "LGPL-3.0-only",
22
22
  "author": "Appsemble <info@appsemble.com> (https://appsemble.com)",
23
- "bin": "index.js",
23
+ "type": "module",
24
+ "bin": "./index.js",
24
25
  "files": [
25
26
  "**/*.d.ts",
26
27
  "**/*.js",
@@ -29,20 +30,18 @@
29
30
  ],
30
31
  "scripts": {
31
32
  "prepack": "tsc --noEmit false",
32
- "test": "jest"
33
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
33
34
  },
34
35
  "dependencies": {
35
- "@appsemble/node-utils": "0.20.11",
36
- "fs-extra": "^10.0.0",
37
- "inquirer": "^8.0.0",
36
+ "@appsemble/node-utils": "0.20.14",
37
+ "inquirer": "^9.0.0",
38
38
  "type-fest": "^2.0.0",
39
39
  "yargs": "^17.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/fs-extra": "^9.0.0",
43
- "@types/inquirer": "^8.0.0"
42
+ "@types/inquirer": "^9.0.0"
44
43
  },
45
44
  "engines": {
46
- "node": ">=14.0.0"
45
+ "node": ">=18"
47
46
  }
48
47
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "private": true,
3
+ "type": "module",
3
4
  "dependencies": {
4
- "@appsemble/sdk": "0.20.11",
5
+ "@appsemble/sdk": "0.20.14",
5
6
  "mini-jsx": "^3.0.0"
6
7
  }
7
8
  }
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "private": true,
3
+ "type": "module",
3
4
  "dependencies": {
4
- "@appsemble/preact": "0.20.11",
5
- "@appsemble/sdk": "0.20.11",
5
+ "@appsemble/preact": "0.20.14",
6
+ "@appsemble/sdk": "0.20.14",
6
7
  "preact": "^10.0.0"
7
8
  }
8
9
  }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "private": true,
3
+ "type": "module",
3
4
  "dependencies": {
4
- "@appsemble/sdk": "0.20.11"
5
+ "@appsemble/sdk": "0.20.14"
5
6
  }
6
7
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../tsconfig",
3
3
  "compilerOptions": {
4
- "module": "commonjs",
5
4
  "types": ["jest", "node"]
6
5
  }
7
6
  }