Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
fix(npm-script): fix npm scripts (close #161)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsuji_no_shippo committed Jan 25, 2020
1 parent 3f5a711 commit 3165ff8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
8 changes: 0 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,7 +29,6 @@ jobs:
executor: node
steps:
- checkout
- *submodule_update
- *restore_cache
- *install_node_modules
- *save_cache
Expand All @@ -46,7 +40,6 @@ jobs:
executor: node
steps:
- checkout
- *submodule_update
- *restore_cache
- *install_node_modules
- run:
Expand All @@ -61,7 +54,6 @@ jobs:
executor: node
steps:
- checkout
- *submodule_update
- attach_workspace:
at: ./
- *restore_cache
Expand Down
14 changes: 6 additions & 8 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
10 changes: 3 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 3165ff8

Please sign in to comment.