Skip to content

Commit 6c05cf2

Browse files
committed
docs(storybook): rename docs to story
i'd like to use docs as demo site directory
1 parent 165e9a0 commit 6c05cf2

16 files changed

+8
-8
lines changed

.storybook/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { withBackgrounds } from '@storybook/addon-backgrounds';
99
import '../scss/nes.scss'; // eslint-disable-line import/no-unresolved
1010

1111
// automatically import all files ending in *.stories.js
12-
const req = require.context('../docs', true, /.stories.js$/);
12+
const req = require.context('../story', true, /.stories.js$/);
1313
function loadStories() {
1414
req.keys().forEach(filename => req(filename));
1515
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
"description": "NES.css is NES-style CSS Framework.",
44
"scripts": {
55
"watch": "npm run build:sass -- --watch",
6-
"//": "Build task",
6+
"// Build task": "",
77
"build": "run-p build:core build:main",
88
"build:core": "npm run build:sass-core && npm run build:autoprefix-core && npm run build:cleancss-core",
99
"build:main": "npm run build:sass && npm run build:autoprefix && npm run build:cleancss",
1010
"prebuild": "run-p prebuild:*",
1111
"prebuild:stylelint": "npm run stylelint -- --fix",
1212
"prebuild:clean": "rimraf css",
1313
"postbuild": "npm run build:storybook",
14-
"//": "For nes.css",
14+
"// For nes.css": "",
1515
"build:sass": "node-sass --output-style expanded --source-map true --functions scripts/scssFunctions.js scss/nes.scss css/nes.css",
1616
"build:autoprefix": "postcss --use autoprefixer --map false --output css/nes.css css/nes.css",
1717
"build:cleancss": "cleancss -o css/nes.min.css css/nes.css",
18-
"//": "For nes-core.css",
18+
"// For nes-core.css": "",
1919
"build:sass-core": "node-sass --output-style expanded --source-map true --functions scripts/scssFunctions.js scss/nes-core.scss css/nes-core.css",
2020
"build:autoprefix-core": "postcss --use autoprefixer --map false --output css/nes-core.css css/nes-core.css",
2121
"build:cleancss-core": "cleancss -o css/nes-core.min.css css/nes-core.css",
22-
"//": "Misc",
22+
"// Misc": "",
2323
"stylelint": "stylelint scss/**/*.scss",
2424
"storybook": "start-storybook -p 6006",
2525
"build:storybook": "build-storybook",
@@ -111,7 +111,7 @@
111111
"npm run postbuild"
112112
],
113113
"*.js": [
114-
"eslint '.storybook/**/*.js' 'docs/**/*.js'"
114+
"eslint '.storybook/**/*.js' 'story/**/*.js'"
115115
]
116116
},
117117
"prettier": {
@@ -148,14 +148,14 @@
148148
"scss/at-rule-no-unknown": true
149149
},
150150
"ignoreFiles": [
151-
"demo/lib/*"
151+
"docs/*"
152152
]
153153
},
154154
"eslintConfig": {
155155
"extends": "airbnb-base"
156156
},
157157
"eslintIgnore": [
158-
"demo/lib/*"
158+
"docs/*"
159159
],
160160
"config": {
161161
"commitizen": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)