Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit dec026c

Browse files
committed
Added .travis.yml. Small fix to init.js. Fixes #19
1 parent 63fdc2d commit dec026c

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: node_js
2+
3+
node_js:
4+
- node
5+
- 6
6+
- 4
7+
8+
before_script:
9+
- npm install edition-node
10+
- npm install starterkit-mustache-demo
11+
12+
branches:
13+
only:
14+
- master

bin/cli-actions/init.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ const init = options => wrapAsync(function*() {
2525
* 3. If `edition` is present:
2626
* 3.1 Install edition
2727
* 3.2 Reassign adjustedconfig
28-
* 3. If `starterkit` is present
29-
* 3.1 Install it
30-
* 3.2 Copy over the mandatory starterkit files to sourceDir
31-
* 4. Check for starterkit and install it
28+
* 4. If `starterkit` is present install it and copy over the mandatory starterkit files to sourceDir
3229
* 5. Save patternlab-config.json in projectDir
3330
*/
3431
let patternlabConfig = replaceConfigPaths(defaultPatternlabConfig, projectDir, sourceDir, publicDir, exportDir); // 1
@@ -40,7 +37,7 @@ const init = options => wrapAsync(function*() {
4037
patternlabConfig = Object.assign(patternlabConfig, newConf); // 3.2
4138
}
4239
if (starterkit) yield installStarterkit(starterkit, patternlabConfig); // 4
43-
yield writeJsonAsync(path.resolve(projectDir, 'patternlab-config.json'), patternlabConfig); // 4.2
40+
yield writeJsonAsync(path.resolve(projectDir, 'patternlab-config.json'), patternlabConfig); // 5
4441

4542
// Finally :>
4643
if (!edition && !starterkit) {

0 commit comments

Comments
 (0)