Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
build step
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiller42 committed Jul 23, 2017
1 parent 02dd50a commit 35af31d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@ jobs:
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: npm-install
name: install-dependencies
command: npm install
- run:
name: install-peer-dependencies
command: npm install webpack@^3.0.0 html-webpack-plugin@^2.0.0 --no-save
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: npm-test
name: build
command: npm run build
- run:
name: test
command: npm test
- deploy:
name: npm-publish
name: publish
command: if [ "${CIRCLE_TAG}" == v* ]; then npm publish; fi
22 changes: 0 additions & 22 deletions circle.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"scripts": {
"prepack": "npm run build",
"precommit": "lint-staged",
"test": "mocha",
"build": "rm -rf lib && babel src --out-dir lib --source-maps --copy-files",
"watch": "npm run build -- --watch"
},
Expand Down

0 comments on commit 35af31d

Please sign in to comment.