Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
0607fd9d
Commit
0607fd9d
authored
Apr 25, 2017
by
minocoko
Committed by
cinwell.li
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update input.md and fix scripts (#4263)
* 统一使用es6风格的方式引入vue包 * 修正回车换行符处理,以免每次npm run dev 时,index.js都会更改 * 更新编码
parent
74f01254
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
build/bin/build-entry.js
build/bin/build-entry.js
+4
-3
examples/docs/en-US/input.md
examples/docs/en-US/input.md
+1
-1
examples/docs/zh-CN/input.md
examples/docs/zh-CN/input.md
+1
-1
No files found.
build/bin/build-entry.js
View file @
0607fd9d
...
...
@@ -3,6 +3,7 @@ var fs = require('fs');
var
render
=
require
(
'
json-templater/string
'
);
var
uppercamelcase
=
require
(
'
uppercamelcase
'
);
var
path
=
require
(
'
path
'
);
var
endOfLine
=
require
(
'
os
'
).
EOL
;
var
OUTPUT_PATH
=
path
.
join
(
__dirname
,
'
../../src/index.js
'
);
var
IMPORT_TEMPLATE
=
'
import {{name}} from
\'
../packages/{{package}}/index.js
\'
;
'
;
...
...
@@ -82,10 +83,10 @@ ComponentNames.forEach(name => {
});
var
template
=
render
(
MAIN_TEMPLATE
,
{
include
:
includeComponentTemplate
.
join
(
'
\n
'
),
install
:
installTemplate
.
join
(
'
,
\n
'
),
include
:
includeComponentTemplate
.
join
(
endOfLine
),
install
:
installTemplate
.
join
(
'
,
'
+
endOfLine
),
version
:
process
.
env
.
VERSION
||
require
(
'
../../package.json
'
).
version
,
list
:
listTemplate
.
join
(
'
,
\n
'
)
list
:
listTemplate
.
join
(
'
,
'
+
endOfLine
)
});
fs
.
writeFileSync
(
OUTPUT_PATH
,
template
);
...
...
examples/docs/en-US/input.md
View file @
0607fd9d
<script>
var Vue = require('vue')
;
import Vue from 'vue'
;
Vue.component('my-item-en', {
functional: true,
render: function (h, ctx) {
...
...
examples/docs/zh-CN/input.md
View file @
0607fd9d
<script>
var Vue = require('vue')
;
import Vue from 'vue'
;
Vue.component('my-item-zh', {
functional: true,
render: function (h, ctx) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment