mlcl 1.0.2 → 1.0.5

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 (24) hide show
  1. package/README.md +1 -1
  2. package/build/API/resource/payment/platforms/stripe/plans/index.js +4 -0
  3. package/build/API/resource/payment/platforms/stripe/plans/stripeBusinessMolecule.js +1 -1
  4. package/build/API/resource/payment/platforms/stripe/plans/stripeBusinessMoleculeReduced.js +21 -0
  5. package/build/API/resource/payment/platforms/stripe/plans/stripeMonthlyMolecule.js +1 -1
  6. package/build/API/resource/payment/platforms/stripe/plans/stripeMonthlyMoleculeReduced.js +18 -0
  7. package/build/API/resource/payment/platforms/stripe/plans/stripeSingleUseMolecule.js +1 -1
  8. package/build/API/resource/payment/platforms/stripe/plans/stripeSingleUseMoleculeReduced.js +19 -0
  9. package/build/API/resource/payment/platforms/stripe/plans/stripeUnlimitedUseMolecule.js +1 -1
  10. package/build/API/resource/payment/platforms/stripe/plans/stripeUnlimitedUseMoleculeReduced.js +19 -0
  11. package/build/commands/clone.js +0 -1
  12. package/build/commands/utilities/checkoutSelectionBranch.js +7 -3
  13. package/package.json +3 -2
  14. package/src/API/resource/molecule/types.ts +14 -0
  15. package/src/API/resource/payment/platforms/stripe/plans/index.ts +4 -0
  16. package/src/API/resource/payment/platforms/stripe/plans/stripeBusinessMolecule.ts +1 -1
  17. package/src/API/resource/payment/platforms/stripe/plans/stripeBusinessMoleculeReduced.ts +23 -0
  18. package/src/API/resource/payment/platforms/stripe/plans/stripeMonthlyMolecule.ts +1 -1
  19. package/src/API/resource/payment/platforms/stripe/plans/stripeMonthlyMoleculeReduced.ts +20 -0
  20. package/src/API/resource/payment/platforms/stripe/plans/stripeSingleUseMolecule.ts +1 -1
  21. package/src/API/resource/payment/platforms/stripe/plans/stripeSingleUseMoleculeReduced.ts +21 -0
  22. package/src/API/resource/payment/platforms/stripe/plans/stripeUnlimitedUseMolecule.ts +1 -1
  23. package/src/API/resource/payment/platforms/stripe/plans/stripeUnlimitedUseMoleculeReduced.ts +21 -0
  24. package/src/commands/utilities/checkoutSelectionBranch.ts +6 -3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # mlcl
2
2
 
