معرفی شرکت ها


pragmatist-3.0.24


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A collection of tasks to standardize builds.
ویژگی مقدار
سیستم عامل -
نام فایل pragmatist-3.0.24
نام pragmatist
نسخه کتابخانه 3.0.24
نگهدارنده ['gajus']
ایمیل نگهدارنده ['gajus@gajus.com']
نویسنده Gajus Kuizinas
ایمیل نویسنده gajus@gajus.com
آدرس صفحه اصلی git+https://github.com/gajus/pragmatist.git
آدرس اینترنتی https://github.com/gajus/pragmatist#readme
مجوز BSD-3-Clause
# Pragmatist [![NPM version](http://img.shields.io/npm/v/pragmatist.svg?style=flat-square)](https://www.npmjs.com/package/pragmatist) [![js-canonical-style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical) A collection of tasks to standardize builds. ## Tasks Tasks that are not documented (including dependencies of the documented tasks that are not documented) are considered private and can be changed/renamed or removed without a warning. #### `lint` * Uses [Canonical](https://github.com/gajus/canonical) to lint all `*.css`, `*.scss` and `*.js` files in `./src` and `./tests` directories. #### `fix` <!-- * Uses [csscomb](http://csscomb.com/) to format all `*css` and `*.scss` files in `./src` directory in accordance with [Canonical](https://github.com/gajus/canonical) requirements. --> #### `build` * Copies all files from `./src` directory to `./dist`. * Uses [Babel](https://babeljs.io/) to compile files in `./src` directory. * Compiled files overwrite the existing files in `./dist` directory. * Source Maps are stored in the `./dist` directory`. * Uses [`babel-plugin-lodash`](https://github.com/megawac/babel-plugin-lodash). * Babel compiler is configured to use [stage 0](https://babeljs.io/docs/usage/options/) ES features. #### `test` * Uses [Babel](https://babeljs.io/) to compile files in `./tests` directory. * Uses [Istanbul](https://github.com/gotwarlost/istanbul) to generate test coverage. * Uses [Mocha](https://mochajs.org/) to execute tests in `./tests` directory. Istanbul assumes that tests are using `./src` files (as opposed to `./dist`). Istanbul coverage report is written to the `./coverage` directory. A coverage summary is included in the CLI output. #### `watch` Runs `lint`, `test` and `build` tasks every time `./src/**/*.js` or `./tests/**/*.js` changes. #### `watch-lint` Runs `lint` task every time `./src/**/*.js` or `./tests/**/*.js` changes. #### `watch-test` Runs `test` task every time `./src/**/*.js` or `./tests/**/*.js` changes. #### `watch-build` Runs `build` task every time `./src/**/*.js` or `./tests/**/*.js` changes. ## Gulp Tasks `pragmatist` can be used to extend your existing [gulp](https://github.com/gulpjs/gulp) tasks. ```js import gulp from 'gulp'; import pragmatist from 'pragmatist'; /** * @param {Object} gulp * @param {string} prefix Used to prefix all pragmatist tasks. * @returns {undefined} */ pragmatist(gulp); ``` This will make all `pragmatist` tasks available under `pragmatist:` namespace, e.g. ```sh gulp pragmatist:test ``` ## CLI Program `pragmatist` can be used as a CLI program to run all the tasks. ```sh npm install pragmatist -g ``` Tasks can be executed by running: ```sh pragmatist <task> ``` Just running `pragmatist` will execute the `test` task. Multiple tasks can be executed one after the other, e.g. ```sh pragmatist <task #1> <task #2> <task #3> ``` ### ES5 The default behavior for `build` task is to compile code for [`node`](https://nodejs.org/). Specifically, for the latest version of `node`. To compile code down to ES5, you must add `--es5` flag to the command line, e.g. ```sh pragmatist build --es5 ``` ### Notifications Use `--notifications` flag to enable OS level notifications about errors that occur during the build. ```sh pragmatist build --notifications ``` ### Types Use `--type-assertions` flag to enable [runtime type assertions](https://github.com/codemix/babel-plugin-typecheck). ```sh pragmatist build --type-assertions ``` ## NPM A typical project using `pragmatist` will define the following NPM scripts: ```json "scripts": { "lint": "pragmatist lint", "watch-lint": "pragmatist watch-lint", "test": "pragmatist --type-assertions test", "watch-test": "pragmatist --type-assertions test", "build": "pragmatist --es5 build", "watch-build": "pragmatist --es5 watch-build" }, ``` ## Ignore Unnecessary Files This is just a reminder. Pragmatist will produce several files that you do not want to commit to the repository or include in the npm bundle. Add to `.gitignore`: ``` node_modules coverage dist *.log .* !.gitignore !.npmignore !.babelrc !.travis.yml ``` Add to `.npmignore` ``` src tests coverage .* *.log ```


نیازمندی

مقدار نام
^0.2.1 babel-plugin-add-module-exports
^6.8.0 babel-plugin-check-es2015-constants
^0.3.2 babel-plugin-lodash-modularize
^6.8.0 babel-plugin-transform-class-properties
^6.8.0 babel-plugin-transform-es2015-arrow-functions
^6.8.0 babel-plugin-transform-es2015-block-scoped-functions
^6.8.0 babel-plugin-transform-es2015-block-scoping
^6.8.0 babel-plugin-transform-es2015-classes
^6.8.0 babel-plugin-transform-es2015-computed-properties
^6.8.0 babel-plugin-transform-es2015-destructuring
^6.8.0 babel-plugin-transform-es2015-for-of
^6.8.0 babel-plugin-transform-es2015-function-name
^6.8.0 babel-plugin-transform-es2015-literals
^6.8.0 babel-plugin-transform-es2015-modules-commonjs
^6.8.0 babel-plugin-transform-es2015-object-super
^6.8.0 babel-plugin-transform-es2015-parameters
^6.8.0 babel-plugin-transform-es2015-shorthand-properties
^6.8.0 babel-plugin-transform-es2015-spread
^6.8.0 babel-plugin-transform-es2015-sticky-regex
^6.8.0 babel-plugin-transform-es2015-template-literals
^6.8.0 babel-plugin-transform-es2015-typeof-symbol
^6.8.0 babel-plugin-transform-es2015-unicode-regex
^6.8.0 babel-plugin-transform-object-set-prototype-of-to-assign
^6.8.0 babel-plugin-transform-proto-to-assign
^6.8.0 babel-plugin-transform-regenerator
^6.8.0 babel-plugin-transform-strict-mode
^3.9.0 babel-plugin-typecheck
^6.5.0 babel-preset-react
^6.5.0 babel-preset-stage-0
^3.3.5 bluebird
^3.2.1 canonical
^1.1.3 chalk
^1.5.0 chokidar
^3.1.8 csscomb
^2.2.0 del
^1.2.0 fancy-log
^4.0.0 globby
^3.9.1 gulp
^6.1.2 gulp-babel
^6.1.5 gulp-babel2
^2.2.0 gulp-mocha
^1.1.0 gulp-plumber
^2.0.0-alpha gulp-sourcemaps
^4.12.0 lodash
^4.5.0 node-notifier
^1.0.2 pretty-hrtime
^1.1.3 prettyjson
^1.1.5 run-sequence
^0.4.0 source-map-support
^0.0.9 stack-trace
^4.7.0 yargs


زبان مورد نیاز

مقدار نام
6.1.0 Npm


نحوه نصب


نصب پکیج tgz pragmatist-3.0.24:

    npm install pragmatist-3.0.24.tgz