From 3165ff84128d7c7d9b4c4f86ce8f48ca353091f2 Mon Sep 17 00:00:00 2001 From: hitsuji_no_shippo Date: Sat, 25 Jan 2020 20:04:26 +0900 Subject: [PATCH] fix(npm-script): fix npm scripts (close #161) --- .circleci/config.yml | 8 -------- CHANGELOG.adoc | 14 ++++++-------- README.adoc | 10 +++------- package.json | 7 ++++--- 4 files changed, 13 insertions(+), 26 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ed17df..9feb1fa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,11 +4,6 @@ executors: - image: circleci/node:10 aliases: - submodule_update: &submodule_update - run: - name: git submodule update - command: git submodule update --init --recursive - restore_cache: &restore_cache restore_cache: name: Restore Npm Package Cache @@ -34,7 +29,6 @@ jobs: executor: node steps: - checkout - - *submodule_update - *restore_cache - *install_node_modules - *save_cache @@ -46,7 +40,6 @@ jobs: executor: node steps: - checkout - - *submodule_update - *restore_cache - *install_node_modules - run: @@ -61,7 +54,6 @@ jobs: executor: node steps: - checkout - - *submodule_update - attach_workspace: at: ./ - *restore_cache diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index ecf22d0..c933ce2 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -3,14 +3,9 @@ :!author-email: :author: {author-name} :!email: {author-email} -:revnumber: v1.69.0 -:revdate: 2020-01-25T19:33:33+0900 -:revremark: Add the following logs: + \ - * Set article author name and E-mail \ - to default asciidoc attributes. + \ - * Add profile picture link. + \ - * Add `twitter:creator`. + \ - * Add article author display. +:revnumber: v1.70.0 +:revdate: 2020-01-25T20:02:29+0900 +:revremark: Add log that fix npm script. :doctype: article :description: gatsby-simple-blog-with-asciidoctor Change Log :title: @@ -91,6 +86,9 @@ ifndef::env-github[:icons: font] * tag list position in index to under the line starting from update date. (close link:{issues-url}/138[#138^]) +=== Fix + +* npm script. (close link:{issues-url}/161[#161^]) === Refactor diff --git a/README.adoc b/README.adoc index 90fb079..73d1abc 100644 --- a/README.adoc +++ b/README.adoc @@ -3,12 +3,9 @@ :!author-email: :author: {author-name} :!email: {author-email} -:revnumber: v1.38.0 -:revdate: 2020-01-25T19:34:17+0900 -:revremark: Add `twitter:creator` description and the following sections: + \ - * Author Config + \ - * Profile Picture Link + \ - * Dispaly Article Author +:revnumber: v1.39.0 +:revdate: 2020-01-25T19:47:38+0900 +:revremark: Delete git submodule command in How to use section. :doctype: article :description: gatsby-simple-blog-with-asciidoctor README :title: @@ -596,7 +593,6 @@ npm install -g gatsby-cli gatsby new my-blog-folder https://github.com/hitsuji-no-shippo/gatsby-simple-blog-with-asciidoctor cd my-blog-folder -git submodule update --init --recursive ---- == How to deploy by Circle-CI in Medium.com diff --git a/package.json b/package.json index c544add..340b68b 100644 --- a/package.json +++ b/package.json @@ -83,15 +83,16 @@ "url": "github:hitsuji-no-shippo/gatsby-simple-blog-with-asciidoctor" }, "scripts": { - "build": "gatsby build", + "submodule": "git submodule update --init --recursive", + "build": "yarn run submodule && gatsby build", "build:gh": "gatsby build --prefix-paths", - "dev": "gatsby develop", + "dev": "yarn run submodule && gatsby develop", "format": "prettier --write src/**/*.{js,jsx}", "start": "yarn run dev", "serve": "gatsby serve", "eslint": "eslint .", "jest": "jest", - "test": "git submodule update --init --recursive && cross-env NODE_ENV=test yarn run eslint && cross-env NODE_ENV=test yarn run jest" + "test": "yarn run submodule && cross-env NODE_ENV=test yarn run eslint && cross-env NODE_ENV=test yarn run jest" }, "husky": { "hooks": {