Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新依赖 #1

Merged
merged 17 commits into from
Apr 10, 2019
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,22 @@
"description": "Quickly generate redistributable vue sfc components",
"version": "0.6.0",
"author": "Michael Dodge",
"contributors": [
"https://github.com/FEMessage"
],
"contributors": ["https://github.com/FEMessage"],
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/FEMessage/vue-sfc-template.git"
},
"homepage": "https://github.com/FEMessage/vue-sfc-template.git",
"keywords": [
"vue",
"sfc",
"template",
"compiler",
"rollup"
],
"keywords": ["vue", "sfc", "template", "compiler", "rollup"],
"bin": {
"init": "./init.js"
},
"dependencies": {
"readline-sync": "^1.4.9"
},
"engines": {
"node": ">=8.1.2 <=8.11",
"node": ">=8.1.2",
"npm": ">=5.2.0"
}
}
7 changes: 3 additions & 4 deletions templates/.babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"presets": [
["env", { "modules": false }]
["@babel/env", { "modules": false }]
],
"env": {
"test": {
"presets": [
["env", { "targets": { "node": "current" }}]
["@babel/env", { "targets": { "node": "current" }}]
]
}
},
"plugins": [
["transform-runtime", {
"polyfill": false,
["@babel/transform-runtime", {
"regenerator": true
}]
]
Expand Down
6 changes: 4 additions & 2 deletions templates/build/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// rollup.config.js
import vue from 'rollup-plugin-vue'
import babel from 'rollup-plugin-babel'
import uglify from 'rollup-plugin-uglify-es'
import commonjs from 'rollup-plugin-commonjs'
import { terser } from 'rollup-plugin-terser'
Copy link
Member Author

Choose a reason for hiding this comment

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

import minimist from 'minimist'

const argv = minimist(process.argv.slice(2))
Expand All @@ -13,6 +14,7 @@ const config = {
exports: 'named'
},
plugins: [
commonjs(),
vue({
css: true,
compileTemplate: true
Expand All @@ -26,7 +28,7 @@ const config = {

// Only minify browser (iife) version
if (argv.format === 'iife') {
config.plugins.push(uglify())
config.plugins.push(terser())
}

export default config
36 changes: 20 additions & 16 deletions templates/package-json
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,31 @@
"dependencies": {},

"devDependencies": {
"minimist": "^1.2.0",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-uglify-es": "0.0.1",
"rollup-plugin-vue": "^3.0.0",
"vue": "^2.5.16",
"vue-template-compiler": "^2.5.16",
"@babel/core": "^7.4.3",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@storybook/vue": "^5.0.6",
"@vue/test-utils": "^1.0.0-beta.16",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.5",
"husky": "^0.14.3",
"jest": "^23.1.0",
"minimist": "^1.2.0",
"prettier": "1.12.1",
"pretty-quick": "^1.4.1",
"@vue/test-utils": "^1.0.0-beta.16",
"babel-jest": "^23.0.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"jest": "^23.1.0",
"vue-jest": "^2.6.0",
"vue-styleguidist": "1.7.7",
"webpack": "^3.10.0",
"rollup": "^1.9.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-vue": "^4.7.2",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"@storybook/vue": "^3.4.10"
"vue": "^2.5.16",
"vue-jest": "^3.0.4",
"vue-loader": "^15.7.0",
"vue-styleguidist": "^3.11.4",
Copy link
Member Author

Choose a reason for hiding this comment

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

"vue-template-compiler": "^2.5.16",
"webpack": "^4.29.6"
},
"jest": {
"moduleFileExtensions": ["js", "vue"],
Expand Down
7 changes: 6 additions & 1 deletion templates/styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { VueLoaderPlugin } = require('vue-loader')

module.exports = {
components: 'src/*.vue',
ribbon: {
Expand All @@ -20,7 +22,10 @@ module.exports = {
use: ['style-loader', 'css-loader', 'stylus-loader']
}
]
}
},
plugins: [
new VueLoaderPlugin()
]
},
showUsage: true,
showCode: true,
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
readline-sync@^1.4.9:
version "1.4.9"
resolved "https://registry.yarnpkg.com/readline-sync/-/readline-sync-1.4.9.tgz#3eda8e65f23cd2a17e61301b1f0003396af5ecda"
integrity sha1-PtqOZfI80qF+YTAbHwADOWr17No=