Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MUR Drupal
d3-library
Commits
e31c0fb2
Commit
e31c0fb2
authored
Jun 29, 2013
by
Mike Bostock
Browse files
Add make rule for component.json.
parent
539a9da5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile
Makefile
+4
-3
bin/component
bin/component
+3
-5
bower.json
bower.json
+1
-0
No files found.
Makefile
View file @
e31c0fb2
...
...
@@ -5,7 +5,8 @@ GENERATED_FILES = \
d3.min.js
\
src/format/format-localized.js
\
src/time/format-localized.js
\
bower.json
bower.json
\
component.json
all
:
$(GENERATED_FILES)
...
...
@@ -35,9 +36,9 @@ d3.min.js: d3.js
@
rm
-f
$@
bin/uglify
$<
>
$@
bower
.json
:
bin/
bower
package.json
%
.json
:
bin/
%
package.json
@
rm
-f
$@
bin/
bower
>
$@
bin/
$*
>
$@
@
chmod
a-w
$@
clean
:
...
...
bin/component
View file @
e31c0fb2
#!/usr/bin/env node
var
fs
=
require
(
"
fs
"
)
,
package
=
require
(
"
../package.json
"
)
var
fs
=
require
(
"
fs
"
)
,
package
=
require
(
"
../package.json
"
)
;
console
.
log
(
JSON
.
stringify
({
"
name
"
:
"
d3
"
,
...
...
@@ -16,7 +16,5 @@ console.log(JSON.stringify({
],
"
dependencies
"
:
{},
"
development
"
:
{},
// component doesn't yet support multiple licenses
"
license
"
:
package
.
licenses
[
0
].
type
,
"
license
"
:
package
.
licenses
[
0
].
type
},
null
,
2
));
bower.json
View file @
e31c0fb2
...
...
@@ -13,6 +13,7 @@
".travis.yml"
,
"Makefile"
,
"bin"
,
"component.json"
,
"d3.min.js"
,
"index-browserify.js"
,
"index.js"
,
...
...
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