Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SourceMap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楊慶堂
SourceMap
Commits
6aca9028
Commit
6aca9028
authored
Apr 03, 2018
by
楊慶堂
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parents
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
0 deletions
+74
-0
.gitignore
.gitignore
+28
-0
README.txt
README.txt
+6
-0
pom.xml
pom.xml
+20
-0
src/main/java/idv/scott/Test.java
src/main/java/idv/scott/Test.java
+20
-0
No files found.
.gitignore
0 → 100644
View file @
6aca9028
/infer-out/
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
.mvn/timing.properties
log/
logs/
.idea/
hrb_backend.iml
.DS_Store
.project
.classpath
.settings
/output.log
build.xml
/bin/
*.map
/men:CRMDB.*
.springBeans
/dicomImages/
node_modules
yarn.lock
.sass-cache
*.iml
README.txt
0 → 100644
View file @
6aca9028
android Source map 打包
node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform android --dev false --reset-cache --bundle-output android.bundle --sourcemap-output android.bundle.map
iOS Source map 打包
node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output ios.bundle --sourcemap-output ios.bundle.map
\ No newline at end of file
pom.xml
0 → 100644
View file @
6aca9028
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
idv.scott
</groupId>
<artifactId>
SourceMap
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
com.google.javascript
</groupId>
<artifactId>
closure-compiler
</artifactId>
<version>
v20160208
</version>
</dependency>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
src/main/java/idv/scott/Test.java
0 → 100644
View file @
6aca9028
package
idv.scott
;
import
java.io.File
;
import
java.io.IOException
;
import
org.apache.commons.io.FileUtils
;
import
com.google.debugging.sourcemap.SourceMapConsumerV3
;
import
com.google.debugging.sourcemap.SourceMapParseException
;
public
class
Test
{
public
static
void
main
(
String
[]
args
)
throws
IOException
,
SourceMapParseException
{
String
sourceMap
=
FileUtils
.
readFileToString
(
new
File
(
"test.bundle.map"
));
SourceMapConsumerV3
consumer
=
new
SourceMapConsumerV3
();
consumer
.
parse
(
sourceMap
);
System
.
out
.
println
(
consumer
.
getMappingForLine
(
577
,
2554
));
System
.
out
.
println
(
consumer
.
getMappingForLine
(
41
,
33914
));
System
.
out
.
println
(
consumer
.
getMappingForLine
(
41
,
33972
));
}
}
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