Skip to content

Commit

Permalink
Build system refactoring (surveyjs#216)
Browse files Browse the repository at this point in the history
* webpack 2.0 + build system refactoring

-- changed deprecated webpack "NoErrorsPlugin" plugin

* webpack 2.0 + build system refactoring

-- implemented base prod/dev structure;
-- refactored "compileSass" and "buildKnockoutTemplates" functions;

* webpack 2.0 + build system refactoring

-- small fixes;

* webpack 2.0 + build system refactoring

-- webpack2 ts loader

* webpack 2.0 + build system refactoring

-- styles compilation - sass loader

* webpack 2.0 + build system refactoring

-- added copyright + some refactoring

* webpack 2.0 + build system refactoring

-- added ko template building

* webpack 2.0 + build system refactoring

-- refactoring template building

* webpack 2.0 + build system refactoring

-- bundle d.ts

* webpack 2.0 + build system refactoring

-- package.json

* webpack 2.0 + build system refactoring

-- npm @types instead of typings.json

* webpack 2.0 + build system refactoring

-- fixed reactSurveyWindow class =>className

* webpack 2.0 + build system refactoring

-- renamed ko => knockout

* webpack 2.0 + build system refactoring

-- dev/prod build

* webpack 2.0 + build system refactoring

-- dev/prod build removed unneeded rimraf;

* webpack 2.0 + build system refactoring

-- karma + small lib fixes + importHelpers

* webpack 2.0 + build system refactoring

-- devtools cleanup

* Updated build instructions

* webpack 2.0 + build system refactoring

-- added concurrently

* webpack 2.0 + build system refactoring

-- added concurrently as global module

* webpack 2.0 + build system refactoring

-- added ajv for travis

* webpack 2.0 + build system refactoring

-- added ajv for travis locally

* webpack 2.0 + build system refactoring

-- off karma watch for travis

* webpack 2.0 + build system refactoring

-- fixed dts bundle;
-- fixed helpers exports because of dts bundle;

* webpack 2.0 + build system refactoring

-- fixed paths for testcafe

* webpack 2.0 + build system refactoring

-- fixed bundles names for knockout;

* webpack 2.0 + build system refactoring

-- added npm package readme;

* webpack 2.0 + build system refactoring

-- fixed path to survey lib in functional tests;

* webpack 2.0 + build system refactoring

-- removed unused plugins;

* webpack 2.0 + build system refactoring

-- added headerText to dts bundle;
  • Loading branch information
dmitry-kurmanov authored and andrewtelnov committed Jan 31, 2017
1 parent ab4309f commit 5595405
Show file tree
Hide file tree
Showing 133 changed files with 404 additions and 3,214 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ project.lock.json
.tsdrc
.idea
/Content/survey.css
/src/knockout/template.window.ko.html.ts
/src/knockout/template.ko.html.ts
/packages/survey-react/**/*.js
/packages/survey-react/package.json
/packages/survey-react/css/survey.css
Expand All @@ -30,6 +28,7 @@ project.lock.json
/packages/survey-knockout/**/*.js
/packages/survey-knockout/package.json
/packages/survey-knockout/css/survey.css
/packages/survey-knockout
/.gitattributes
/packages/survey-knockout/README.md
/travis_code.txt
Expand Down
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ node_js:
- "4"

before_script:
- npm install -g gulp
- npm install -g typescript
- npm install -g typings
- npm install -g concurrently
script:
- typings install
- gulp copyfiles
- gulp makedist
- gulp test_ci
before_deploy: "tar -zcvf surveyjs.tar.gz dist"
- npm run build_prod
- karma start
before_deploy: "tar -zcvf surveyjs.tar.gz packages"
deploy:
provider: releases
api_key:
Expand Down
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,23 @@ To build library yourself:

2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. This is only needed to _build_ surveyjs from sources.
```
npm install -g gulp
npm install -g typings
npm install -g karma-cli
npm install
```
The first `npm` command sets up the popular [Gulp](http://gulpjs.com/) build tool.
The second `npm` command sets up the Typescript Definition Manager [Typings](https://github.com/typings/typings).

3. **Create TypeScript definition files**
3. **Build the library**
```
typings install
```
Typescript definition files should be located at 'typings' directory.

4. **Build the library**
```
gulp makedist
npm run build_prod
```
After that you should have the library at 'dist' directory.

5. **Run unit tests**
4. **Run unit tests**
```
gulp copyfiles
gulp test_ci
karma start
```
The first command will copy all required files to 'wwwroot' directory and the last command will run unit tests usign [Karma](https://karma-runner.github.io/0.13/index.html)
This command will run unit tests usign [Karma](https://karma-runner.github.io/0.13/index.html)

##Create your own question type.
Explore the [example](https://github.com/surveyjs/surveyjs/tree/master/src/plugins) of adding a new question type into your survey library.
Expand Down
8 changes: 0 additions & 8 deletions global.json

This file was deleted.

Loading

0 comments on commit 5595405

Please sign in to comment.