Skip to content

Commit

Permalink
Update packages and increase the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Sep 23, 2016
1 parent 5f6f8cc commit 4b498da
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 15 deletions.
13 changes: 8 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ var gulp = require('gulp'),

var Server = require("karma").Server;

var libraryVersion = "0.9.11";
var libraryVersion = "0.9.12";

var paths = {
webroot: "./" + project.webroot + "/",
dist: "./dist/",
dist_dts: "./dist/typings/",
tsTests: "./tests/*.ts",
package_ko_dist: "./packages/survey-knockout/dist/",
package_ko: "./packages/survey-knockout/",
package_react: "./packages/survey-react/",
typings: "./typings/**/*.d.ts",
styles: "./src/*.scss",
};
Expand All @@ -40,7 +41,6 @@ var copyright = ["/*!",
var tdHeader = ["// Type definitions for Survey JavaScript library v" + libraryVersion,
"// Project: http://surveyjs.org/",
"// Definitions by: Andrew Telnov <https://github.com/andrewtelnov/>",
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped",
"",""].join("\n");

var config_ko_standard = {
Expand Down Expand Up @@ -141,7 +141,6 @@ function buildTypeDefinition(configName) {
paths.webroot + "/lib/survey/**/*.d.ts",
paths.typings
].concat(curConfig.src))
.pipe(sourcemaps.init())
.pipe(ts({
target: "ES5",
noExternalResolve: true,
Expand All @@ -164,6 +163,7 @@ function compressMainJS(configName) {
}))
.pipe(concat.header(copyright))
.pipe(gulp.dest(curConfig.packagePath + "dist/"))
.pipe(gulp.dest(curConfig.packagePath + "js/"))
.pipe(gulp.dest(paths.dist));
}

Expand Down Expand Up @@ -294,7 +294,10 @@ gulp.task('sass', function () {
.pipe(sass.sync().on('error', sass.logError))
.pipe(concat("survey.css"))
.pipe(gulp.dest(paths.webroot + 'css'))
.pipe(gulp.dest(paths.package_ko_dist + 'css'))
.pipe(gulp.dest(paths.package_ko + 'dist/css'))
.pipe(gulp.dest(paths.package_ko + 'css'))
.pipe(gulp.dest(paths.package_react + 'dist/css'))
.pipe(gulp.dest(paths.package_react + 'css'))
.pipe(gulp.dest(paths.dist + 'css'));
});
gulp.task("makedist", sequence(["sass", "build_ko_standard", "build_ko_bootstrap"], "buildTests_ko", "build_react_standard", "build_react_bootstrap"));
Expand Down
7 changes: 6 additions & 1 deletion lib_typings/survey.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Type definitions for Survey JavaScript library v0.9.11
// Project: http://surveyjs.org/
// Definitions by: Andrew Telnov <https://github.com/andrewtelnov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare module Survey {
interface HashTable<T> {
Expand Down Expand Up @@ -190,13 +189,15 @@ declare module Survey {
valueName: string;
titleName: string;
getResultCallback: (items: Array<ItemValue>) => void;
error: SurveyError;
constructor();
run(): void;
getType(): string;
isEmpty: boolean;
setData(json: any): void;
clear(): void;
protected onLoad(result: any): void;
private onError(status, response);
private getResultAfterPath(result);
private getPathes();
private getValue(item);
Expand Down Expand Up @@ -314,6 +315,8 @@ declare module Survey {
numericMin: string;
numericMax: string;
invalidEmail: string;
urlRequestError: string;
urlGetChoicesError: string;
exceedMaxSize: string;
otherRequiredError: string;
uploadingFile: string;
Expand Down Expand Up @@ -422,6 +425,7 @@ declare module Survey {
setWidth(): void;
private onRowVisibilityChanged();
private getVisibleCount();
private isQuestionVisible(q);
private calcVisible();
}
class PageModel extends Base implements IPage, IConditionRunner {
Expand All @@ -438,6 +442,7 @@ declare module Survey {
constructor(name?: string);
rows: Array<QuestionRowModel>;
isActive: boolean;
isQuestionVisible(question: QuestionBase): boolean;
protected createRow(question: QuestionBase): QuestionRowModel;
private isDesignMode;
private buildRows();
Expand Down
6 changes: 4 additions & 2 deletions packages/survey-knockout-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "survey-knockout-bootstrap",
"version": "0.9.11",
"version": "0.9.12",
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
"keywords": [
"Survey",
Expand All @@ -12,7 +12,9 @@
"homepage": "https://surveyjs.org/",
"license": "MIT",
"files": [
"dist/"
"dist/",
"js/",
"css/"
],
"main": "survey.bootstrap.min.js",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions packages/survey-knockout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "survey-knockout",
"version": "0.9.11",
"version": "0.9.12",
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
"keywords": [
"Survey",
Expand All @@ -11,7 +11,9 @@
"homepage": "https://surveyjs.org/",
"license": "MIT",
"files": [
"dist/"
"dist/",
"js/",
"css/"
],
"main": "survey.min.js",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions packages/survey-react-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "survey-react-bootstrap",
"version": "0.9.11",
"version": "0.9.12",
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
"keywords": [
"Survey",
Expand All @@ -13,7 +13,9 @@
"homepage": "https://surveyjs.org/",
"license": "MIT",
"files": [
"dist/"
"dist/",
"js/",
"css/"
],
"main": "survey.react.bootstrap.min.js",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions packages/survey-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "survey-react",
"version": "0.9.11",
"version": "0.9.12",
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
"keywords": [
"Survey",
Expand All @@ -12,7 +12,9 @@
"homepage": "https://surveyjs.org/",
"license": "MIT",
"files": [
"dist/"
"dist/",
"js/",
"css/"
],
"main": "survey.react.min.js",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion packagetemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"homepage": "https://surveyjs.org/",
"license": "MIT",
"files": [
"dist/"
"dist/",
"js/",
"css/"
],
"main": "fileName",
"repository": {
Expand Down

0 comments on commit 4b498da

Please sign in to comment.