Skip to content

Commit

Permalink
remove lib file-for-file build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Einstein committed Sep 19, 2017
1 parent 0f4c6c8 commit fa052d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/projectPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var root = path.join(__dirname, '..')
// source directory
var sourceDir = path.join(root, 'src')
// build directory
var buildDir = path.join(root, 'build')
var buildDir = path.join(root, 'lib')
// configuration directory
var configDir = path.join(root, 'config')
// example directory
Expand All @@ -19,7 +19,7 @@ module.exports = {
// directories
rootDir: root,
sourceDir: sourceDir,
buildDir: root,
buildDir: buildDir,
exampleDir: exampleDir,
// entry points
entry: path.join(sourceDir, 'index.js'),
Expand Down
1 change: 1 addition & 0 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ if (process.env.NODE_ENV === 'production') {
module.exports = {
entry: entry,
output: {
path: projectPaths.buildDir,
filename: 'index.js',
library: 'react-tooltip',
libraryTarget: 'umd',
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
"build": "webpack --config config/webpack.js",
"build:prod": "NODE_ENV=production npm run build",
"build:lib": "babel src --out-dir lib",
"build:all": "npm run build:prod && npm run build:lib",
"clean": "rm -rf index.* lib/",
"dev": "NODE_ENV=dev webpack-dev-server --inline --hot --config config/webpack.js",
"lint": "eslint src/**/*.js",
"prepublish": "npm run build:all",
"prepublish": "npm run build:prod",
"test": "NODE_ENV=test jest",
"test:watch": "npm run test -- --watch",
"test:coverage": "npm run test -- --coverage",
Expand Down

0 comments on commit fa052d4

Please sign in to comment.