This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pkgScript = require('package-script'); | |
pkgScript.install([{ | |
admin: false, | |
name: 'webpack' | |
}], { | |
callback: function () { | |
console.log('installed'); | |
}, | |
init: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ASP.NET", | |
"version": "0.0.0", | |
"scripts": { | |
"install_global_deps": "node installer.js" | |
}, | |
"devDependencies": { | |
"gulp": "3.8.11", | |
"gulp-concat": "2.5.2", | |
"gulp-cssmin": "0.1.7", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "${workspaceRoot}/node_modules/.bin/webpack", | |
"isShellCommand": true, | |
"args": [ | |
"--display-modules", | |
"--progress" | |
], | |
"echoCommand": true, | |
"tasks": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"dev-build": "webpack -d --display-modules --progress", | |
"dist-build": "webpack -p --display-modules --progress" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"devDependencies": { | |
"mocha": "^2.3.3" | |
}, | |
"scripts": { | |
"test": "mocha --debug-brk" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"configurations": [ | |
{ | |
"name": "Debug Mocha Test", | |
"type": "node", | |
"address": "localhost", | |
"port": 5858, | |
"sourceMaps": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vendor": { | |
"js": "vendor.c7a466d957209719c8d9.js" | |
}, | |
"app": { | |
"js": "app.eaa3ef606862a9d2be7d.js" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const AssetsPlugin = require('assets-webpack-plugin'); | |
const CleanPlugin = require('clean-webpack-plugin'); | |
const path = require('path'); | |
const pkg = require('./package'); | |
const webpack = require('webpack'); | |
const BUILD_DIRECTORY = 'build'; | |
const BUILD_DROP_PATH = path.resolve(__dirname, BUILD_DIRECTORY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static JObject GetWebpackAssetsJson(string applicationBasePath) | |
{ | |
JObject webpackAssetsJson = null; | |
string packageJsonFilePath = $"{applicationBasePath}\\{"package.json"}"; | |
using (StreamReader packageJsonFile = File.OpenText(packageJsonFilePath)) | |
{ | |
using (JsonTextReader packageJsonReader = new JsonTextReader(packageJsonFile)) | |
{ | |
JObject packageJson = (JObject)JToken.ReadFrom(packageJsonReader); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string _applicationBasePath = null; | |
public HomeController(IApplicationEnvironment env) { | |
_applicationBasePath = env.ApplicationBasePath; | |
} |