Skip to content

Commit 3872126

Browse files
committed
issue: intial
0 parents  commit 3872126

18 files changed

+279
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
bower_components
3+
coverage
4+
.idea

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.idea
2+
.DS_Store
3+
**/npm-debug.log
4+
**/node_modules
5+
test
6+
src
7+
build
8+
gulpfile.js

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 afei <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# next-cast-array
2+
> Casts value as an array if it&#39;s not one.
3+
4+
5+
## resources:
6+
7+
## todos:
8+
- [ ] unit test case

bower.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "next-cast-array",
3+
"description": "Casts value as an array if it&#39;s not one.",
4+
"main": "dist/next-cast-array.js",
5+
"authors": [
6+
"afei"
7+
],
8+
"license": "MIT",
9+
"keywords": [
10+
"next"
11+
],
12+
"homepage": "https://github.com/afeiship/next-cast-array",
13+
"moduleType": [
14+
"amd"
15+
],
16+
"ignore": [
17+
"**/.*",
18+
"node_modules",
19+
"bower_components",
20+
"test",
21+
"tests",
22+
"src",
23+
"gulp",
24+
"gulpfile.js"
25+
]
26+
}

build/build.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(function() {
2+
3+
'use strict';
4+
5+
const gulp = require('gulp');
6+
const config = require('./config');
7+
8+
gulp.task('build', ['clean'], function() {
9+
// console.log('Your task goes here!');
10+
gulp.start(['scripts']);
11+
});
12+
13+
14+
15+
}());

build/clean.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(function() {
2+
3+
'use strict';
4+
5+
const gulp = require('gulp');
6+
const config = require('./config');
7+
const $ = require('gulp-load-plugins')({
8+
pattern: ['gulp-*', 'gulp.*', 'del']
9+
});
10+
11+
//clean
12+
gulp.task('clean', function() {
13+
return $.del('dist');
14+
});
15+
16+
}());

build/config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(function () {
2+
3+
'use strict';
4+
5+
const rootPath = process.cwd();
6+
const gulp = require('gulp');
7+
8+
9+
module.exports = {
10+
path: {
11+
root: rootPath,
12+
src: rootPath + '/src',
13+
dist: rootPath + '/dist',
14+
gulp: rootPath + '/gulp'
15+
},
16+
sassOptions: {
17+
normal: {
18+
outputStyle: 'expanded' /* nested | expanded | compact | compressed */
19+
},
20+
minify: {
21+
outputStyle: 'compressed'
22+
}
23+
}
24+
};
25+
26+
}());

0 commit comments

Comments
 (0)