Skip to content

Commit

Permalink
release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Dec 14, 2016
1 parent 4761ef9 commit a8b7fd0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yog2",
"version": "1.4.1",
"version": "1.5.0",
"description": "Front End Integrated Solution for node express.",
"main": "yog2.js",
"bin": {
Expand Down
30 changes: 28 additions & 2 deletions yog2-fis3.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ var clientRoadmap = {
'/client/{**.ts,**.tsx,**.jsx,**.es}': {
parser: fis.plugin('typescript', {
module: 1,
target: 0
target: 0,
sourceMap: true
}),
rExt: 'js'
},
Expand Down Expand Up @@ -106,7 +107,8 @@ var serverRoadmap = {
'/server/{**.ts,**.es}': {
parser: fis.plugin('typescript', {
module: 1,
target: 2
target: 2,
sourceMap: true
}),
rExt: 'js'
},
Expand Down Expand Up @@ -144,7 +146,31 @@ fis.require._cache['command-util'] = require('./command/util.js');
});
});

// 发布模式关闭sourceMap
fis.media('prod').match('/client/{**.ts,**.tsx,**.jsx,**.es}', {
parser: fis.plugin('typescript', {
module: 1,
target: 0
}),
rExt: 'js'
}).match('/server/{**.ts,**.es}',{
parser: fis.plugin('typescript', {
module: 1,
target: 2
}),
rExt: 'js'
});

fis.enableES7 = function (options) {
[fis.media('dev'), fis.media('debug'), fis.media('debug-prod')].forEach(function (media) {
media.match('/server/**.js', {
parser: fis.plugin('typescript', {
module: 1,
target: 2,
sourceMap: true
})
});
});
fis.match('/server/**.js', {
parser: fis.plugin('typescript', {
module: 1,
Expand Down

0 comments on commit a8b7fd0

Please sign in to comment.