File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "build" : " babel src -d dist --presets es2015" ,
8- "watch" : " babel src -d dist --presets es2015 -w"
7+ "build" : " babel src -d dist" ,
8+ "watch" : " babel src -d dist -w"
9+ },
10+ "babel" : {
11+ "presets" : [" es2015" ],
12+ "plugins" : [],
13+ "minified" : true ,
14+ "ignore" : " *test.js"
915 },
1016 "repository" : {
1117 "type" : " git" ,
Original file line number Diff line number Diff line change 1- let text = "Some text" ;
1+ class SomeClass {
2+ constructor ( someOptions ) {
3+ this . prop1 = someOptions . prop1 ;
4+ this . prop2 = someOptions . prop2 ;
5+ this . prop3 = someOptions . prop3 ;
6+ }
7+
8+ someFunc ( ) {
9+ console . log ( "This is some func of some class" ) ;
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ function createSomeCalcFunction ( x ) {
2+ return function ( ) {
3+ console . log ( 1 + x ) ;
4+ }
5+ }
6+
7+ const someFunc = createSomeCalcFunction ( 1 ) ;
8+ someFunc ( ) ;
You can’t perform that action at this time.
0 commit comments