小编Gas*_*n K的帖子

Bitbucket 服务器:在推送修改特定文件夹内文件的提交时发送电子邮件

当有人推送一个或多个修改文件夹内文件的提交时,有什么方法可以发送电子邮件吗?

我有一个文件夹,其中包含的文件包含在大多数提交中不应更改的通用代码。但是,如果有人对这些文件进行更改,我想触发电子邮件/松弛通知。

可以用BitBucket服务器来做吗?也许有一个插件可以让我做到这一点?

git bitbucket-server

5
推荐指数
1
解决办法
1798
查看次数

角度cli ng服务错误

angular-cli用于完美地工作,但现在我不知道为什么在创建新项目时它不运行服务器.

我尝试重新安装angular-cli.

我创建了一个新的应用程序ng new app.我导航到/ app/path,运行ng serve,我得到:

No errors
Error: No errors
    at validate (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\schema\validator.js:10:9)
    at Function.ExtractTextPlugin.extract (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\index.js:188:3)
    at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:79:83
    at Array.map (native)
    at Object.getWebpackStylesConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:76:43)
    at new NgCliWebpackConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-config.js:44:51)
    at Class.run (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\tasks\serve-webpack.js:23:22)
    at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\commands\serve.run.js:37:22
    at process._tickCallback (internal/process/next_tick.js:103:7)
Run Code Online (Sandbox Code Playgroud)

javascript angular-cli angular

3
推荐指数
1
解决办法
559
查看次数

打字稿 - 未捕获的ReferenceError:未定义导出

我在尝试导入主app.ts中的其他ts文件时收到此错误消息(Uncaught ReferenceError:exports未定义)

app.ts

import { LanguagesConfigs } from './LanguagesConfigs';
let languagesConfigs = new LanguagesConfigs();
Run Code Online (Sandbox Code Playgroud)

LanguagesConfigs.ts

export class LanguagesConfigs {
 code
}
Run Code Online (Sandbox Code Playgroud)

tsconfig.json

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "sourceMap": true
    }
}
Run Code Online (Sandbox Code Playgroud)

我在visual studio代码中编译它.它生成.js和.js.map文件

注意:我没有使用像angular这样的帧,只是普通的打字稿.注2:CommonJS安装在项目中(Typescript ReferenceError:exports未定义)

typescript

3
推荐指数
1
解决办法
6935
查看次数

表达角度为2 cli

我已经尝试了一切.我有一个非常简单的ng2应用程序.这是文件结构:

mean
  |- client (where the ng2 app lives)
  | |- dist
  | |- (all ng2 app folders)...
  |- node_modules
  |- routes
  | |- index.js
  |- views
  |- package.json
  |- server.js
Run Code Online (Sandbox Code Playgroud)

index.js:

var express = require('express');
var router = express.Router();

router.get('/', (req, res, next) => {
    res.render('../client/dist/index.html')
})

module.exports = router;
Run Code Online (Sandbox Code Playgroud)

当我运行server.js并导航到localhost:3000时,脚本只是不加载:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:3000/inline.bundle.js Failed to load resource: the server responded with a status of 404 (Not …
Run Code Online (Sandbox Code Playgroud)

javascript express server angular

2
推荐指数
1
解决办法
755
查看次数