Skip to content

Commit

Permalink
chore: update build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Mar 3, 2022
1 parent 30e6098 commit 2580299
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 18 deletions.
10 changes: 10 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
{ input: 'src/', outDir: 'dist', format: 'cjs', declaration: false }
],
externals: [
'@storybook/core'
]
})
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"storybook"
],
"scripts": {
"build": "yarn clean && tsc && mkdist --ext=js --src src/runtime --dist dist/runtime",
"clean": "rimraf dist",
"dev": "STORYBOOK_LIFE_UNIVERSE_AND_EVERYTHING=42 yarn nuxt-storybook playground",
"nuxt-storybook": "ts-node src/cli",
"play": "STORYBOOK_LIFE_UNIVERSE_AND_EVERYTHING=42 yarn nuxt-storybook playground",
"dev": "yarn run play",
"build": "yarn unbuild",
"test": "yarn nuxt-storybook build playground",
"lint": "eslint --ext .ts,.js,.vue ./src",
"nuxt-storybook": "ts-node src/cli",
"release": "yarn test && standard-version && yarn build && git push --follow-tags && npm publish"
},
"resolutions": {
Expand All @@ -36,6 +36,7 @@
"create-require": "^1.1.1",
"css-loader": "5.2.7",
"jiti": "^1.13.0",
"lodash.template": "^4.5.0",
"pathe": "^0.2.0",
"postcss": "^8.4.7",
"vue-loader": "^15.9.8"
Expand All @@ -59,14 +60,13 @@
"babel-eslint": "latest",
"eslint": "latest",
"express": "^4.17.3",
"mkdist": "^0.3.10",
"node-sass": "^5.0.0",
"nuxt-edge": "^2.16.0-27358576.777a4b7f",
"react-docgen-typescript-plugin": "^1.0.0",
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
"standard-version": "latest",
"typescript": "^4.6.2"
"typescript": "^4.6.2",
"unbuild": "^0.6.9"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs'
import template from 'lodash/template'
import template from 'lodash.template'
import jiti from 'jiti'
import consola from 'consola'
import createRequire from 'create-require'
Expand Down
2 changes: 0 additions & 2 deletions storybook/eject/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ const { nuxifyStorybook } = require('../.nuxt-storybook/storybook/main.js')

module.exports = nuxifyStorybook({
webpackFinal (config, options) {

// extend config here

return config
},
stories: [
Expand Down
Loading

0 comments on commit 2580299

Please sign in to comment.