Commit 17939bfd authored by DavidRayner's avatar DavidRayner Committed by Shawn Erquhart
Browse files

Updates for cms-2.x (#59)

* Use Yarn v1.9.4

* Upgrade dependencies

* No need for cms-assets anymore

* Upgrade hugo binaries
parent 24809d11
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -22,8 +22,8 @@ if (process.env.DEBUG) {
gulp.task("hugo", (cb) => buildSite(cb));
gulp.task("hugo-preview", (cb) => buildSite(cb, ["--buildDrafts", "--buildFuture"]));
gulp.task("build", ["css", "js", "cms-assets", "hugo"]);
gulp.task("build-preview", ["css", "js", "cms-assets", "hugo-preview"]);
gulp.task("build", ["css", "js", "hugo"]);
gulp.task("build-preview", ["css", "js", "hugo-preview"]);
gulp.task("css", () => (
gulp.src("./src/css/*.css")
......@@ -36,11 +36,6 @@ gulp.task("css", () => (
.pipe(browserSync.stream())
));
gulp.task("cms-assets", () => (
gulp.src("./node_modules/netlify-cms/dist/*.{woff,eot,woff2,ttf,svg,png}")
.pipe(gulp.dest("./dist/css"))
))
gulp.task("js", (cb) => {
const myConfig = Object.assign({}, webpackConfig);
......@@ -71,7 +66,7 @@ gulp.task("svg", () => {
.pipe(gulp.dest("site/layouts/partials/"));
});
gulp.task("server", ["hugo", "css", "cms-assets", "js", "svg"], () => {
gulp.task("server", ["hugo", "css", "js", "svg"], () => {
browserSync.init({
server: {
baseDir: "./dist"
......
......@@ -2,7 +2,7 @@
command = "yarn build"
publish = "dist"
[build.environment]
YARN_VERSION = "1.3.2"
YARN_VERSION = "1.9.4"
[context.deploy-preview]
command = "yarn build-preview"
This diff is collapsed.
......@@ -6,8 +6,6 @@
<title>Content Manager</title>
<!-- Include the stylesheets from your site here -->
<link rel="stylesheet" href="/css/cms.css" />
<!-- Include a CMS specific stylesheet here -->
<script src="https://identity-js.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
......
@import "netlify-cms/dist/cms.css";
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment