Skip to content

Commit d3cd80d

Browse files
authored
fix(svgxuse-and-icons): remove svgxuse and carbon-icons (#133)
* chore(yarn.lock): add to github * fix(dev-env): remove svgxuse * refactor(carbon-icons): remove from dependencies
1 parent b9f3c53 commit d3cd80d

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

demo/views/demo-all.dust

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<!-- Scripts -->
3737
<!-- <script src="../../dist/bluemix-components.min.js"></script> -->
3838
<script src="/demo.js"></script>
39-
<script src="/svgxuse/svgxuse.min.js"></script>
4039
<!-- Disable Auto Init with this flag -->
4140
<!-- true = JavaScript will not initialize automatically -->
4241
<!-- false = JavaScript will initialize automatically -->

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"style guide"
3030
],
3131
"dependencies": {
32-
"carbon-icons": "5.1.2",
3332
"lodash.debounce": "^4.0.8"
3433
},
3534
"devDependencies": {
@@ -99,7 +98,6 @@
9998
"semantic-release": "^6.3.2",
10099
"sinon": "^2.1.0",
101100
"sinon-chai": "^2.9.0",
102-
"svgxuse": "1.1.22",
103101
"validate-commit-msg": "^2.8.2",
104102
"vinyl-named": "^1.1.0"
105103
},
@@ -175,4 +173,4 @@
175173
"email": "[email protected]"
176174
}
177175
]
178-
}
176+
}

server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,18 @@ const directoryOrder = [
2828
app.engine('dust', adaro.dust());
2929
app.set('view engine', 'dust');
3030
app.set('views', path.resolve(__dirname, 'demo/views'));
31-
app.use(express.static('node_modules'));
3231
app.use(express.static('demo'));
3332
app.use(express.static('src'));
3433
app.use('/docs/js', express.static('docs/js'));
3534

3635
const getContent = glob =>
3736
globby(glob).then(
3837
paths =>
39-
(paths.length === 0
38+
paths.length === 0
4039
? undefined
4140
: paths
4241
.map(file => fs.readFileSync(file, { encoding: 'utf8' }))
43-
.reduce((a, b) => a.concat(b)))
42+
.reduce((a, b) => a.concat(b))
4443
);
4544

4645
const allLinks = globby(directoryOrder).then(paths => {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,10 @@ caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
10491049
version "1.0.30000649"
10501050
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000649.tgz#1ee1754a6df235450c8b7cd15e0ebf507221a86a"
10511051

1052+
carbon-icons@^6.0.3:
1053+
version "6.0.3"
1054+
resolved "https://registry.yarnpkg.com/carbon-icons/-/carbon-icons-6.0.3.tgz#068b3d4bc919f12c646ef9056985708387c67013"
1055+
10521056
caseless@~0.11.0:
10531057
version "0.11.0"
10541058
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
@@ -5824,10 +5828,6 @@ supports-color@^3.1.0, supports-color@^3.2.3:
58245828
dependencies:
58255829
has-flag "^1.0.0"
58265830

5827-
5828-
version "1.1.22"
5829-
resolved "https://registry.yarnpkg.com/svgxuse/-/svgxuse-1.1.22.tgz#94ffebbba0126f15f848fc5918f558433273829b"
5830-
58315831
table@^3.7.8:
58325832
version "3.8.3"
58335833
resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"

0 commit comments

Comments
 (0)