Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 0c424f3

Browse files
committed
Move scripts files intro scripts folder, added script for prepublish.sh, fixed config
1 parent 4c6b6a0 commit 0c424f3

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Vue.use(ModulistVue);
2727

2828
**Browser**
2929

30-
Alternatively, you can include script directly on your html page. See [example here](https://github.com/simplystack/modulist-vue/examples/browser/index.html).
30+
Alternatively, you can include script directly on your html page. See [example here](modulist-vue/examples/browser/index.html).
3131

3232
```html
3333
<div id="app">

build/rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export default [
5050
external,
5151
output: {
5252
compact: true,
53-
file: 'dist/modulist-vue.umd.js',
54-
format: 'umd',
53+
file: 'dist/modulist-vue.common.js',
54+
format: 'cjs',
5555
name: 'ModulistVue',
5656
exports: 'named',
5757
globals,
@@ -71,7 +71,7 @@ export default [
7171
output: {
7272
compact: true,
7373
file: 'dist/modulist-vue.min.js',
74-
format: 'iife',
74+
format: 'umd',
7575
name: 'ModulistVue',
7676
exports: 'named',
7777
globals,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Vue components for the Modulist Design System",
44
"author": "SimplyStack",
55
"version": "0.0.1",
6-
"main": "dist/modulist-vue.umd.js",
6+
"main": "dist/modulist-vue.common.js",
77
"module": "src/entry.js",
88
"unpkg": "dist/modulist-vue.min.js",
99
"files": [
@@ -15,7 +15,9 @@
1515
"docs:dev": "vuepress dev docs",
1616
"docs:build": "vuepress build docs",
1717
"lint": "vue-cli-service lint",
18-
"test:unit": "vue-cli-service test:unit"
18+
"test:unit": "vue-cli-service test:unit",
19+
"deploy": "bash scripts/deploy.sh",
20+
"prepublish": "bash scripts/prepublish.sh"
1921
},
2022
"devDependencies": {
2123
"@modulist/css": "0.0.15",
File renamed without changes.

scripts/prepublish.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# lint
7+
npm run lint
8+
9+
# build
10+
npm run build

0 commit comments

Comments
 (0)