ember-tribe 2.6.1 → 2.6.3
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/blueprints/ember-tribe/files/app/components/welcome-flame.hbs +5 -0
- package/blueprints/ember-tribe/files/app/templates/application.hbs +2 -0
- package/blueprints/ember-tribe/files/app/templates/index.hbs +7 -0
- package/blueprints/ember-tribe/files/bin/commands/pull.js +15 -0
- package/blueprints/ember-tribe/files/bin/commands/push.js +24 -0
- package/blueprints/ember-tribe/files/bin/storylang +4 -0
- package/package.json +4 -2
- package/bin/storylang +0 -61
- package/blueprints/ember-tribe/files/app/components/welcome-flame.gjs +0 -11
- package/blueprints/ember-tribe/files/app/templates/application.gjs +0 -6
- package/blueprints/ember-tribe/files/app/templates/index.gjs +0 -11
- /package/{lib → blueprints/ember-tribe/files/lib}/storylang/pull.js +0 -0
- /package/{lib → blueprints/ember-tribe/files/lib}/storylang/push.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const pull = require('../../lib/storylang/pull');
|
|
4
|
+
|
|
5
|
+
module.exports.command = 'pull';
|
|
6
|
+
|
|
7
|
+
module.exports.describe = 'update config/storylang.json from current project files';
|
|
8
|
+
|
|
9
|
+
module.exports.handler = async function handler() {
|
|
10
|
+
try {
|
|
11
|
+
await pull(process.cwd());
|
|
12
|
+
} catch (err) {
|
|
13
|
+
console.error(err);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const push = require('../../lib/storylang/push');
|
|
4
|
+
|
|
5
|
+
module.exports.command = 'push';
|
|
6
|
+
|
|
7
|
+
module.exports.describe = 'generate missing Ember files from config/storylang.json';
|
|
8
|
+
|
|
9
|
+
module.exports.builder = {
|
|
10
|
+
overwrite: {
|
|
11
|
+
alias: 'o',
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
default: false,
|
|
14
|
+
describe: 'overwrite existing files instead of skipping them',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
module.exports.handler = async function handler(argv) {
|
|
19
|
+
try {
|
|
20
|
+
await push(process.cwd(), { overwrite: argv.overwrite });
|
|
21
|
+
} catch (err) {
|
|
22
|
+
console.error(err);
|
|
23
|
+
}
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-tribe",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "The default blueprint for using Tribe API and Junction within EmberJS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"ember-cli-babel": "^7.26.11",
|
|
33
|
-
"ember-cli-htmlbars": "^6.0.1"
|
|
33
|
+
"ember-cli-htmlbars": "^6.0.1",
|
|
34
|
+
"yargs": "^17.7.2",
|
|
35
|
+
"update-notifier": "^5.1.0"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"@ember/optional-features": "^2.0.0",
|
package/bin/storylang
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const args = process.argv.slice(2);
|
|
6
|
-
const command = args[0];
|
|
7
|
-
const flags = args.slice(1);
|
|
8
|
-
|
|
9
|
-
const pull = require('../lib/storylang/pull');
|
|
10
|
-
const push = require('../lib/storylang/push');
|
|
11
|
-
|
|
12
|
-
const CWD = process.cwd();
|
|
13
|
-
|
|
14
|
-
function printUsage() {
|
|
15
|
-
console.log(`
|
|
16
|
-
storylang — ember-tribe spec synchroniser
|
|
17
|
-
|
|
18
|
-
Usage:
|
|
19
|
-
storylang <command> [options]
|
|
20
|
-
|
|
21
|
-
Commands:
|
|
22
|
-
pull Updates config/storylang.json from current project files
|
|
23
|
-
push Generates any missing routes, components, services, helpers, modifiers, and controllers
|
|
24
|
-
push -o Regenerates all artefacts in storylang.json, overwriting existing files
|
|
25
|
-
|
|
26
|
-
Examples:
|
|
27
|
-
storylang pull
|
|
28
|
-
storylang push
|
|
29
|
-
storylang push -o
|
|
30
|
-
`);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function main() {
|
|
34
|
-
switch (command) {
|
|
35
|
-
case 'pull':
|
|
36
|
-
await pull(CWD);
|
|
37
|
-
break;
|
|
38
|
-
|
|
39
|
-
case 'push': {
|
|
40
|
-
const overwrite = flags.includes('-o');
|
|
41
|
-
await push(CWD, { overwrite });
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
case undefined:
|
|
46
|
-
case '--help':
|
|
47
|
-
case '-h':
|
|
48
|
-
printUsage();
|
|
49
|
-
break;
|
|
50
|
-
|
|
51
|
-
default:
|
|
52
|
-
console.error(`Unknown command: "${command}"`);
|
|
53
|
-
printUsage();
|
|
54
|
-
process.exit(1);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
main().catch((err) => {
|
|
59
|
-
console.error('storylang error:', err.message);
|
|
60
|
-
process.exit(1);
|
|
61
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
|
|
3
|
-
export default class WelcomeFlameComponent extends Component {
|
|
4
|
-
<template>
|
|
5
|
-
<section class="flame-bg d-flex align-items-center justify-content-center">
|
|
6
|
-
<div class="py-6 container px-0 text-center text-dark">
|
|
7
|
-
<img src="/assets/img/flame.png" width="200">
|
|
8
|
-
</div>
|
|
9
|
-
</section>
|
|
10
|
-
</template>
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|