Skip to content
Permalink
Browse files

Rename `build` folder to `dist`.

  • Loading branch information
jamesleesaunders committed Jul 15, 2019
1 parent 1b13fba commit d7743533070aa80064a5dfc02a0bc0f57effc692
@@ -1,4 +1,4 @@
build/*.zip
dist/*.zip
test/
.DS_Store
.idea
@@ -3,8 +3,8 @@

**d3-x3dom** makes it easy to quickly produce beautiful 3D data visualisations with minimal code.

The `build/d3-x3dom.js` and `build/d3-x3dom.css` files are built from source files in the `src` directory.
Do NOT edit the `build` files directly, but rather edit the `src` files and then run `make` or `npm test` to generate the `build` files.
The `dist/d3-x3dom.js` and `dist/d3-x3dom.css` files are built from source files in the `src` directory.
Do NOT edit the `dist` files directly, but rather edit the `src` files and then run `make` or `npm test` to generate the `dist` files.

## Unit Testing
Note, d3-x3dom is currently transitioning unit testing framework from the tape to mocha. Currently running with a combination of the two. All new unit tests should be written using mocha. In time all tape tests should be re-written in mocha.
@@ -1,7 +1,7 @@
# d3-x3dom Makefile

COMPRESS_FILES := build/d3-x3dom.js \
build/d3-x3dom.min.js \
COMPRESS_FILES := dist/d3-x3dom.js \
dist/d3-x3dom.min.js \
README.md \
LICENSE.md

@@ -10,18 +10,18 @@ all: js css min zip docs

js:
@echo Compiling JS Files...
@rm -f build/d3-x3dom.js
@rm -f dist/d3-x3dom.js
@./node_modules/rollup/bin/rollup -c config/rollup.config.js

min:
@echo Minifying...
@rm -f build/d3-x3dom.min.js
@./node_modules/uglify-es/bin/uglifyjs build/d3-x3dom.js > build/d3-x3dom.min.js
@rm -f dist/d3-x3dom.min.js
@./node_modules/uglify-es/bin/uglifyjs dist/d3-x3dom.js > dist/d3-x3dom.min.js

zip: $(COMPRESS_FILES)
@echo Zipping...
@rm -f build/d3-x3dom.zip
@zip -qj build/d3-x3dom.zip $^
@rm -f dist/d3-x3dom.zip
@zip -qj dist/d3-x3dom.zip $^

docs:
@echo Generating Docs...
@@ -40,7 +40,7 @@ Include D3.js, X3DOM and d3-x3dom js and css files in the `<head>` section of yo
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/1.7.2/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/1.7.2/x3dom.css" />
<script src="https://raw.githack.com/jamesleesaunders/d3-x3dom/master/build/d3-x3dom.js"></script>
<script src="https://raw.githack.com/jamesleesaunders/d3-x3dom/master/dist/d3-x3dom.js"></script>
</head>
```

@@ -13,7 +13,7 @@ let banner = `/**
export default {
input: "index.js",
output: {
file: "build/d3-x3dom.js",
file: "dist/d3-x3dom.js",
format: "umd",
extend: true,
name: "d3.x3dom",
File renamed without changes.
File renamed without changes.
Binary file not shown.
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -6,7 +6,7 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://x3dom.org/download/dev/x3dom-full.js"></script>
<link rel="stylesheet" href="https://x3dom.org/download/dev/x3dom.css" />
<script src="../../build/d3-x3dom.js"></script>
<script src="../../dist/d3-x3dom.js"></script>
</head>

<body>
@@ -23,8 +23,8 @@
"bugs": {
"url": "https://github.com/jamesleesaunders/d3-x3dom/issues"
},
"main": "build/d3-x3dom.js",
"unpkg": "build/d3-x3dom.min.js",
"main": "dist/d3-x3dom.js",
"unpkg": "dist/d3-x3dom.min.js",
"module": "index.js",
"scripts": {
"pretest": "make",

0 comments on commit d774353

Please sign in to comment.
You can’t perform that action at this time.