build dart files and pubspec for getting packages