コード例 #1
0
 public static INpmController Create(
     string fullPathToRootPackageDirectory,
     string cachePath,
     bool showMissingDevOptionalSubPackages = false,
     INpmPathProvider npmPathProvider = null,
     bool useFallbackIfNpmNotFound = true) {
     return new NpmController(
         fullPathToRootPackageDirectory,
         cachePath,
         showMissingDevOptionalSubPackages,
         npmPathProvider);
 }
コード例 #2
0
 public static INpmController Create(
     string fullPathToRootPackageDirectory,
     string cachePath,
     bool showMissingDevOptionalSubPackages = false,
     INpmPathProvider npmPathProvider       = null,
     bool useFallbackIfNpmNotFound          = true)
 {
     return(new NpmController(
                fullPathToRootPackageDirectory,
                cachePath,
                showMissingDevOptionalSubPackages,
                npmPathProvider));
 }
コード例 #3
0
        public NpmController(
            string fullPathToRootPackageDirectory,
            string cachePath,
            bool showMissingDevOptionalSubPackages = false,
            INpmPathProvider npmPathProvider = null) {
            _fullPathToRootPackageDirectory = fullPathToRootPackageDirectory;
            _cachePath = cachePath;
            _showMissingDevOptionalSubPackages = showMissingDevOptionalSubPackages;
            _npmPathProvider = npmPathProvider;

            _localWatcher = CreateModuleDirectoryWatcherIfDirectoryExists(_fullPathToRootPackageDirectory);

            try {
                ReloadModules();
            } catch (NpmNotFoundException) { }
        }
コード例 #4
0
        public NpmController(
            string fullPathToRootPackageDirectory,
            string cachePath,
            bool showMissingDevOptionalSubPackages = false,
            INpmPathProvider npmPathProvider       = null)
        {
            _fullPathToRootPackageDirectory = fullPathToRootPackageDirectory;
            _cachePath = cachePath;
            _showMissingDevOptionalSubPackages = showMissingDevOptionalSubPackages;
            _npmPathProvider = npmPathProvider;

            _localWatcher = CreateModuleDirectoryWatcherIfDirectoryExists(_fullPathToRootPackageDirectory);

            try {
                ReloadModules();
            } catch (NpmNotFoundException) { }
        }
コード例 #5
0
        public NpmController(
            string fullPathToRootPackageDirectory,
            string cachePath,
            bool isProject,
            bool showMissingDevOptionalSubPackages = false,
            INpmPathProvider npmPathProvider       = null)
        {
            this.IsProject = isProject;
            this.FullPathToRootPackageDirectory = fullPathToRootPackageDirectory;
            this.cachePath = cachePath;
            this.showMissingDevOptionalSubPackages = showMissingDevOptionalSubPackages;
            this.npmPathProvider = npmPathProvider;

            this.localWatcher = CreateModuleDirectoryWatcherIfDirectoryExists(this.FullPathToRootPackageDirectory);

            try
            {
                ReloadModules();
            }
            catch (NpmNotFoundException) { }
        }