3
- This package contains command line tools to help with managing full-stack, cross-platform apps assembled with [Molecule.dev](https://www.molecule.dev).
3
+ Command line tools to help with managing full-stack, cross-platform apps assembled with [Molecule.dev](https://www.molecule.dev).
4
4
 
5
5
 
6
6
  ## Usage
@@ -4,8 +4,12 @@
4
4
  * @module
5
5
  */
6
6
  export * from './stripeBusinessMolecule.js';
7
+ export * from './stripeBusinessMoleculeReduced.js';
7
8
  export * from './stripeMonthly.js';
8
9
  export * from './stripeMonthlyMolecule.js';
10
+ export * from './stripeMonthlyMoleculeReduced.js';
9
11
  export * from './stripeSingleUseMolecule.js';
12
+ export * from './stripeSingleUseMoleculeReduced.js';
10
13
  export * from './stripeUnlimitedUseMolecule.js';
14
+ export * from './stripeUnlimitedUseMoleculeReduced.js';
11
15
  export * from './stripeYearly.js';
@@ -7,7 +7,7 @@ export const stripeBusinessMolecule = {
7
7
  platformProductId: ``,
8
8
  alias: `businessMolecule`,
9
9
  period: ``,
10
- price: `$449`,
10
+ price: `$1499`,
11
11
  allowMultiple: true,
12
12
  minimumQuantity: 10,
13
13
  autoRenews: false,
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The reduced business Stripe plan for molecules.
3
+ */
4
+ export const stripeBusinessMoleculeReduced = {
5
+ planKey: `stripeBusinessMoleculeReduced`,
6
+ platformKey: `stripe`,
7
+ platformProductId: ``,
8
+ alias: `businessMolecule`,
9
+ period: ``,
10
+ price: `$249`,
11
+ allowMultiple: true,
12
+ minimumQuantity: 10,
13
+ autoRenews: false,
14
+ title: `Business Molecule`,
15
+ description: `Includes all of the core functionality available for full-stack applications.`,
16
+ capabilities: {
17
+ forMolecules: true,
18
+ premium: true,
19
+ attachments: true,
20
+ }
21
+ };
@@ -7,7 +7,7 @@ export const stripeMonthlyMolecule = {
7
7
  platformProductId: ``,
8
8
  alias: `monthlyMolecule`,
9
9
  period: `month`,
10
- price: `$19`,
10
+ price: `$99`,
11
11
  autoRenews: true,
12
12
  title: `Monthly Molecule`,
13
13
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The reduced monthly Stripe plan for molecules.
3
+ */
4
+ export const stripeMonthlyMoleculeReduced = {
5
+ planKey: `stripeMonthlyMoleculeReduced`,
6
+ platformKey: `stripe`,
7
+ platformProductId: ``,
8
+ alias: `monthlyMolecule`,
9
+ period: `month`,
10
+ price: `$19`,
11
+ autoRenews: true,
12
+ title: `Monthly Molecule`,
13
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
14
+ capabilities: {
15
+ forMolecules: true,
16
+ attachments: true,
17
+ }
18
+ };
@@ -7,7 +7,7 @@ export const stripeSingleUseMolecule = {
7
7
  platformProductId: ``,
8
8
  alias: `singleUseMolecule`,
9
9
  period: ``,
10
- price: `$499`,
10
+ price: `$1999`,
11
11
  autoRenews: false,
12
12
  title: `Single Use Molecule`,
13
13
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The reduced single use Stripe plan for molecules.
3
+ */
4
+ export const stripeSingleUseMoleculeReduced = {
5
+ planKey: `stripeSingleUseMoleculeReduced`,
6
+ platformKey: `stripe`,
7
+ platformProductId: ``,
8
+ alias: `singleUseMolecule`,
9
+ period: ``,
10
+ price: `$299`,
11
+ autoRenews: false,
12
+ title: `Single Use Molecule`,
13
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
14
+ capabilities: {
15
+ forMolecules: true,
16
+ premium: true,
17
+ attachments: true,
18
+ }
19
+ };
@@ -7,7 +7,7 @@ export const stripeUnlimitedUseMolecule = {
7
7
  platformProductId: ``,
8
8
  alias: `unlimitedUseMolecule`,
9
9
  period: ``,
10
- price: `$1499`,
10
+ price: `$4999`,
11
11
  autoRenews: false,
12
12
  title: `Unlimited Use Molecule`,
13
13
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The reduced unlimited use Stripe plan for molecules.
3
+ */
4
+ export const stripeUnlimitedUseMoleculeReduced = {
5
+ planKey: `stripeUnlimitedUseMoleculeReduced`,
6
+ platformKey: `stripe`,
7
+ platformProductId: ``,
8
+ alias: `unlimitedUseMolecule`,
9
+ period: ``,
10
+ price: `$999`,
11
+ autoRenews: false,
12
+ title: `Unlimited Use Molecule`,
13
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
14
+ capabilities: {
15
+ forMolecules: true,
16
+ premium: true,
17
+ attachments: true,
18
+ }
19
+ };
@@ -323,7 +323,6 @@ export const clone = (program) => {
323
323
  }
324
324
  catch (error) {
325
325
  logger.warn(`Error cloning Molecule: ${getErrorMessage(error) || `Unknown error`}`);
326
- logger.warn(`Please contact developer-support@molecule.dev so we can fix this.`);
327
326
  }
328
327
  });
329
328
  };
@@ -39,9 +39,13 @@ export const checkoutSelectionBranch = async (selectionHash, repoPath = ``, bran
39
39
  logger.info(`Creating new orphan branch ${branchName}...`);
40
40
  await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} checkout --orphan ${branchName}`);
41
41
  }
42
- // Reset it to an empty repository.
43
- logger.info(`Resetting branch to an empty repository...`);
44
- await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} rm -rf .`);
42
+ try {
43
+ // Reset it to an empty repository.
44
+ logger.info(`Resetting branch to an empty repository...`);
45
+ await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} rm -rf .`);
46
+ }
47
+ catch (error) {
48
+ }
45
49
  logger.info(`Creating empty initial commit...`);
46
50
  await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} commit --allow-empty -m "initialize empty repository"`);
47
51
  logger.info(`Branch ${branchName} is ready for assembly.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlcl",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "CLI (Command Line Interface) for Molecule.dev.",
5
5
  "author": "molecule.dev",
6
6
  "license": "Apache-2.0",
@@ -51,6 +51,7 @@
51
51
  "test-watch": "jest --watch",
52
52
  "dev": "tsc --watch",
53
53
  "build": "tsc",
54
- "start": "node build/cli.js"
54
+ "start": "node build/cli.js",
55
+ "prepare": "npm run build"
55
56
  }
56
57
  }
@@ -23,6 +23,17 @@ export interface Props extends resourceTypes.Props {
23
23
  * The customer's user ID.
24
24
  */
25
25
  userId: string
26
+ /**
27
+ * The type of user who created this Molecule.
28
+ */
29
+ userType?: `Individual`
30
+ | `Startup`
31
+ | `Established Business`
32
+ | `Development Agency`
33
+ /**
34
+ * The number of people when not an individual.
35
+ */
36
+ teamSize?: number
26
37
  /**
27
38
  * The object hash of the selected options relevant to the frontend app.
28
39
  *
@@ -152,6 +163,7 @@ export interface Props extends resourceTypes.Props {
152
163
  * Other custom options requested by the customer.
153
164
  */
154
165
  other: {
166
+ appType?: string
155
167
  appLanguage?: string
156
168
  appPackageManager?: string
157
169
  appRenderer?: string
@@ -220,6 +232,8 @@ export interface Props extends resourceTypes.Props {
220
232
  * The properties when creating a molecule.
221
233
  */
222
234
  export interface CreateProps {
235
+ userType: Props['userType']
236
+ teamSize: Props['teamSize']
223
237
  selection: Props['selection']
224
238
  other: Props['other']
225
239
  plan: Props['plan']
@@ -5,8 +5,12 @@
5
5
  */
6
6
 
7
7
  export * from './stripeBusinessMolecule.js'
8
+ export * from './stripeBusinessMoleculeReduced.js'
8
9
  export * from './stripeMonthly.js'
9
10
  export * from './stripeMonthlyMolecule.js'
11
+ export * from './stripeMonthlyMoleculeReduced.js'
10
12
  export * from './stripeSingleUseMolecule.js'
13
+ export * from './stripeSingleUseMoleculeReduced.js'
11
14
  export * from './stripeUnlimitedUseMolecule.js'
15
+ export * from './stripeUnlimitedUseMoleculeReduced.js'
12
16
  export * from './stripeYearly.js'
@@ -9,7 +9,7 @@ export const stripeBusinessMolecule: Plan = {
9
9
  platformProductId: ``,
10
10
  alias: `businessMolecule`,
11
11
  period: ``,
12
- price: `$449`,
12
+ price: `$1499`,
13
13
  allowMultiple: true,
14
14
  minimumQuantity: 10,
15
15
  autoRenews: false,
@@ -0,0 +1,23 @@
1
+ import { Plan } from '../../../types.js'
2
+
3
+ /**
4
+ * The reduced business Stripe plan for molecules.
5
+ */
6
+ export const stripeBusinessMoleculeReduced: Plan = {
7
+ planKey: `stripeBusinessMoleculeReduced`,
8
+ platformKey: `stripe`,
9
+ platformProductId: ``,
10
+ alias: `businessMolecule`,
11
+ period: ``,
12
+ price: `$249`,
13
+ allowMultiple: true,
14
+ minimumQuantity: 10,
15
+ autoRenews: false,
16
+ title: `Business Molecule`,
17
+ description: `Includes all of the core functionality available for full-stack applications.`,
18
+ capabilities: {
19
+ forMolecules: true,
20
+ premium: true,
21
+ attachments: true,
22
+ }
23
+ }
@@ -9,7 +9,7 @@ export const stripeMonthlyMolecule: Plan = {
9
9
  platformProductId: ``,
10
10
  alias: `monthlyMolecule`,
11
11
  period: `month`,
12
- price: `$19`,
12
+ price: `$99`,
13
13
  autoRenews: true,
14
14
  title: `Monthly Molecule`,
15
15
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,20 @@
1
+ import { Plan } from '../../../types.js'
2
+
3
+ /**
4
+ * The reduced monthly Stripe plan for molecules.
5
+ */
6
+ export const stripeMonthlyMoleculeReduced: Plan = {
7
+ planKey: `stripeMonthlyMoleculeReduced`,
8
+ platformKey: `stripe`,
9
+ platformProductId: ``,
10
+ alias: `monthlyMolecule`,
11
+ period: `month`,
12
+ price: `$19`,
13
+ autoRenews: true,
14
+ title: `Monthly Molecule`,
15
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
16
+ capabilities: {
17
+ forMolecules: true,
18
+ attachments: true,
19
+ }
20
+ }
@@ -9,7 +9,7 @@ export const stripeSingleUseMolecule: Plan = {
9
9
  platformProductId: ``,
10
10
  alias: `singleUseMolecule`,
11
11
  period: ``,
12
- price: `$499`,
12
+ price: `$1999`,
13
13
  autoRenews: false,
14
14
  title: `Single Use Molecule`,
15
15
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,21 @@
1
+ import { Plan } from '../../../types.js'
2
+
3
+ /**
4
+ * The reduced single use Stripe plan for molecules.
5
+ */
6
+ export const stripeSingleUseMoleculeReduced: Plan = {
7
+ planKey: `stripeSingleUseMoleculeReduced`,
8
+ platformKey: `stripe`,
9
+ platformProductId: ``,
10
+ alias: `singleUseMolecule`,
11
+ period: ``,
12
+ price: `$299`,
13
+ autoRenews: false,
14
+ title: `Single Use Molecule`,
15
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
16
+ capabilities: {
17
+ forMolecules: true,
18
+ premium: true,
19
+ attachments: true,
20
+ }
21
+ }
@@ -9,7 +9,7 @@ export const stripeUnlimitedUseMolecule: Plan = {
9
9
  platformProductId: ``,
10
10
  alias: `unlimitedUseMolecule`,
11
11
  period: ``,
12
- price: `$1499`,
12
+ price: `$4999`,
13
13
  autoRenews: false,
14
14
  title: `Unlimited Use Molecule`,
15
15
  description: `Includes all of the core functionality you've selected for your full-stack application.`,
@@ -0,0 +1,21 @@
1
+ import { Plan } from '../../../types.js'
2
+
3
+ /**
4
+ * The reduced unlimited use Stripe plan for molecules.
5
+ */
6
+ export const stripeUnlimitedUseMoleculeReduced: Plan = {
7
+ planKey: `stripeUnlimitedUseMoleculeReduced`,
8
+ platformKey: `stripe`,
9
+ platformProductId: ``,
10
+ alias: `unlimitedUseMolecule`,
11
+ period: ``,
12
+ price: `$999`,
13
+ autoRenews: false,
14
+ title: `Unlimited Use Molecule`,
15
+ description: `Includes all of the core functionality you've selected for your full-stack application.`,
16
+ capabilities: {
17
+ forMolecules: true,
18
+ premium: true,
19
+ attachments: true,
20
+ }
21
+ }
@@ -50,9 +50,12 @@ export const checkoutSelectionBranch = async (
50
50
  await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} checkout --orphan ${branchName}`)
51
51
  }
52
52
 
53
- // Reset it to an empty repository.
54
- logger.info(`Resetting branch to an empty repository...`)
55
- await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} rm -rf .`)
53
+ try {
54
+ // Reset it to an empty repository.
55
+ logger.info(`Resetting branch to an empty repository...`)
56
+ await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} rm -rf .`)
57
+ } catch (error) {
58
+ }
56
59
 
57
60
  logger.info(`Creating empty initial commit...`)
58
61
  await asyncExec(`git${repoPath ? ` -C "${repoPath}"` : ``} commit --allow-empty -m "initialize empty repository"`)