Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
bootstrap
Commits
4ba4b7c3
Commit
4ba4b7c3
authored
Sep 09, 2014
by
James Friend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added banner about generated file
parent
2bc41773
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
dist/js/npm.js
dist/js/npm.js
+1
-0
grunt/bs-commonjs-generator.js
grunt/bs-commonjs-generator.js
+2
-1
No files found.
dist/js/npm.js
View file @
4ba4b7c3
// This file is generated. You can require() it in a CommonJS environment.
require
(
'
../../js/transition.js
'
)
require
(
'
../../js/alert.js
'
)
require
(
'
../../js/button.js
'
)
...
...
grunt/bs-commonjs-generator.js
View file @
4ba4b7c3
...
...
@@ -10,7 +10,8 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
return
'
require(
\'
'
+
requirePath
+
'
\'
)
'
;
}
var
moduleOutputJs
=
srcFiles
.
map
(
srcPathToDestRequire
).
join
(
'
\n
'
);
var
moduleOutputJs
=
'
// This file is generated. You can require() it in a CommonJS environment.
\n
'
+
srcFiles
.
map
(
srcPathToDestRequire
).
join
(
'
\n
'
);
try
{
fs
.
writeFileSync
(
destFilepath
,
moduleOutputJs
);
}
...
...
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