Skip to content

Commit e4ff89e

Browse files
committed
Merge branch 'dev' into 1239-deprecate-mustache-as-default-engine
2 parents c30b78c + 566485a commit e4ff89e

File tree

88 files changed

+178
-1043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+178
-1043
lines changed

packages/cli/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@
2323
"ora": "5.4.0"
2424
},
2525
"devDependencies": {
26-
"@pattern-lab/starterkit-mustache-base": "3.0.3",
2726
"dos2unix-cli": "^1.0.1",
2827
"eslint": "4.18.2",
2928
"eslint-config-prettier": "2.9.0",
3029
"eslint-plugin-prettier": "2.6.0",
3130
"prettier": "2.8.1",
3231
"proxyquire": "2.1.3",
33-
"starterkit-mustache-acidtest": "0.0.3",
34-
"starterkit-mustache-bootstrap": "0.1.1",
35-
"starterkit-mustache-foundation": "0.1.1",
36-
"starterkit-mustache-materialdesign": "0.1.2",
3732
"tap": "14.11.0"
3833
},
3934
"files": [

packages/cli/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Passing no options starts the init in interactive mode
9494
Options:
9595
-h, --help output usage information
9696
-p, --project-dir <path> Specify a project directory. Default: ./
97-
-e, --edition <name> Specify an edition to install. Default: edition-node
98-
-k, --starterkit <name> Specify a starterkit to install. Default: starterkit-mustache-base
97+
-e, --edition <name> Specify an edition to install. Default: @pattern-lab/edition-node
98+
-k, --starterkit <name> Specify a starterkit to install. Default: @pattern-lab/starterkit-handlebars-demo
9999
```
100100

101101
### Serve Pattern Lab

packages/cli/test/cli-build.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tap.test('Init and build ->', (t) =>
1717
'--edition',
1818
'@pattern-lab/edition-node',
1919
'--starterkit',
20-
'@pattern-lab/starterkit-mustache-demo',
20+
'@pattern-lab/starterkit-handlebars-demo',
2121
]);
2222
yield spawnCmd([
2323
'build',

packages/cli/test/cli-disable.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tap.test('Disable ->', (t) =>
1616
'--edition',
1717
'@pattern-lab/edition-node',
1818
'--starterkit',
19-
'@pattern-lab/starterkit-mustache-base',
19+
'@pattern-lab/starterkit-handlebars-vanilla',
2020
]);
2121
yield spawnCmd([
2222
'install',

packages/cli/test/cli-enable.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tap.test('Enable ->', (t) =>
1616
'--edition',
1717
'@pattern-lab/edition-node',
1818
'--starterkit',
19-
'@pattern-lab/starterkit-mustache-base',
19+
'@pattern-lab/starterkit-handlebars-vanilla',
2020
]);
2121
yield spawnCmd([
2222
'install',

packages/cli/test/cli-export.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tap.test('Init and export ->', (t) =>
1717
'--edition',
1818
'@pattern-lab/edition-node',
1919
'--starterkit',
20-
'@pattern-lab/starterkit-mustache-base',
20+
'@pattern-lab/starterkit-handlebars-vanilla',
2121
]);
2222
yield spawnCmd([
2323
'export',

packages/cli/test/cli-init.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tap.test('Init ->', (t) =>
1717
'--edition',
1818
'@pattern-lab/edition-node',
1919
'--starterkit',
20-
'@pattern-lab/starterkit-mustache-base',
20+
'@pattern-lab/starterkit-handlebars-vanilla',
2121
]);
2222
t.ok(
2323
fs.existsSync(path.resolve(projectRoot)),

packages/cli/test/fixtures/patternlab-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"css": "./test/fixtures/public/css"
6969
}
7070
},
71-
"patternExtension": "mustache",
71+
"patternExtension": "hbs",
7272
"patternStateCascade": ["inprogress", "inreview", "complete"],
7373
"patternExportDirectory": "./pattern_exports/",
7474
"patternExportPatternPartials": [],

packages/cli/test/install-starterkit.test.js

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,64 +14,34 @@ const minimalConfig = {
1414
},
1515
};
1616

17-
tap.test('Install starterkit-mustache-demo ->', (t) =>
17+
tap.test('Install @pattern-lab/starterkit-handlebars-vanilla ->', (t) =>
1818
wrapAsync(function* () {
1919
yield installStarterkit(
20-
'@pattern-lab/starterkit-mustache-demo',
20+
'@pattern-lab/starterkit-handlebars-vanilla',
2121
minimalConfig
2222
);
23-
const pkg = yield moduleExist('@pattern-lab/starterkit-mustache-demo');
23+
const pkg = yield moduleExist('@pattern-lab/starterkit-handlebars-vanilla');
2424
t.ok(pkg, 'module should exist after install');
2525
t.end();
2626
})
2727
);
2828

29-
tap.test('Install starterkit-mustache-base ->', (t) =>
29+
tap.test('Install @pattern-lab/starterkit-handlebars-demo ->', (t) =>
3030
wrapAsync(function* () {
3131
yield installStarterkit(
32-
'@pattern-lab/starterkit-mustache-base',
32+
'@pattern-lab/starterkit-handlebars-demo',
3333
minimalConfig
3434
);
35-
const pkg = yield moduleExist('@pattern-lab/starterkit-mustache-base');
35+
const pkg = yield moduleExist('@pattern-lab/starterkit-handlebars-demo');
3636
t.ok(pkg, 'module should exist after install');
3737
t.end();
3838
})
3939
);
4040

41-
tap.test('Install starterkit-mustache-bootstrap ->', (t) =>
41+
tap.test('Install @pattern-lab/starterkit-twig-demo ->', (t) =>
4242
wrapAsync(function* () {
43-
yield installStarterkit('starterkit-mustache-bootstrap', minimalConfig);
44-
const pkg = yield moduleExist('starterkit-mustache-bootstrap');
45-
t.ok(pkg, 'module should exist after install');
46-
t.end();
47-
})
48-
);
49-
50-
tap.test('Install starterkit-mustache-foundation ->', (t) =>
51-
wrapAsync(function* () {
52-
yield installStarterkit('starterkit-mustache-foundation', minimalConfig);
53-
const pkg = yield moduleExist('starterkit-mustache-foundation');
54-
t.ok(pkg, 'module should exist after install');
55-
t.end();
56-
})
57-
);
58-
59-
tap.test('Install starterkit-mustache-acidtest ->', (t) =>
60-
wrapAsync(function* () {
61-
yield installStarterkit('starterkit-mustache-acidtest', minimalConfig);
62-
const pkg = yield moduleExist('starterkit-mustache-acidtest');
63-
t.ok(pkg, 'module should exist after install');
64-
t.end();
65-
})
66-
);
67-
68-
tap.test('Install starterkit-mustache-materialdesign ->', (t) =>
69-
wrapAsync(function* () {
70-
yield installStarterkit(
71-
'starterkit-mustache-materialdesign',
72-
minimalConfig
73-
);
74-
const pkg = yield moduleExist('starterkit-mustache-materialdesign');
43+
yield installStarterkit('@pattern-lab/starterkit-twig-demo', minimalConfig);
44+
const pkg = yield moduleExist('@pattern-lab/starterkit-twig-demo');
7545
t.ok(pkg, 'module should exist after install');
7646
t.end();
7747
})

packages/core/src/lib/expandPartials.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
const logger = require('./log');
44
const ph = require('./parameter_hunter');
5-
const smh = require('./style_modifier_hunter');
65
const jsonCopy = require('./json_copy');
76
const getPartial = require('./get');
87

98
const parameter_hunter = new ph();
10-
const style_modifier_hunter = new smh();
119

1210
module.exports = function (currentPattern, patternlab) {
1311
const processRecursive = require('./processRecursive');
@@ -47,18 +45,6 @@ module.exports = function (currentPattern, patternlab) {
4745
`partial pattern ${partial}`
4846
);
4947

50-
//if partial has style modifier data, replace the styleModifier value
51-
if (
52-
currentPattern.stylePartials &&
53-
currentPattern.stylePartials.length > 0
54-
) {
55-
style_modifier_hunter.consume_style_modifier(
56-
cleanPartialPattern,
57-
foundPartial,
58-
patternlab
59-
);
60-
}
61-
6248
//this is what we came here for
6349
logger.debug(
6450
`within ${currentPattern.patternPartial}, replacing extendedTemplate partial ${foundPartial} with ${cleanPartialPattern.patternPartial}'s extendedTemplate`

0 commit comments

Comments
 (0)