Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-template-egret
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
game-template-egret
Commits
dc4993b3
Commit
dc4993b3
authored
Sep 20, 2018
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alienlib -> @alienlib
parent
82f2a683
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
rollup-compile-plugin.ts
scripts/rollup-compile-plugin.ts
+3
-1
tsconfig.json
tsconfig.json
+7
-1
No files found.
scripts/rollup-compile-plugin.ts
View file @
dc4993b3
...
@@ -5,6 +5,7 @@ const rollup = require('rollup');
...
@@ -5,6 +5,7 @@ const rollup = require('rollup');
const
resolve
=
require
(
'rollup-plugin-node-resolve'
);
const
resolve
=
require
(
'rollup-plugin-node-resolve'
);
const
typescriptPlugin
=
require
(
'./rollup-plugin-typescript'
);
const
typescriptPlugin
=
require
(
'./rollup-plugin-typescript'
);
const
typescript
=
require
(
'typescript'
);
const
typescript
=
require
(
'typescript'
);
const
rollupPluginTypescriptPathMapping
=
require
(
'rollup-plugin-typescript-path-mapping'
);
const
{
uglify
}
=
require
(
'rollup-plugin-uglify'
);
const
{
uglify
}
=
require
(
'rollup-plugin-uglify'
);
const
commonjs
=
require
(
'rollup-plugin-commonjs'
);
const
commonjs
=
require
(
'rollup-plugin-commonjs'
);
const
glob
=
require
(
'glob'
);
const
glob
=
require
(
'glob'
);
...
@@ -41,6 +42,7 @@ export class RollupCompilePlugin implements plugins.Command {
...
@@ -41,6 +42,7 @@ export class RollupCompilePlugin implements plugins.Command {
}),
}),
resolve
(),
resolve
(),
commonjs
(),
commonjs
(),
rollupPluginTypescriptPathMapping
({
tsconfig
:
true
}),
];
];
if
(
!
debugMode
)
{
if
(
!
debugMode
)
{
...
@@ -95,7 +97,7 @@ export class RollupCompilePlugin implements plugins.Command {
...
@@ -95,7 +97,7 @@ export class RollupCompilePlugin implements plugins.Command {
'bundle.min.js'
;
'bundle.min.js'
;
let
sourceCode
=
code
;
let
sourceCode
=
code
;
if
(
!
debugMode
)
{
if
(
!
debugMode
)
{
sourceCode
=
'RELEASE=true;DEBUG=false;'
+
sourceCode
;
sourceCode
=
'RELEASE=true;DEBUG=false;'
+
sourceCode
;
}
}
if
(
map
)
{
if
(
map
)
{
...
...
tsconfig.json
View file @
dc4993b3
...
@@ -12,7 +12,13 @@
...
@@ -12,7 +12,13 @@
"es5"
,
"es5"
,
"dom"
,
"dom"
,
"es2015.promise"
"es2015.promise"
]
],
"baseUrl"
:
"./"
,
"paths"
:
{
"@alienlib/*"
:
[
"src/alienlib-cjs/*"
]
},
"outDir"
:
"dist"
,
"rootDir"
:
"src"
},
},
"exclude"
:
[
"exclude"
:
[
"node_modules"
,
"node_modules"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment