Skip to content

Commit

Permalink
Change build directory to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-yakubiv authored and Joozty committed Dec 4, 2019
1 parent 3f5dd5e commit f22636f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
dist
lib
public
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/oacore/design.git"
},
"main": "dist/index.js",
"main": "lib/index.js",
"devDependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
Expand Down Expand Up @@ -82,10 +82,10 @@
"format": "eslint --ignore-path .gitignore --ext .js,.jsx --fix .",
"clean": "if [ -d dist ]; then rm -r dist; fi",
"prebuild": "npm run clean",
"build:js": "babel src --out-dir dist --verbose",
"build:css": "postcss \"src/**/*.css\" --base src --dir dist --verbose",
"build:svg:source": "svgo -f src -o dist -r --disable=removeViewBox --enable=removeDimensions",
"build:svg:sprite": "svgstore dist/assets/icons/* | svgo -i - -o dist/assets/icons.svg --disable=removeUselessDefs,cleanupIDs",
"build:js": "babel src --out-dir lib --verbose",
"build:css": "postcss \"src/**/*.css\" --base src --dir lib --verbose",
"build:svg:source": "svgo -f src -o lib -r --disable=removeViewBox --enable=removeDimensions",
"build:svg:sprite": "svgstore lib/assets/icons/* | svgo -i - -o lib/assets/icons.svg --disable=removeUselessDefs,cleanupIDs",
"build:svg": "run-s build:svg:source build:svg:sprite",
"build:lib": "run-p build:js build:css build:svg",
"build:docs": "styleguidist build",
Expand Down
2 changes: 1 addition & 1 deletion styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {

styleguideDir: 'public',

assetsDir: 'dist/assets',
assetsDir: 'lib/assets',
require: [path.join(__dirname, 'src/index.css')],

webpackConfig: {
Expand Down

1 comment on commit f22636f

@vercel
Copy link

@vercel vercel bot commented on f22636f Dec 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.