angulardart-community / ngdart_cli Goto Github PK
View Code? Open in Web Editor NEWA command-line tool for creating and managing AngularDart apps.
License: BSD 3-Clause "New" or "Revised" License
A command-line tool for creating and managing AngularDart apps.
License: BSD 3-Clause "New" or "Revised" License
Rename the existing ngdart package utility to ngdart_cli, so the package name will be available for the main angular package of AngularDart Community
webdev: 2.7.12
dart: Dart SDK version: 2.19.0-edge.6cc1c3c23c7b8ee0ca8291fc9d090cae9166d6f2 (be) (Fri Nov 4 13:24:57 2022 +0000) on "macos_x64"
ngdart: 1.2.0
steps followed:
dart pub global activate webdev
dart pub global activate ngdart_cli
ngdart create app
webdev serve
in the app
directoryResult:
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
[SEVERE] This is likely caused by a misconfigured builder definition.
[SEVERE]
Unhandled exception:
Bad state: Unable to start build daemon.
#0 _handleDaemonStartup.<anonymous closure> (package:build_daemon/client.dart:79:21)
#1 _runUserCode (dart:async/stream_pipe.dart:11:23)
#2 Stream.firstWhere.<anonymous closure> (dart:async/stream.dart:1704:9)
#3 _RootZone.runGuarded (dart:async/zone.dart:1581:10)
#4 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#5 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)
#6 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)
#7 _SyncBroadcastStreamController._sendDone.<anonymous closure> (dart:async/broadcast_stream_controller.dart:399:22)
#8 _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:322:15)
#9 _SyncBroadcastStreamController._sendDone (dart:async/broadcast_stream_controller.dart:398:7)
#10 _BroadcastStreamController.close (dart:async/broadcast_stream_controller.dart:268:5)
#11 _AsBroadcastStreamController.close (dart:async/broadcast_stream_controller.dart:505:27)
#12 _RootZone.runGuarded (dart:async/zone.dart:1581:10)
#13 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#14 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)
#15 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)
#16 _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:87:11)
#17 _EventSinkWrapper.close (dart:async/stream_transformers.dart:21:11)
#18 _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
#19 _LineSplitterSink.close (dart:convert/line_splitter.dart:154:11)
#20 _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:132:24)
#21 _RootZone.runGuarded (dart:async/zone.dart:1581:10)
#22 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#23 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)
#24 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)
#25 _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:87:11)
#26 _EventSinkWrapper.close (dart:async/stream_transformers.dart:21:11)
#27 _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
#28 _Utf8ConversionSink.close (dart:convert/string_conversion.dart:305:20)
#29 _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:81:18)
#30 _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:132:24)
#31 _RootZone.runGuarded (dart:async/zone.dart:1581:10)
#32 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#33 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)
#34 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)
#35 _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:782:19)
#36 _StreamController._closeUnchecked (dart:async/stream_controller.dart:637:7)
#37 _StreamController.close (dart:async/stream_controller.dart:630:5)
#38 _Socket._onData (dart:io-patch/socket_patch.dart:2362:21)
#39 _RootZone.runUnaryGuarded (dart:async/zone.dart:1593:10)
#40 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#41 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#42 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#43 _StreamController._add (dart:async/stream_controller.dart:648:7)
#44 _StreamController.add (dart:async/stream_controller.dart:596:5)
#45 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1884:35)
#46 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1327:18)
#47 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#48 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#49 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:123:13)
#50 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:194:5)
It appears that ngdart is not being installed in the bin directory for v7+. Installing v1+ seems to install bin and works as expected
Steps to reproduce
dart pub global activate ngdart 7.1.1
ls ~/.pub-cache/bin
see ngdart is not present
dart pub global activate ngdart 1.1.0
ls ~/.pub-cache/bin
see ngdart is present and executable
When facing exceptions that are NOT UsageException
, sometimes there will be extra lines after the error message. For example, when a new project's name conflicts with an existing folder name and the user doesn't use --force
, the following is produced:
$ ngdart create hello
[Info] Creating project...
[Error] Project directory not empty.
Create a new project directory, or use --force to force generation into the target directory.
There are extra two lines after the last message. The expected output should be like this:
$ ngdart create hello
[Info] Creating project...
[Error] Project directory not empty.
Create a new project directory, or use --force to force generation into the target directory.
It's probably because I carelessly messed up some \n
s... Not a big issue but fixing it makes using the program feel better.
Steps to reproduce
pub global activate webdev && pub global activate ngdart && pub global activate ngdart_cli
ngdart create myproject
This should be changed to ngdart right? Or am I missing something?
add "ngdart serve" option
I mean, instead of having this cli to create AngularDart apps, why not forking the Dart SDK and adding an option to its dart create -t
command?
like dart create -t angular myapp
what do you guys think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.