Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
16f1424
add: eslintにeslint-plugin-filenamesプラグインを追加
i78s Jul 26, 2017
94e9c57
Merge pull request #1 from liginc/feature/feat-eslint
i78s Jul 26, 2017
7d1e1fd
ルールの追加が漏れてた
i78s Jul 26, 2017
e237d4b
Merge pull request #2 from liginc/feature/feat-eslint
i78s Jul 26, 2017
16de698
add: babel-plugin-transform-runtimeを導入
i78s Jul 26, 2017
b2205a2
Merge pull request #3 from liginc/feature/feat-babelrc
i78s Jul 26, 2017
bc5a8ce
update changelog
i78s Jul 26, 2017
5816a4d
5.0.1
i78s Jul 26, 2017
59adad2
sass周りを整理
i78s Aug 16, 2017
2b97f80
pjsのパーシャル名をheaderからheadに変更
i78s Aug 16, 2017
0b5f3fa
古いIEを考慮する必要がないためhtmlタグを簡略化
i78s Aug 16, 2017
63384f9
eslintignoreを追加
i78s Aug 16, 2017
8a61b7f
jsのディレクトリ構成を修正
i78s Aug 16, 2017
0dc950b
Merge pull request #4 from liginc/feature/feat-customized-to-LIG-spec…
i78s Aug 16, 2017
b72e47a
5.0.2
i78s Aug 16, 2017
439cab1
update changelog
i78s Aug 16, 2017
639256b
Merge pull request #5 from liginc/develop
i78s Aug 16, 2017
e9fe6ee
fix: sass-lintの設定を少し厳しくした
i78s Aug 16, 2017
cc21be7
add: 複数行を3点リーダで省略するmixinを追加
i78s Sep 17, 2017
88827e5
Merge pull request #6 from liginc/feature/feat-add-line-clamp-mixin
i78s Sep 17, 2017
2226c92
Merge pull request #7 from liginc/feature/feat-update-stylelint
i78s Sep 17, 2017
b7c264a
5.0.3
i78s Sep 17, 2017
9160b52
update changelog
i78s Sep 17, 2017
12bfb25
update: autoprefixerの対象ブラウザがIE10 & Android4.4以降になるよう変更
Sep 30, 2017
fdc7e15
Merge pull request #9 from liginc/feature/feat-autoprefixer-browserslist
i78s Sep 30, 2017
003f159
5.0.4
Sep 30, 2017
3895eea
update changelog
Sep 30, 2017
cfffea9
Update README.md
Oct 2, 2017
269fe3a
Kazさん校正を反映
Oct 2, 2017
90721d1
Merge pull request #10 from liginc/feature/feat-workshop
i78s Oct 2, 2017
b665df3
Merge pull request #11 from liginc/develop
i78s Oct 2, 2017
bc87238
fix: BEM記法が許容されないlintの設定だったので修正
Oct 3, 2017
a941d3f
Merge pull request #12 from liginc/feature/fix-lint
i78s Oct 3, 2017
ab8fb36
Merge branch 'develop'
Oct 3, 2017
41c6db5
5.0.5
Oct 3, 2017
57d1825
update changelog
Oct 3, 2017
a88b9cc
Update README.md
i78s Oct 5, 2017
c2f7623
元の設定ファイルへのURLを追記
hokkey Oct 25, 2017
4459f36
Merge pull request #13 from hokkey/patch-2
i78s Dec 5, 2017
031dbcf
Update README.md
i78s Dec 28, 2017
549c757
Merge pull request #14 from liginc/i78s-patch-1
i78s Dec 28, 2017
59f3d65
flex-wrap を追加
Apr 20, 2018
ea6b21a
記載ミスを修正
Apr 20, 2018
8fa6da9
Merge pull request #15 from mtmtkzm/feature/modify-flex-scss
i78s Apr 24, 2018
267568b
js,cssのバージョン管理
hayachi Jun 27, 2018
ef2519a
0.0.1
hayachi Jun 27, 2018
d7318e1
Revert "0.0.1"
hayachi Jun 27, 2018
f6c4586
README追記
hayachi Jun 27, 2018
d1474bc
READMEの修正、package.jsonのバージョンの修正
hayachi Jun 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"plugins": [
"transform-runtime"
],
"presets": [
"es2015",
"stage-2"
],
"ignore": [
"node_modules"
]
}
Empty file added .eslintignore
Empty file.
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"filenames"
],
"rules": {
"comma-dangle": [1, "never"],
"no-console": 1,
Expand Down Expand Up @@ -36,7 +39,9 @@
"comma-spacing": 0,
"prefer-const": 0,
"no-undef": 0,
"curly": 0
"curly": 0,
"filenames/match-regex": [2, "^[a-z\\-]+$"],
"filenames/match-exported": [2, "kebab"]
},
"ecmaFeatures": {
"arrowFunctions": true,
Expand Down
147 changes: 147 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# sass-lint config generated by make-sass-lint-config v0.0.3
#
# The following scss-lint Linters are not yet supported by sass-lint:
# BemDepth, DisableLinterReason, ElsePlacement, PropertyCount
# PropertyUnits, SelectorDepth, SelectorFormat, SpaceAroundOperator
# TrailingWhitespace, UnnecessaryMantissa, UnnecessaryParentReference, Compass::*
#
# The following settings/values are unsupported by sass-lint:
# Linter Indentation, option "allow_non_nested_indentation"
# Linter Indentation, option "character"
# Linter NestingDepth, option "ignore_parent_selectors"
# Linter PropertySortOrder, option "ignore_unspecified"
# Linter PropertySortOrder, option "min_properties"
# Linter PropertySortOrder, option "separate_groups"
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
# Linter VendorPrefix, option "identifier_list"

files:
include: 'src/sass/**/*.scss'
ignore:
- 'src/sass/base/_mixin.scss'
- 'src/sass/base/_sanitize.scss'
- 'src/sass/lib/*.scss'
- 'src/sass/sprites/*.scss'
options:
formatter: stylish
merge-default-rules: false
rules:
border-zero:
- 0
- convention: zero
brace-style:
- 1
- allow-single-line: true
class-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedbem
clean-import-paths:
- 1
- filename-extension: false
leading-underscore: false
empty-line-between-blocks:
- 0
- ignore-single-line-rulesets: true
extends-before-declarations: 1
extends-before-mixins: 1
final-newline:
- 0
- include: true
force-attribute-nesting: 1
force-element-nesting: 1
force-pseudo-nesting: 1
function-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
hex-length:
- 0
- style: short
hex-notation:
- 0
- style: lowercase
indentation:
- 0
- size: 2
leading-zero:
- 0
- include: false
mixin-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
mixins-before-declarations: 0
nesting-depth:
- 2
- max-depth: 1
no-color-literals: 0
no-css-comments: 0
no-debug: 1
no-duplicate-properties: 1
no-empty-rulesets: 1
no-extends: 0
no-ids: 2
no-important: 2
no-invalid-hex: 1
no-mergeable-selectors: 0
no-misspelled-properties:
- 1
- extra-properties: ['*zoom']
no-qualifying-elements:
- 1
- allow-element-with-attribute: false
allow-element-with-class: false
allow-element-with-id: false
no-trailing-zero: 0
no-transition-all: 0
no-url-protocols: 1
no-vendor-prefixes:
- 0
- additional-identifiers: []
excluded-identifiers: []
placeholder-in-extend: 1
placeholder-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
property-sort-order: 0
quotes:
- 0
- style: double
shorthand-values:
- 1
- allowed-shorthands:
- 1
- 2
- 3
single-line-per-selector: 0
space-after-bang:
- 1
- include: false
space-after-colon:
- 0
- include: true
space-after-comma:
- 0
- include: true
space-before-bang:
- 1
- include: true
space-before-brace:
- 1
- include: true
space-before-colon: 1
space-between-parens:
- 1
- include: false
trailing-semicolon: 1
url-quotes: 0
variable-for-property:
- 0
- properties: []
variable-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
zero-unit: 0
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
<a name="5.0.5"></a>
## [5.0.5](https://github.com/frontainer/frontplate/compare/v5.0.4...v5.0.5) (2017-10-03)


### fix

* BEM記法が許容されないlintの設定だったので修正 ([bc87238eb5ee4cd061085b46becd31bf6be236b7](https://github.com/frontainer/frontplate/commit/bc87238eb5ee4cd061085b46becd31bf6be236b7))



<a name="5.0.4"></a>
## [5.0.4](https://github.com/frontainer/frontplate/compare/v5.0.3...v5.0.4) (2017-09-30)


### update

* autoprefixerの対象ブラウザがIE10 & Android4.4以降になるよう変更 ([12bfb254f38500e30a5b01b6b66d057701b425fe](https://github.com/frontainer/frontplate/commit/12bfb254f38500e30a5b01b6b66d057701b425fe))



<a name="5.0.3"></a>
## [5.0.3](https://github.com/frontainer/frontplate/compare/v5.0.2...v5.0.3) (2017-09-17)


### add

* 複数行を3点リーダで省略するmixinを追加 ([cc21be7a168201f07cfa3918cc090dc4d2921cee](https://github.com/frontainer/frontplate/commit/cc21be7a168201f07cfa3918cc090dc4d2921cee))

### fix

* sass-lintの設定を少し厳しくした ([e9fe6eed87035e6ff624fae797c860c8523a4ab0](https://github.com/frontainer/frontplate/commit/e9fe6eed87035e6ff624fae797c860c8523a4ab0))



<a name="5.0.2"></a>
## [5.0.2](https://github.com/frontainer/frontplate/compare/v5.0.1...v5.0.2) (2017-08-16)




<a name="5.0.1"></a>
## [5.0.1](https://github.com/frontainer/frontplate/compare/v5.0.0...v5.0.1) (2017-07-26)


### add

* babel-plugin-transform-runtimeを導入 ([16de698eda3b831ba1d624c26a6561df56aaeeb6](https://github.com/frontainer/frontplate/commit/16de698eda3b831ba1d624c26a6561df56aaeeb6))
* eslintにeslint-plugin-filenamesプラグインを追加 ([16f142446eb7ca3d6690a841071d4106fa86c134](https://github.com/frontainer/frontplate/commit/16f142446eb7ca3d6690a841071d4106fa86c134))



<a name="5.0.0"></a>
# [5.0.0](https://github.com/frontainer/frontplate/compare/v4.0.2...v5.0.0) (2016-12-10)

Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@

## Usage

`$ frp create YOUR_PROJECT_NAME -g liginc/frontplate`

詳しくは[wiki](https://github.com/frontainer/frontplate-cli/wiki)を参照ください

https://github.com/frontainer/frontplate-cli/wiki

## リリースについて

js,cssの末尾に?ver=0.0.0 とリリースのタグのバージョンをつける仕様になってます。
リリースの際に以下の手順でリリース対応お願いします。

1.package.jsonのバージョンを "version": "0.0.0"に変えてください。

2.npm run production で css,jsがproduction buildされた後に
npm versionが起動されjs,cssの末尾に?ver=0.0.0が付与されます。
同時に同じ文字列のgitタグも付与されコミットされます。

3.バージョンの上げ方は以下のとおりになります。
npm run production patch … ?ver=0.0.1
npm run production minor … ?ver=0.1.0
npm run production major … ?ver=1.0.0

■問題点
・開発中にnpm run productionを毎度してしまうとバージョンが上がり続けると同時にgitタグの方も上がり続けてしまうのが懸念です。
・開発中には普通のfrp build -c frp.config.js -p を使っていただいてgitタグを使用する際にnpm run productionを使用する

24 changes: 24 additions & 0 deletions config/style.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';
module.exports = {
src: `${FRP_SRC}/sass/**/*.scss`, // 読み込むscss
dest: `${FRP_DEST}/assets/css`, // 出力先
outputStyle: 'compact',
sourceMap: true,
plugins: [ // postcssプラグイン
require('autoprefixer')({ //autoprefixer(https://github.com/postcss/autoprefixer)
browsers: [
'ie >= 10',
'Android >= 4.4'
]
})
],
noGuide: false,
styleguide: {
title: 'StyleGuide',
verbose: false,
clean: true,
params: {},
css: `../${FRP_DEST}/assets/css/style.css`,
// script: '../public/assets/js/app.js',
}
};
9 changes: 9 additions & 0 deletions config/style.config.production.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';
const conf = require('./style.config');
const merge = require('webpack-merge');
module.exports = merge(conf, {
sourceMap: false,
plugins: [ // postcssプラグイン
require('postcss-csso')()
]
});
Loading