Skip to content

Commit

Permalink
fix(build): copy styles to build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rychkog committed Feb 9, 2017
1 parent 2a9afd9 commit 45c62e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"flow.lint": "npm run flow.tslint",
"flow.build": "npm run flow.clean && npm run flow.compile && webpack --progress --color",
"flow.serve": "webpack-dev-server --hot --inline --colors --display-error-details --display-cached",
"pre:publish": "npm run flow.clean && npm run flow.lint && npm run test && npm run flow.compile",
"pre:publish": "npm run flow.clean && npm run flow.lint && npm run test && npm run flow.compile && cp src/styles.css dist",
"post:publish": "npm run flow.deploy:gh-pages",
"start": "npm run flow.serve",
"test": "karma start karma.conf.js"
Expand Down
4 changes: 2 additions & 2 deletions publish.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/node

const _ = require('lodash');
const fs = require('fs');
const fs = require('fs');
const shell = require('shelljs');
const pkg = require('./package.json');

shell.exec('npm run pre:publish');
fs.writeFileSync('dist/package.json', JSON.stringify(_.omit(pkg, ['private']), null, 2), {encoding: 'utf-8'});

shell.exec('npm publish dist');
shell.exec('npm run post:publish');
shell.exec('npm run post:publish');

0 comments on commit 45c62e7

Please sign in to comment.