Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
koltyakov committed May 20, 2017
0 parents commit 70e1bc7
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/dist
3 changes: 3 additions & 0 deletions .nmpignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
/src
!/dist
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Andrew Koltyakov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# sp-build-tasks

[![NPM](https://nodei.co/npm/sp-build-tasks.png?mini=true&downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/sp-build-tasks/)

[![npm version](https://badge.fury.io/js/sp-build-tasks.svg)](https://badge.fury.io/js/sp-build-tasks)
[![Downloads](https://img.shields.io/npm/dm/sp-build-tasks.svg)](https://www.npmjs.com/package/sp-build-tasks)


20 changes: 20 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

const gulp = require('gulp');
const del = require('del');
const tsc = require('gulp-typescript');

const tsconfig = require('./tsconfig.json');

// Clean dist folder
gulp.task('clean', () => {
return del(['dist/**']);
});

// Compile TypeScript files
gulp.task('tsc', () => {
return gulp
.src(['./src/**/*.ts'])
.pipe(tsc.createProject('tsconfig.json')())
.js.pipe(gulp.dest('./dist'));
});
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "sp-build-tasks",
"description": "SharePoint front-end projects automation and tasks toolbelt",
"version": "1.0.0",
"author": "Andrew Koltyakov <andrew.koltyakov@gmail.com>",
"main": "./dist/index.js",
"typings": "./dist/index",
"scripts": {
"build": "gulp tsc"
},
"bugs": {
"url": "https://github.com/koltyakov/sp-build-tasks/issues"
},
"keywords": [
"sharepoint",
"assets",
"build tasks",
"front-end",
"scaffolders"
],
"repository": {
"type": "git",
"url": "git+https://github.com/koltyakov/sp-build-tasks.git"
},
"license": "MIT",
"homepage": "https://github.com/koltyakov/sp-build-tasks",
"dependencies": {
"bluebird": "^3.5.0",
"colors": "^1.1.2",
"mkdirp": "^0.5.1",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-typescript": "^3.1.6",
"run-sequence": "^1.2.2",
"tslint": "^5.2.0",
"typescript": "^2.3.2"
},
"devDependencies": {
"@types/bluebird": "^3.5.4",
"@types/colors": "^1.1.3",
"@types/mkdirp": "^0.3.29",
"@types/node": "^7.0.18"
}
}
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": [ "es2015" ],
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"noImplicitAny": false,
"removeComments": true,
"types": [
"node"
]
}
}
104 changes: 104 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"label-position": true,
// "label-undefined": true,
"max-line-length": [
true,
180
],
"member-access": true,
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": false,
// "no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
// "no-inferrable-types": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
// "no-unreachable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
// "object-literal-sort-keys": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-finally",
"check-whitespace"
],
"quotemark": [
true,
"single",
"avoid-escape"
],
"radix": true,
"semicolon": [
true,
"always"
],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}

0 comments on commit 70e1bc7

Please sign in to comment.