forked from apache/incubator-weex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [html5] merge form jsfm-feature-0.17
- Loading branch information
Showing
386 changed files
with
7,394 additions
and
1,967 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# do not lint test case source files | ||
html5/test/case/*/*.source.js | ||
html5/test/case/*/*.output.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { rollup } from 'rollup' | ||
import postcss from 'rollup-plugin-postcss' | ||
import json from 'rollup-plugin-json' | ||
import eslint from 'rollup-plugin-eslint' | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import buble from 'rollup-plugin-buble' | ||
|
||
const pkg = require('../package.json') | ||
const version = pkg.subversion.browser | ||
const date = new Date().toISOString().split('T')[0].replace(/\-/g, '') | ||
const banner = `\ | ||
console.log('START WEEX HTML5: ${version} Build ${date}'); | ||
` | ||
|
||
export default { | ||
entry: './html5/render/browser/index.js', | ||
dest: './dist/browser.common.js', | ||
banner, | ||
format: 'cjs', | ||
plugins: [ | ||
postcss(), | ||
json(), | ||
eslint({ | ||
exclude: ['./package.json', '**/*.css'] | ||
}), | ||
nodeResolve({ | ||
jsnext: true, | ||
main: true, | ||
browser: true | ||
}), | ||
commonjs(), | ||
buble() | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { rollup } from 'rollup' | ||
import postcss from 'rollup-plugin-postcss' | ||
import json from 'rollup-plugin-json' | ||
import eslint from 'rollup-plugin-eslint' | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import buble from 'rollup-plugin-buble' | ||
|
||
const pkg = require('../package.json') | ||
const version = pkg.subversion.browser | ||
const date = new Date().toISOString().split('T')[0].replace(/\-/g, '') | ||
const banner = `\ | ||
(this.nativeLog || function(s) {console.log(s)})('START WEEX HTML5: ${version} Build ${date}'); | ||
var global = this, process = { env: {}}; | ||
` | ||
|
||
export default { | ||
entry: './html5/render/browser/index.js', | ||
dest: './dist/browser.js', | ||
banner, | ||
format: 'umd', | ||
moduleName: 'weex', | ||
sourceMap: 'inline', | ||
plugins: [ | ||
postcss(), | ||
json(), | ||
eslint({ | ||
exclude: ['./package.json', '**/*.css'] | ||
}), | ||
nodeResolve({ | ||
jsnext: true, | ||
main: true, | ||
browser: true | ||
}), | ||
commonjs(), | ||
buble() | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { rollup } from 'rollup' | ||
import json from 'rollup-plugin-json' | ||
import eslint from 'rollup-plugin-eslint' | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import buble from 'rollup-plugin-buble' | ||
|
||
const pkg = require('../package.json') | ||
const version = pkg.subversion.framework | ||
const date = new Date().toISOString().split('T')[0].replace(/\-/g, '') | ||
const banner = `\ | ||
(this.nativeLog || function(s) {console.log(s)})('START JS FRAMEWORK: ${version} Build ${date}'); | ||
var global = this, process = { env: {}}; | ||
` | ||
|
||
export default { | ||
entry: './html5/render/native/index.js', | ||
dest: './dist/native.js', | ||
banner, | ||
format: 'umd', | ||
sourceMap: 'inline', | ||
plugins: [ | ||
json(), | ||
eslint({ | ||
exclude: './package.json' | ||
}), | ||
nodeResolve({ | ||
jsnext: true, | ||
main: true | ||
}), | ||
commonjs(), | ||
buble() | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var webpack = require('webpack'); | ||
|
||
var entry = {}; | ||
|
||
function walk(dir) { | ||
dir = dir || '.' | ||
var directory = path.join(__dirname, '../examples', dir); | ||
fs.readdirSync(directory) | ||
.forEach(function(file) { | ||
var fullpath = path.join(directory, file); | ||
var stat = fs.statSync(fullpath); | ||
var extname = path.extname(fullpath); | ||
if (stat.isFile() && extname === '.vue') { | ||
var name = path.join('examples', 'build', dir, path.basename(file, extname)); | ||
entry[name] = fullpath + '?entry=true'; | ||
} else if (stat.isDirectory() && file !== 'build' && file !== 'include') { | ||
var subdir = path.join(dir, file); | ||
walk(subdir); | ||
} | ||
}); | ||
} | ||
|
||
walk(); | ||
|
||
var banner = '// { "framework": "Vue" }\n' | ||
|
||
var bannerPlugin = new webpack.BannerPlugin(banner, { | ||
raw: true | ||
}) | ||
|
||
module.exports = { | ||
entry: entry, | ||
output : { | ||
path: '.', | ||
filename: '[name].js' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.vue(\?[^?]+)?$/, | ||
loader: 'weex-vue-loader' | ||
} | ||
] | ||
}, | ||
plugins: [bannerPlugin] | ||
} |
Oops, something went wrong.