Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
2bc41773
Commit
2bc41773
authored
10 years ago
by
James Friend
Browse files
Options
Download
Email Patches
Plain Diff
code style fixes
parent
015ee2ed
5 merge requests
!28721
Hot test
,
!13824
Allow npm package to be resolved via node module resolution
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grunt/bs-commonjs-generator.js
+1
-2
grunt/bs-commonjs-generator.js
with
1 addition
and
2 deletions
+1
-2
grunt/bs-commonjs-generator.js
+
1
-
2
View file @
2bc41773
...
...
@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
function
srcPathToDestRequire
(
srcFilepath
)
{
var
requirePath
=
path
.
relative
(
destDir
,
srcFilepath
);
return
"
require(
'
"
+
requirePath
+
"
')
"
;
return
'
require(
\'
'
+
requirePath
+
'
\
'
)
'
;
}
var
moduleOutputJs
=
srcFiles
.
map
(
srcPathToDestRequire
).
join
(
'
\n
'
);
try
{
fs
.
writeFileSync
(
destFilepath
,
moduleOutputJs
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets