0.0.9 • Published 7 years ago
quill-string-normalizer v0.0.9
Quill String Normalizer
- TypeScript 2.2
- Webpack 2
- Rollup
- tslint
- Mocha + Karma + PhantomJS
Usage
Install dependencies
npm iDev (webpack dev server)
npm run devTest (Karma + PhantomJS)
npm run testLint (tslint)
npm run lintBuild (Webpack or Rollup)
npm run build
npm run build:rollupUsing the Normalizer
This package exports a function called stringNormalize, which can be called on a string and will standardize punctuation.
Memento (Steps)
package.json
npm init -fTypeScript
npm i ts-loader typescript -Dor "awesome-typescript-loader"
"tsConfig.json"
tsc --initMocha
npm i chai mocha -Dtypes
npm i @types/chai @types/mocha -DKarma
Create "karma.conf.js"
karma initWith Mocha
npm i karma-mocha karma-phantomjs-launcher karma-webpack -DsingleRun .. true
Webpack
npm i webpack webpack-dev-server -DNPM Scripts
npm i cross-env -DDev
npm run devTest
npm run testLint
npm run lintBuild
npm run buildBuild With Rollup
npm i rollup rollup-plugin-typescript uglify-js -Dnpm run build: rollupEditor config
Create file ".editorconfig"
Editor : Visual Studio Code
tsLint
npm i tslint -DCreate "tslint.json"
tslint --init- extension: tsLint for Visual Studio Code
CI
Travis
Create ".travis.yml"