0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 09:21:21 +01:00

-> v0.2.0

This commit is contained in:
Rich-Harris 2016-11-25 15:52:28 -05:00
parent 8704d38503
commit ad1f15d01f
7 changed files with 73 additions and 14 deletions

View File

@ -1,5 +1,20 @@
# Svelte changelog
## 0.2.0
* Only generate UMD build, for now
* Include dependencies in the build, treat as `devDependencies`
* Faster initial render
* Parent data overrides child defaults
* Remove top-level text nodes on teardown
* Handle `readUntil` errors in parser
* Basic `<select>` binding
* Handle missing data
* Prevent infinite set/observe loops
* Add `bind:foo` shorthand
* `else` and `elseif` blocks
* Hoist imports
## 0.1.1
* Support unquoted attributes

View File

@ -1,4 +1,3 @@
import deindent from '../utils/deindent.js';
import counter from '../utils/counter.js';
export default {

View File

@ -8,3 +8,5 @@ export function compile ( template, options = {} ) {
return generated;
}
export { parse };

48
npm-debug.log Normal file
View File

@ -0,0 +1,48 @@
0 info it worked if it ends with ok
1 verbose cli [ '/Users/haggis/.nvm/versions/node/v6.4.0/bin/node',
1 verbose cli '/Users/haggis/.nvm/versions/node/v6.4.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'lint' ]
2 info using npm@3.10.3
3 info using node@v6.4.0
4 verbose run-script [ 'prelint', 'lint', 'postlint' ]
5 info lifecycle svelte@0.2.0~prelint: svelte@0.2.0
6 silly lifecycle svelte@0.2.0~prelint: no script for prelint, continuing
7 info lifecycle svelte@0.2.0~lint: svelte@0.2.0
8 verbose lifecycle svelte@0.2.0~lint: unsafe-perm in lifecycle true
9 verbose lifecycle svelte@0.2.0~lint: PATH: /Users/haggis/.nvm/versions/node/v6.4.0/lib/node_modules/npm/bin/node-gyp-bin:/www/SVELTE/svelte/node_modules/.bin:/Users/haggis/.nvm/versions/node/v6.4.0/bin:/Users/haggis/.yarn/bin:/Users/haggis/torch/install/bin:/Users/haggis/.nvm/versions/node/v6.4.0/bin:./node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Library/Frameworks/GDAL.framework/Programs
10 verbose lifecycle svelte@0.2.0~lint: CWD: /www/SVELTE/svelte
11 silly lifecycle svelte@0.2.0~lint: Args: [ '-c', 'eslint compiler' ]
12 silly lifecycle svelte@0.2.0~lint: Returned: code: 1 signal: null
13 info lifecycle svelte@0.2.0~lint: Failed to exec lint script
14 verbose stack Error: svelte@0.2.0 lint: `eslint compiler`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/Users/haggis/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/Users/haggis/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:852:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid svelte@0.2.0
16 verbose cwd /www/SVELTE/svelte
17 error Darwin 15.6.0
18 error argv "/Users/haggis/.nvm/versions/node/v6.4.0/bin/node" "/Users/haggis/.nvm/versions/node/v6.4.0/bin/npm" "run" "lint"
19 error node v6.4.0
20 error npm v3.10.3
21 error code ELIFECYCLE
22 error svelte@0.2.0 lint: `eslint compiler`
22 error Exit status 1
23 error Failed at the svelte@0.2.0 lint script 'eslint compiler'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the svelte package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error eslint compiler
23 error You can get information on how to open an issue for this project with:
23 error npm bugs svelte
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls svelte
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

View File

@ -1,9 +1,8 @@
{
"name": "svelte",
"version": "0.1.1",
"version": "0.2.0",
"description": "The magical disappearing UI framework",
"main": "dist/svelte.umd.js",
"module": "dist/svelte.es.js",
"main": "dist/svelte.js",
"files": [
"dist",
"README.md"
@ -34,6 +33,7 @@
},
"homepage": "https://github.com/sveltejs/svelte#README",
"devDependencies": {
"acorn": "^4.0.3",
"babel-plugin-istanbul": "^3.0.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.18.0",
"babel-register": "^6.18.0",
@ -41,7 +41,10 @@
"console-group": "^0.3.2",
"eslint": "^3.10.2",
"eslint-plugin-import": "^2.2.0",
"estree-walker": "^0.3.0",
"jsdom": "^9.8.3",
"locate-character": "^2.0.0",
"magic-string": "^0.16.0",
"mocha": "^3.1.2",
"node-resolve": "^1.3.3",
"nyc": "^9.0.1",
@ -49,12 +52,6 @@
"rollup": "^0.36.3",
"rollup-plugin-node-resolve": "^2.0.0"
},
"dependencies": {
"acorn": "^4.0.3",
"estree-walker": "^0.3.0",
"locate-character": "^2.0.0",
"magic-string": "^0.16.0"
},
"nyc": {
"include": [
"compiler/**/*.js"

View File

@ -4,8 +4,7 @@ export default {
entry: 'compiler/index.js',
moduleName: 'svelte',
targets: [
{ dest: 'dist/svelte.umd.js', format: 'umd' },
{ dest: 'dist/svelte.es.js', format: 'es' }
{ dest: 'dist/svelte.js', format: 'umd' }
],
plugins: [
nodeResolve({ jsnext: true, module: true })

View File

@ -1,5 +1,4 @@
import { compile } from '../compiler/index.js';
import parse from '../compiler/parse/index.js';
import { compile, parse } from '../dist/svelte.es.js';
import assert from 'assert';
import * as path from 'path';
import * as fs from 'fs';