Skip to content

Commit ad1f15d

Browse files
committed
-> v0.2.0
1 parent 8704d38 commit ad1f15d

File tree

7 files changed

+73
-14
lines changed

7 files changed

+73
-14
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Svelte changelog
22

3+
## 0.2.0
4+
5+
* Only generate UMD build, for now
6+
* Include dependencies in the build, treat as `devDependencies`
7+
* Faster initial render
8+
* Parent data overrides child defaults
9+
* Remove top-level text nodes on teardown
10+
* Handle `readUntil` errors in parser
11+
* Basic `<select>` binding
12+
* Handle missing data
13+
* Prevent infinite set/observe loops
14+
* Add `bind:foo` shorthand
15+
* `else` and `elseif` blocks
16+
* Hoist imports
17+
318
## 0.1.1
419

520
* Support unquoted attributes

compiler/generate/visitors/ElseBlock.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import deindent from '../utils/deindent.js';
21
import counter from '../utils/counter.js';
32

43
export default {

compiler/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ export function compile ( template, options = {} ) {
88

99
return generated;
1010
}
11+
12+
export { parse };

npm-debug.log

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/Users/haggis/.nvm/versions/node/v6.4.0/bin/node',
3+
1 verbose cli '/Users/haggis/.nvm/versions/node/v6.4.0/bin/npm',
4+
1 verbose cli 'run',
5+
1 verbose cli 'lint' ]
6+
2 info using [email protected]
7+
3 info using [email protected]
8+
4 verbose run-script [ 'prelint', 'lint', 'postlint' ]
9+
5 info lifecycle [email protected]~prelint: [email protected]
10+
6 silly lifecycle [email protected]~prelint: no script for prelint, continuing
11+
7 info lifecycle [email protected]~lint: [email protected]
12+
8 verbose lifecycle [email protected]~lint: unsafe-perm in lifecycle true
13+
9 verbose lifecycle [email protected]~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
14+
10 verbose lifecycle [email protected]~lint: CWD: /www/SVELTE/svelte
15+
11 silly lifecycle [email protected]~lint: Args: [ '-c', 'eslint compiler' ]
16+
12 silly lifecycle [email protected]~lint: Returned: code: 1 signal: null
17+
13 info lifecycle [email protected]~lint: Failed to exec lint script
18+
14 verbose stack Error: [email protected] lint: `eslint compiler`
19+
14 verbose stack Exit status 1
20+
14 verbose stack at EventEmitter.<anonymous> (/Users/haggis/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
21+
14 verbose stack at emitTwo (events.js:106:13)
22+
14 verbose stack at EventEmitter.emit (events.js:191:7)
23+
14 verbose stack at ChildProcess.<anonymous> (/Users/haggis/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
24+
14 verbose stack at emitTwo (events.js:106:13)
25+
14 verbose stack at ChildProcess.emit (events.js:191:7)
26+
14 verbose stack at maybeClose (internal/child_process.js:852:16)
27+
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
28+
15 verbose pkgid [email protected]
29+
16 verbose cwd /www/SVELTE/svelte
30+
17 error Darwin 15.6.0
31+
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"
32+
19 error node v6.4.0
33+
20 error npm v3.10.3
34+
21 error code ELIFECYCLE
35+
22 error [email protected] lint: `eslint compiler`
36+
22 error Exit status 1
37+
23 error Failed at the [email protected] lint script 'eslint compiler'.
38+
23 error Make sure you have the latest version of node.js and npm installed.
39+
23 error If you do, this is most likely a problem with the svelte package,
40+
23 error not with npm itself.
41+
23 error Tell the author that this fails on your system:
42+
23 error eslint compiler
43+
23 error You can get information on how to open an issue for this project with:
44+
23 error npm bugs svelte
45+
23 error Or if that isn't available, you can get their info via:
46+
23 error npm owner ls svelte
47+
23 error There is likely additional logging output above.
48+
24 verbose exit [ 1, true ]

package.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "svelte",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "The magical disappearing UI framework",
5-
"main": "dist/svelte.umd.js",
6-
"module": "dist/svelte.es.js",
5+
"main": "dist/svelte.js",
76
"files": [
87
"dist",
98
"README.md"
@@ -34,27 +33,25 @@
3433
},
3534
"homepage": "https://github.com/sveltejs/svelte#README",
3635
"devDependencies": {
36+
"acorn": "^4.0.3",
3737
"babel-plugin-istanbul": "^3.0.0",
3838
"babel-plugin-transform-es2015-modules-commonjs": "^6.18.0",
3939
"babel-register": "^6.18.0",
4040
"codecov": "^1.0.1",
4141
"console-group": "^0.3.2",
4242
"eslint": "^3.10.2",
4343
"eslint-plugin-import": "^2.2.0",
44+
"estree-walker": "^0.3.0",
4445
"jsdom": "^9.8.3",
46+
"locate-character": "^2.0.0",
47+
"magic-string": "^0.16.0",
4548
"mocha": "^3.1.2",
4649
"node-resolve": "^1.3.3",
4750
"nyc": "^9.0.1",
4851
"reify": "^0.4.0",
4952
"rollup": "^0.36.3",
5053
"rollup-plugin-node-resolve": "^2.0.0"
5154
},
52-
"dependencies": {
53-
"acorn": "^4.0.3",
54-
"estree-walker": "^0.3.0",
55-
"locate-character": "^2.0.0",
56-
"magic-string": "^0.16.0"
57-
},
5855
"nyc": {
5956
"include": [
6057
"compiler/**/*.js"

rollup.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ export default {
44
entry: 'compiler/index.js',
55
moduleName: 'svelte',
66
targets: [
7-
{ dest: 'dist/svelte.umd.js', format: 'umd' },
8-
{ dest: 'dist/svelte.es.js', format: 'es' }
7+
{ dest: 'dist/svelte.js', format: 'umd' }
98
],
109
plugins: [
1110
nodeResolve({ jsnext: true, module: true })

test/test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { compile } from '../compiler/index.js';
2-
import parse from '../compiler/parse/index.js';
1+
import { compile, parse } from '../dist/svelte.es.js';
32
import assert from 'assert';
43
import * as path from 'path';
54
import * as fs from 'fs';

0 commit comments

Comments
 (0)