Remove unnecessary prerequisites (#26)
* Remove prepublish only * Remove index.css from docs * Keep empty dist/index.css
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/public/build/
|
/public/build/
|
||||||
dist
|
# dist
|
||||||
/storybook-static
|
/storybook-static
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ stories
|
|||||||
.storybook
|
.storybook
|
||||||
storybook-static
|
storybook-static
|
||||||
|
|
||||||
|
# dist
|
||||||
scripts
|
scripts
|
||||||
|
|
||||||
.test.js
|
.test.js
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ Import component and styles in App component
|
|||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
import Carousel from 'svelte-carousel'
|
import Carousel from 'svelte-carousel'
|
||||||
import 'svelte-carousel/dist/index.css'
|
|
||||||
// ...
|
// ...
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|||||||
1
dist/index.css
vendored
Normal file
1
dist/index.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* Deprecated. Keep for backward compatibility */
|
||||||
@@ -28,8 +28,7 @@
|
|||||||
"build-storybook": "build-storybook",
|
"build-storybook": "build-storybook",
|
||||||
"build:docs": "set DOCS=true && npm run build",
|
"build:docs": "set DOCS=true && npm run build",
|
||||||
"dev:docs": "set DOCS=true && npm run dev",
|
"dev:docs": "set DOCS=true && npm run dev",
|
||||||
"test": "jest",
|
"test": "jest"
|
||||||
"prepublishOnly": "npm run build"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.10",
|
"@babel/core": "^7.12.10",
|
||||||
|
|||||||
@@ -196,7 +196,6 @@ Import component and styles in App component
|
|||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
import Carousel from 'svelte-carousel'
|
import Carousel from 'svelte-carousel'
|
||||||
import 'svelte-carousel/dist/index.css'
|
|
||||||
// ...
|
// ...
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user