Skip to content

Commit

Permalink
fix linter error (#10)
Browse files Browse the repository at this point in the history
* fix linter error

* update node.js version to 6

* add install task for yo and gulp in travis ci

* fix the order of install generator-electrode-component

* bump version of karma firefox launcher for fixing CI tests

* try to fix Firefox launcher issue https://karma-runner.github.io/0.8/plus/Travis-CI.html

* adding build image
  • Loading branch information
ananavati authored Sep 19, 2016
1 parent f99d094 commit 089c7d1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"karma": "^0.13.19",
"karma-chrome-launcher": "^0.2.0",
"karma-coverage": "^0.4.2",
"karma-firefox-launcher": "^0.1.6",
"karma-firefox-launcher": "^1",
"karma-ie-launcher": "^0.2.0",
"karma-intl-shim": "^1.0.0",
"karma-mocha": "^0.2.0",
Expand Down
9 changes: 6 additions & 3 deletions packages/electrode-archetype-react-component/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
language: node_js

node_js:
- "4.2"
- "5.0"
- v6

brances:
only:
- master

before_install:
- npm install -g gulp yo generator-electrode-component
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'electrode-archetype-react-component' ]; then cd .. && eval "mv $currentfolder electrode-archetype-react-component" && cd electrode-archetype-react-component; fi
- npm install
- cd dev ; npm install ; cd ..

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
# run the archetype check task.
- gulp archetype:check

# create a new component using electrode-component yeoman generator to run the components unit-tests.
- npm install -g yo gulp generator-electrode-component
- yo electrode-component --projectName=product-card --packageName=product-card --packageGitHubOrg=walmartlabs --developerName="Arpan Nanavati" --ghUser=ananavati --ghRepo=product-card --createDirectory=Y
- cd product-card

Expand Down
2 changes: 2 additions & 0 deletions packages/electrode-archetype-react-component/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/electrode-io/electrode-archetype-react-component.svg?branch=master)](https://travis-ci.org/electrode-io/electrode-archetype-react-component)

# Archetype: Electrode React Component

Electrode flavored react component archetype.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const postcssLoader = archDevRequire.resolve("postcss-loader");
* case 4: *none* demo.css & demo.styl exists => CSS-Modules + CSS-Next takes priority
*/

const cssNextExists = (glob.sync(Path.join(process.cwd() + "/demo/*.css")).length > 0);
const stylusExists = (glob.sync(Path.join(process.cwd() + "/demo/*.styl")).length > 0);
const cssNextExists = glob.sync(Path.join(process.cwd() + "/demo/*.css")).length > 0;
const stylusExists = glob.sync(Path.join(process.cwd() + "/demo/*.styl")).length > 0;

// By default, this archetype assumes you are using CSS-Modules + CSS-Next
let cssModuleSupport = "?modules!" + postcssLoader;
Expand Down
5 changes: 3 additions & 2 deletions packages/electrode-archetype-react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"scripts": {},
"dependencies": {},
"devDependencies": {
"electrode-gulp-helper": "^1.0.4",
"eslint": "^1.10.1",
"eslint-config-defaults": "^9.0.0",
"eslint-plugin-filenames": "^0.1.2",
"gulp": "^3.9.1",
"opener": "^1.4.1",
"package-json-validator": "^0.6.1",
"shelljs": "^0.7.0",
"opener": "^1.4.1"
"shelljs": "^0.7.0"
},
"engines": {
"node": "^4.2.6",
Expand Down

0 comments on commit 089c7d1

Please sign in to comment.