mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 08:39:38 +02:00
Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = function (config) {
|
||||
|
||||
// frameworks to use
|
||||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
||||
frameworks: ['jasmine'],
|
||||
frameworks: ['browserify', 'jasmine'],
|
||||
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
@@ -17,11 +17,20 @@ module.exports = function (config) {
|
||||
'../src/**/*.js'
|
||||
],
|
||||
|
||||
preprocessors: {
|
||||
'../src/**/*.js': [ 'babel','browserify' ]
|
||||
},
|
||||
|
||||
// list of files to exclude
|
||||
exclude: ['../src/backup/**/*.js'],
|
||||
|
||||
|
||||
"babelPreprocessor": {
|
||||
// options go here
|
||||
},
|
||||
browserify: {
|
||||
debug: true,
|
||||
//transform: [ 'brfs' ]
|
||||
},
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
|
||||
|
Reference in New Issue
Block a user